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++/impl/codegen/byte_buffer.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++/impl/codegen/byte_buffer.h')
-rw-r--r-- | include/grpc++/impl/codegen/byte_buffer.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/grpc++/impl/codegen/byte_buffer.h b/include/grpc++/impl/codegen/byte_buffer.h index 57d731be18..fe73ce7a83 100644 --- a/include/grpc++/impl/codegen/byte_buffer.h +++ b/include/grpc++/impl/codegen/byte_buffer.h @@ -31,18 +31,19 @@ namespace grpc { +namespace internal { +class CallOpSendMessage; template <class R> class CallOpRecvMessage; +class CallOpGenericRecvMessage; class MethodHandler; template <class ServiceType, class RequestType, class ResponseType> class RpcMethodHandler; template <class ServiceType, class RequestType, class ResponseType> class ServerStreamingHandler; -namespace CallOpGenericRecvMessageHelper { template <class R> class DeserializeFuncType; -} // namespace CallOpGenericRecvMessageHelper - +} // namespace internal /// A sequence of bytes. class ByteBuffer final { public: @@ -97,17 +98,17 @@ class ByteBuffer final { private: friend class SerializationTraits<ByteBuffer, void>; - friend class CallOpSendMessage; + friend class internal::CallOpSendMessage; template <class R> - friend class CallOpRecvMessage; - friend class CallOpGenericRecvMessage; - friend class MethodHandler; + friend class internal::CallOpRecvMessage; + friend class internal::CallOpGenericRecvMessage; + friend class internal::MethodHandler; template <class ServiceType, class RequestType, class ResponseType> - friend class RpcMethodHandler; + friend class internal::RpcMethodHandler; template <class ServiceType, class RequestType, class ResponseType> - friend class ServerStreamingHandler; + friend class internal::ServerStreamingHandler; template <class R> - friend class CallOpGenericRecvMessageHelper::DeserializeFuncType; + friend class internal::DeserializeFuncType; grpc_byte_buffer* buffer_; |