Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
schedule_rewrite_rpc_context.h
Go to the documentation of this file.
1 // Copyright 2016 Google Inc.
16 
17 #ifndef PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_RPC_CONTEXT_H_
18 #define PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_RPC_CONTEXT_H_
19 
20 #include <memory>
21 
22 #include "pagespeed/controller/controller.grpc.pb.h"
26 
27 namespace net_instaweb {
28 
33 
35  public:
37  grpc::CentralControllerRpcService::StubInterface* stub,
38  ::grpc::CompletionQueue* queue, ThreadSystem* thread_system,
39  MessageHandler* handler, ScheduleRewriteCallback* callback);
40 
41  void MarkSucceeded() override;
42  void MarkFailed() override;
43 
44  private:
45  class ScheduleRewriteRequestResultRpcClient;
46 
49  std::unique_ptr<ScheduleRewriteRequestResultRpcClient> client_;
50 };
51 
52 }
53 
54 #endif
Implementor interface to rewrite scheduling features in CentralController.
Definition: schedule_rewrite_callback.h:48
Passed to RunImpl for implementations of ScheduleRewriteCallback.
Definition: schedule_rewrite_callback.h:31
Definition: schedule_rewrite_rpc_context.h:34
Definition: thread_system.h:40
Definition: message_handler.h:39