Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: components/grpc_support/cronet_bidirectional_stream.h

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add cronet_c_for_graph back to sources. Might fix GN, probably won't compile Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/grpc_support/OWNERS ('k') | components/grpc_support/cronet_bidirectional_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « components/grpc_support/OWNERS ('k') | components/grpc_support/cronet_bidirectional_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698