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

Unified Diff: net/quic/core/quic_header_list.h

Issue 2367973002: Log compressed size of HTTP/2 requests. (Closed)
Patch Set: Created 4 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/core/quic_header_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_header_list.h
diff --git a/net/quic/core/quic_header_list.h b/net/quic/core/quic_header_list.h
index 7949965ab643208a0868b48c66d098859809bd2b..6bff6ce057b8f444092f8d94985530fc159cc735 100644
--- a/net/quic/core/quic_header_list.h
+++ b/net/quic/core/quic_header_list.h
@@ -33,6 +33,8 @@ class NET_EXPORT_PRIVATE QuicHeaderList : public SpdyHeadersHandlerInterface {
void OnHeaderBlockStart() override;
void OnHeader(base::StringPiece name, base::StringPiece value) override;
void OnHeaderBlockEnd(size_t uncompressed_header_bytes) override;
+ void OnHeaderBlockEnd(size_t uncompressed_header_bytes,
+ size_t compressed_header_bytes) override;
void Clear();
@@ -44,11 +46,14 @@ class NET_EXPORT_PRIVATE QuicHeaderList : public SpdyHeadersHandlerInterface {
return uncompressed_header_bytes_;
}
+ size_t compressed_header_bytes() const { return compressed_header_bytes_; }
+
std::string DebugString() const;
private:
std::deque<std::pair<std::string, std::string>> header_list_;
size_t uncompressed_header_bytes_;
+ size_t compressed_header_bytes_;
};
} // namespace net
« no previous file with comments | « no previous file | net/quic/core/quic_header_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698