Chromium Code Reviews| Index: components/grpc_support/cronet_bidirectional_stream.h |
| diff --git a/components/cronet/ios/cronet_bidirectional_stream.h b/components/grpc_support/cronet_bidirectional_stream.h |
| similarity index 97% |
| rename from components/cronet/ios/cronet_bidirectional_stream.h |
| rename to components/grpc_support/cronet_bidirectional_stream.h |
| index 6d82b2327f62265ce08a9116b0534296a0b0d289..09c4e6c712050c6a09e39ea305b709fe6221eba0 100644 |
| --- a/components/cronet/ios/cronet_bidirectional_stream.h |
| +++ b/components/grpc_support/cronet_bidirectional_stream.h |
| @@ -18,9 +18,9 @@ class HttpRequestHeaders; |
| class WrappedIOBuffer; |
| } // namespace net |
| -namespace cronet { |
| +namespace grpc_support { |
| -class CronetEnvironment; |
| +class Environment; |
| // An adapter to net::BidirectionalStream. |
| // Created and configured from any thread. Start, ReadData, WriteData and |
| @@ -52,7 +52,7 @@ class CronetBidirectionalStream : public net::BidirectionalStream::Delegate { |
| virtual void OnCanceled() = 0; |
| }; |
| - CronetBidirectionalStream(CronetEnvironment* environment, Delegate* delegate); |
| + CronetBidirectionalStream(Environment* environment, Delegate* delegate); |
|
mef
2016/08/26 20:17:35
I think we should change CronetBidirectionalStream
|
| ~CronetBidirectionalStream() override; |
| // Disables automatic flushing of each buffer passed to WriteData(). |
| @@ -206,7 +206,7 @@ class CronetBidirectionalStream : public net::BidirectionalStream::Delegate { |
| bool disable_auto_flush_; |
| bool delay_headers_until_flush_; |
| - CronetEnvironment* const environment_; |
| + Environment* const environment_; |
| scoped_refptr<net::WrappedIOBuffer> read_buffer_; |
| @@ -223,6 +223,6 @@ class CronetBidirectionalStream : public net::BidirectionalStream::Delegate { |
| DISALLOW_COPY_AND_ASSIGN(CronetBidirectionalStream); |
| }; |
| -} // namespace cronet |
| +} // namespace grpc_support |
| #endif // COMPONENTS_CRONET_IOS_CRONET_BIDIRECTIONAL_STREAM_H_ |