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

Unified Diff: net/spdy/spdy_framer.cc

Issue 12224019: Add SpdyFramerDebugVisitorInterface for later usage in stats collecting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile failure Created 7 years, 10 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/spdy_framer.h ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.cc
diff --git a/net/spdy/spdy_framer.cc b/net/spdy/spdy_framer.cc
index 94ab6d1cf2f975a6a9f0cb0448e3a957154a1b82..d0610c2062dd3394c23bbd9cc7f91624c74e1aec 100644
--- a/net/spdy/spdy_framer.cc
+++ b/net/spdy/spdy_framer.cc
@@ -123,6 +123,7 @@ SpdyFramer::SpdyFramer(int version)
current_frame_len_(0),
enable_compression_(true),
visitor_(NULL),
+ debug_visitor_(NULL),
display_protocol_("SPDY"),
spdy_version_(version),
syn_frame_processed_(false),
@@ -1676,6 +1677,10 @@ SpdyControlFrame* SpdyFramer::CompressControlFrame(
if (visitor_)
visitor_->OnControlFrameCompressed(frame, *new_frame);
+ if (debug_visitor_ != NULL) {
+ debug_visitor_->OnCompressedHeaderBlock(payload_length, compressed_size);
+ }
+
return new_frame.release();
}
« no previous file with comments | « net/spdy/spdy_framer.h ('k') | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698