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

Unified Diff: net/http/bidirectional_stream.h

Issue 1883883002: Log sent and received bytes in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 8 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 | « no previous file | net/http/bidirectional_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/bidirectional_stream.h
diff --git a/net/http/bidirectional_stream.h b/net/http/bidirectional_stream.h
index 7e6152a48f9d699b62d8853419dfdde9267e1e51..d91e41b9de355bcd9aa19e2bbeab6a8e5f761a49 100644
--- a/net/http/bidirectional_stream.h
+++ b/net/http/bidirectional_stream.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "net/http/bidirectional_stream_impl.h"
#include "net/http/http_stream_factory.h"
@@ -202,6 +203,13 @@ class NET_EXPORT BidirectionalStream
// non-NULL, if the |stream_request_| successfully finishes.
scoped_ptr<BidirectionalStreamImpl> stream_impl_;
+ // Buffer used for reading.
+ scoped_refptr<IOBuffer> read_buffer_;
+ // Buffer used for writing.
+ scoped_refptr<IOBuffer> write_buffer_;
+ // Length of |write_buffer_|.
+ size_t write_buffer_len_;
+
DISALLOW_COPY_AND_ASSIGN(BidirectionalStream);
};
« no previous file with comments | « no previous file | net/http/bidirectional_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698