Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
24 
26 
27 namespace net_instaweb {
28 
31  public:
32  virtual ~ExpensiveOperationContext();
33 
36  virtual void Done() = 0;
37 
38  protected:
40 
41  private:
42 
43 };
44 
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
Definition: sequence.h:33
Implementor interface to ExpensiveOperation features in CentralController.
Definition: expensive_operation_callback.h:46
Passed to RunImpl for implementations of ExpensiveOperationCallback.
Definition: expensive_operation_callback.h:30
Definition: central_controller_callback.h:60