Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
in_process_central_controller.h
Go to the documentation of this file.
1 // Copyright 2015 Google Inc.
16 
17 #ifndef PAGESPEED_CONTROLLER_IN_PROCESS_CENTRAL_CONTROLLER_H_
18 #define PAGESPEED_CONTROLLER_IN_PROCESS_CENTRAL_CONTROLLER_H_
19 
28 
29 namespace net_instaweb {
30 
34 
36  public:
39  ExpensiveOperationController* expensive_operation_controller,
40  ScheduleRewriteController* schedule_rewrite_controller);
41 
42  virtual ~InProcessCentralController();
43 
45  ExpensiveOperationCallback* callback) override;
46  void ScheduleRewrite(ScheduleRewriteCallback* callback) override;
47 
48  static void InitStats(Statistics* stats);
49  void ShutDown() override;
50 
51  private:
52  scoped_ptr<ExpensiveOperationController> expensive_operation_controller_;
53  scoped_ptr<ScheduleRewriteController> schedule_rewrite_controller_;
54 
55 
56 };
57 
58 }
59 
60 #endif
void ScheduleRewrite(ScheduleRewriteCallback *callback) override
Definition: expensive_operation_controller.h:28
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: in_process_central_controller.h:35
Implementor interface to rewrite scheduling features in CentralController.
Definition: schedule_rewrite_callback.h:48
Definition: scoped_ptr.h:30
Definition: central_controller.h:29
Implementor interface to ExpensiveOperation features in CentralController.
Definition: expensive_operation_callback.h:46
InProcessCentralController(ExpensiveOperationController *expensive_operation_controller, ScheduleRewriteController *schedule_rewrite_controller)
Takes ownership of both controllers.
void ScheduleExpensiveOperation(ExpensiveOperationCallback *callback) override
Definition: schedule_rewrite_controller.h:30