summaryrefslogtreecommitdiffstats
path: root/contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h
diff options
context:
space:
mode:
authorarcadia-devtools <[email protected]>2022-03-15 21:33:41 +0300
committerarcadia-devtools <[email protected]>2022-03-15 21:33:41 +0300
commit3dd665b514943f69657b593eb51af90b99b1206b (patch)
tree0eb633e628bb1fe6c639574b1184d43def7c0a73 /contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h
parenta68afc731202027f105bc5723ee11788017c29e2 (diff)
intermediate changes
ref:953ca886ec160075b38c0f3614de029b423f0a9e
Diffstat (limited to 'contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h')
-rw-r--r--contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h b/contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h
index d97b7250251..7fb50388268 100644
--- a/contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h
+++ b/contrib/libs/grpc/include/grpcpp/impl/codegen/server_interface.h
@@ -64,7 +64,7 @@ class ServerInterceptorFactoryInterface;
class ServerInterface : public internal::CallHook {
public:
- virtual ~ServerInterface() {}
+ ~ServerInterface() override {}
/// \a Shutdown does the following things:
///
@@ -147,6 +147,8 @@ class ServerInterface : public internal::CallHook {
/// May not be abstract since this is a post-1.0 API addition
virtual void RegisterCallbackGenericService(
experimental::CallbackGenericService* /*service*/) {}
+ virtual void RegisterContextAllocator(
+ std::unique_ptr<ContextAllocator> /*context_allocator*/) {}
};
/// NOTE: The function experimental_registration() is not stable public API.
@@ -186,8 +188,8 @@ class ServerInterface : public internal::CallHook {
virtual grpc_server* server() = 0;
- virtual void PerformOpsOnCall(internal::CallOpSetInterface* ops,
- internal::Call* call) = 0;
+ void PerformOpsOnCall(internal::CallOpSetInterface* ops,
+ internal::Call* call) override = 0;
class BaseAsyncRequest : public internal::CompletionQueueTag {
public:
@@ -196,7 +198,7 @@ class ServerInterface : public internal::CallHook {
::grpc::CompletionQueue* call_cq,
::grpc::ServerCompletionQueue* notification_cq, void* tag,
bool delete_on_finalize);
- virtual ~BaseAsyncRequest();
+ ~BaseAsyncRequest() override;
bool FinalizeResult(void** tag, bool* status) override;
@@ -228,7 +230,7 @@ class ServerInterface : public internal::CallHook {
void* tag, const char* name,
internal::RpcMethod::RpcType type);
- virtual bool FinalizeResult(void** tag, bool* status) override {
+ bool FinalizeResult(void** tag, bool* status) override {
/* If we are done intercepting, then there is nothing more for us to do */
if (done_intercepting_) {
return BaseAsyncRequest::FinalizeResult(tag, status);
@@ -283,7 +285,7 @@ class ServerInterface : public internal::CallHook {
notification_cq);
}
- ~PayloadAsyncRequest() {
+ ~PayloadAsyncRequest() override {
payload_.Release(); // We do not own the payload_
}