Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
schedule_rewrite_callback.h
Go to the documentation of this file.
1 // Copyright 2015 Google Inc.
16 
17 #ifndef PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_CALLBACK_H_
18 #define PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_CALLBACK_H_
19 
25 
27 
28 namespace net_instaweb {
29 
32  public:
33  virtual ~ScheduleRewriteContext();
34 
37  virtual void MarkSucceeded() = 0;
38  virtual void MarkFailed() = 0;
39 
40  protected:
42 
43  private:
44 
45 };
46 
49  : public CentralControllerCallback<ScheduleRewriteContext> {
50  public:
51  explicit ScheduleRewriteCallback(const GoogleString& key,
52  Sequence* sequence);
53  virtual ~ScheduleRewriteCallback();
54 
55  const GoogleString& key() { return key_; }
56 
57  private:
59  virtual void RunImpl(scoped_ptr<ScheduleRewriteContext>* context) = 0;
60  virtual void CancelImpl() = 0;
61 
62  GoogleString key_;
63 
64 
65 };
66 
67 }
68 
69 #endif
Implementor interface to rewrite scheduling features in CentralController.
Definition: schedule_rewrite_callback.h:48
Definition: sequence.h:33
Passed to RunImpl for implementations of ScheduleRewriteCallback.
Definition: schedule_rewrite_callback.h:31
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: central_controller_callback.h:60