diff options
author | Vijay Pai <vpai@google.com> | 2017-10-27 14:57:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 14:57:40 -0700 |
commit | d5b66f187c91aa30455f8ae7f32692927ad66229 (patch) | |
tree | 25245eab54616c269daf12cf966f6053eea75361 /include/grpc++/channel.h | |
parent | c4c535db59405b14328484eb346b1f61139d01dd (diff) | |
parent | 7a648854e9e53f5228ad1218b559e358f72a9a38 (diff) |
Merge pull request #13107 from vjpai/reinternalize
Separate public and internal C++ interfaces - Revival of #11572
Diffstat (limited to 'include/grpc++/channel.h')
-rw-r--r-- | include/grpc++/channel.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/grpc++/channel.h b/include/grpc++/channel.h index c50091d6ac..e9fb5a5d09 100644 --- a/include/grpc++/channel.h +++ b/include/grpc++/channel.h @@ -32,7 +32,7 @@ struct grpc_channel; namespace grpc { /// Channels represent a connection to an endpoint. Created by \a CreateChannel. class Channel final : public ChannelInterface, - public CallHook, + public internal::CallHook, public std::enable_shared_from_this<Channel>, private GrpcLibraryCodegen { public: @@ -51,18 +51,16 @@ class Channel final : public ChannelInterface, private: template <class InputMessage, class OutputMessage> - friend Status BlockingUnaryCall(ChannelInterface* channel, - const RpcMethod& method, - ClientContext* context, - const InputMessage& request, - OutputMessage* result); + friend class internal::BlockingUnaryCallImpl; friend std::shared_ptr<Channel> CreateChannelInternal( const grpc::string& host, grpc_channel* c_channel); Channel(const grpc::string& host, grpc_channel* c_channel); - Call CreateCall(const RpcMethod& method, ClientContext* context, - CompletionQueue* cq) override; - void PerformOpsOnCall(CallOpSetInterface* ops, Call* call) override; + internal::Call CreateCall(const internal::RpcMethod& method, + ClientContext* context, + CompletionQueue* cq) override; + void PerformOpsOnCall(internal::CallOpSetInterface* ops, + internal::Call* call) override; void* RegisterMethod(const char* method) override; void NotifyOnStateChangeImpl(grpc_connectivity_state last_observed, |