GRPC C++  1.62.0
call_hook.h
Go to the documentation of this file.
1 //
2 //
3 // Copyright 2015 gRPC authors.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 //
18 
19 #ifndef GRPCPP_IMPL_CALL_HOOK_H
20 #define GRPCPP_IMPL_CALL_HOOK_H
21 
22 namespace grpc {
23 
24 namespace internal {
25 class CallOpSetInterface;
26 class Call;
27 
30 class CallHook {
31  public:
32  virtual ~CallHook() {}
33  virtual void PerformOpsOnCall(CallOpSetInterface* ops, Call* call) = 0;
34 };
35 } // namespace internal
36 
37 } // namespace grpc
38 
39 #endif // GRPCPP_IMPL_CALL_HOOK_H
grpc
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
grpc::internal::CallHook
This is an interface that Channel and Server implement to allow them to hook performing ops.
Definition: call_hook.h:30
grpc::internal::Call
Straightforward wrapping of the C call object.
Definition: call.h:36
grpc::internal::CallOpSetInterface
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call_op_set_interface.h:36
grpc::internal::CallHook::PerformOpsOnCall
virtual void PerformOpsOnCall(CallOpSetInterface *ops, Call *call)=0
grpc::internal::CallHook::~CallHook
virtual ~CallHook()
Definition: call_hook.h:32