Page Speed Optimization Libraries
1.13.35.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
pagespeed
controller
expensive_operation_callback.h
Go to the documentation of this file.
1
// Copyright 2015 Google Inc.
16
17
#ifndef PAGESPEED_CONTROLLER_EXPENSIVE_OPERATION_CALLBACK_H_
18
#define PAGESPEED_CONTROLLER_EXPENSIVE_OPERATION_CALLBACK_H_
19
20
#include "
pagespeed/controller/central_controller_callback.h
"
21
#include "
pagespeed/kernel/base/basictypes.h
"
22
#include "
pagespeed/kernel/base/scoped_ptr.h
"
23
#include "
pagespeed/kernel/thread/sequence.h
"
24
26
27
namespace
net_instaweb {
28
30
class
ExpensiveOperationContext
{
31
public
:
32
virtual
~
ExpensiveOperationContext
();
33
36
virtual
void
Done
() = 0;
37
38
protected
:
39
ExpensiveOperationContext
();
40
41
private
:
42
43
};
44
46
class
ExpensiveOperationCallback
47
:
public
CentralControllerCallback
<ExpensiveOperationContext> {
48
public
:
49
explicit
ExpensiveOperationCallback
(
Sequence
* sequence);
50
virtual
~
ExpensiveOperationCallback
();
51
52
private
:
54
virtual
void
RunImpl(
scoped_ptr<ExpensiveOperationContext>
* context) = 0;
55
virtual
void
CancelImpl() = 0;
56
57
58
};
59
60
}
61
62
#endif
sequence.h
net_instaweb::Sequence
Definition:
sequence.h:33
net_instaweb::scoped_ptr< ExpensiveOperationContext >
central_controller_callback.h
net_instaweb::ExpensiveOperationCallback
Implementor interface to ExpensiveOperation features in CentralController.
Definition:
expensive_operation_callback.h:46
net_instaweb::ExpensiveOperationContext
Passed to RunImpl for implementations of ExpensiveOperationCallback.
Definition:
expensive_operation_callback.h:30
net_instaweb::CentralControllerCallback
Definition:
central_controller_callback.h:60
scoped_ptr.h
net_instaweb::ExpensiveOperationContext::Done
virtual void Done()=0
basictypes.h
Generated on Fri Nov 3 2017 20:10:40 for Page Speed Optimization Libraries by
1.8.6