aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/channel.h
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-08-20 12:18:08 -0700
committerGravatar yang-g <yangg@google.com>2015-08-20 12:18:08 -0700
commitc317f07b5668d6e081a54ad9f6636555f35e0994 (patch)
tree8391dfd0bd5aaafc0369e7e6fc90e8c61223ec72 /include/grpc++/channel.h
parentef00308e391094212b5ba6aad0c6f7b90025f4e3 (diff)
Make Channel ctor private
Diffstat (limited to 'include/grpc++/channel.h')
-rw-r--r--include/grpc++/channel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/grpc++/channel.h b/include/grpc++/channel.h
index ceb921eff8..7d6216e9c4 100644
--- a/include/grpc++/channel.h
+++ b/include/grpc++/channel.h
@@ -69,8 +69,6 @@ class Channel GRPC_FINAL : public GrpcLibrary,
public CallHook,
public std::enable_shared_from_this<Channel> {
public:
- explicit Channel(grpc_channel* c_channel);
- Channel(const grpc::string& host, grpc_channel* c_channel);
~Channel();
// Get the current channel state. If the channel is in IDLE and try_to_connect
@@ -115,6 +113,10 @@ class Channel GRPC_FINAL : public GrpcLibrary,
const InputMessage& request,
OutputMessage* result);
friend class ::grpc::RpcMethod;
+ 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);