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

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: Addressed nits 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 18a3fda7d3809714f429a5740575c70eb50bec58..668b502d6a0106a1fc88c359f862d786e489c11a 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_bytes_received_;
+ // Number of bytes sent by the headers stream on behalf of this stream.
+ int64_t headers_bytes_sent_;
+
// Number of bytes received when the stream was closed.
int64_t 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