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

Unified Diff: net/spdy/hpack/hpack_decoder.cc

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 | « net/spdy/header_coalescer.h ('k') | net/spdy/spdy_deframer_visitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_decoder.cc
diff --git a/net/spdy/hpack/hpack_decoder.cc b/net/spdy/hpack/hpack_decoder.cc
index 4dbbc0e3d8e456cc5fdf439f5c13efb37b027ed8..7513c8da41d77f0921ddc6af51ac83c857630f83 100644
--- a/net/spdy/hpack/hpack_decoder.cc
+++ b/net/spdy/hpack/hpack_decoder.cc
@@ -89,7 +89,11 @@ bool HpackDecoder::HandleControlFrameHeadersComplete(size_t* compressed_len) {
}
if (handler_ != nullptr) {
- handler_->OnHeaderBlockEnd(total_header_bytes_);
+ if (FLAGS_chromium_http2_flag_log_compressed_size) {
+ handler_->OnHeaderBlockEnd(total_header_bytes_, total_parsed_bytes_);
+ } else {
+ handler_->OnHeaderBlockEnd(total_header_bytes_);
+ }
}
headers_block_buffer_.clear();
total_parsed_bytes_ = 0;
« no previous file with comments | « net/spdy/header_coalescer.h ('k') | net/spdy/spdy_deframer_visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698