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

Unified Diff: net/quic/quic_http_stream.h

Issue 1360063002: Include HTTP header bytes in GetTotalSent/ReceivedBytes for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patch set Created 5 years, 3 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/quic/quic_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_http_stream.h
diff --git a/net/quic/quic_http_stream.h b/net/quic/quic_http_stream.h
index df88bf8d5dc4c94be8279cda53b16ff013313291..f67d094e84fbc60c3751ddab1acee58fb7d1d6a0 100644
--- a/net/quic/quic_http_stream.h
+++ b/net/quic/quic_http_stream.h
@@ -62,7 +62,8 @@ class NET_EXPORT_PRIVATE QuicHttpStream
void SetPriority(RequestPriority priority) override;
// QuicReliableClientStream::Delegate implementation
- void OnHeadersAvailable(const SpdyHeaderBlock& headers) override;
+ void OnHeadersAvailable(const SpdyHeaderBlock& headers,
+ size_t frame_len) override;
void OnDataAvailable() override;
void OnClose(QuicErrorCode error) override;
void OnError(int error) override;
@@ -144,6 +145,11 @@ class NET_EXPORT_PRIVATE QuicHttpStream
// Serialized HTTP request.
std::string request_;
+ // Number of bytes received by the headers stream on behalf of this stream.
+ int64_t headers_stream_received_bytes_;
+ // Number of bytes sent by the headers stream on behalf of this stream.
+ int64_t headers_stream_sent_bytes_;
Ryan Hamilton 2015/09/23 02:53:26 nit: I would name these: headers_bytes_sent_ and h
+
// Number of bytes received when the stream was closed.
int64 closed_stream_received_bytes_;
// Number of bytes sent when the stream was closed.
« no previous file with comments | « no previous file | net/quic/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698