diff options
author | 2018-10-22 02:42:03 -0700 | |
---|---|---|
committer | 2018-10-22 02:42:03 -0700 | |
commit | 9b83b7d19e0a3e14dbfca2f40fa8157547c190f4 (patch) | |
tree | 8e48f2a77de1b44cd9415f5d6b11aa452095861d /include/grpcpp/impl/codegen/interceptor.h | |
parent | 3a17f5b05ec6adce638fd03168a923e727759969 (diff) |
Adding intercepted channel
Diffstat (limited to 'include/grpcpp/impl/codegen/interceptor.h')
-rw-r--r-- | include/grpcpp/impl/codegen/interceptor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpcpp/impl/codegen/interceptor.h b/include/grpcpp/impl/codegen/interceptor.h index e66f684c29..2027fd69b1 100644 --- a/include/grpcpp/impl/codegen/interceptor.h +++ b/include/grpcpp/impl/codegen/interceptor.h @@ -21,6 +21,7 @@ #include <grpc/impl/codegen/grpc_types.h> #include <grpcpp/impl/codegen/byte_buffer.h> +#include <grpcpp/impl/codegen/channel_interface.h> #include <grpcpp/impl/codegen/config.h> #include <grpcpp/impl/codegen/core_codegen_interface.h> #include <grpcpp/impl/codegen/metadata_map.h> @@ -107,6 +108,11 @@ class InterceptorBatchMethods { // Returns a modifiable multimap of the received trailing metadata virtual std::multimap<grpc::string_ref, grpc::string_ref>* GetRecvTrailingMetadata() = 0; + + // Gets an intercepted channel. When a call is started on this interceptor, + // only interceptors after the current interceptor are created from the + // factory objects registered with the channel. + virtual std::unique_ptr<ChannelInterface> GetInterceptedChannel() = 0; }; class Interceptor { |