Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
schedule_rewrite_rpc_handler.h
Go to the documentation of this file.
1 // Copyright 2016 Google Inc.
16 
17 #ifndef PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_RPC_HANDLER_H_
18 #define PAGESPEED_CONTROLLER_SCHEDULE_REWRITE_RPC_HANDLER_H_
19 
20 #include "pagespeed/controller/controller.pb.h"
21 #include "pagespeed/controller/controller.grpc.pb.h"
29 
30 namespace net_instaweb {
31 
46 
48  : public RequestResultRpcHandler<
49  ScheduleRewriteRpcHandler, ScheduleRewriteController,
50  grpc::CentralControllerRpcService::AsyncService,
51  ScheduleRewriteRequest, ScheduleRewriteResponse> {
52  protected:
54  grpc::CentralControllerRpcService::AsyncService* service,
55  ::grpc::ServerCompletionQueue* cq, ScheduleRewriteController* controller);
56 
58  void HandleClientRequest(const ScheduleRewriteRequest& req,
59  Function* cb) override;
60  void HandleClientResult(const ScheduleRewriteRequest& req) override;
61  void HandleOperationFailed() override;
62 
63  void InitResponder(grpc::CentralControllerRpcService::AsyncService* service,
64  ::grpc::ServerContext* ctx, ReaderWriterT* responder,
65  ::grpc::ServerCompletionQueue* cq,
66  void* callback) override;
67 
68  private:
69  GoogleString key_;
70 
73  friend class ScheduleRewriteRpcHandlerTest;
74 
75 
76 };
77 
78 }
79 
80 #endif
Definition: function.h:47
void HandleClientRequest(const ScheduleRewriteRequest &req, Function *cb) override
RequestResultRpcHandler implementation.
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: schedule_rewrite_rpc_handler.h:47
void InitResponder(grpc::CentralControllerRpcService::AsyncService *service,::grpc::ServerContext *ctx, ReaderWriterT *responder,::grpc::ServerCompletionQueue *cq, void *callback) override
Definition: request_result_rpc_handler.h:46
Definition: schedule_rewrite_controller.h:30