summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_framer.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-08 02:03:00 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-08 02:03:00 +0000
commitfd9fb3a84a43f40a63166174a42006115ac18c5a (patch)
tree145d1c4d677e1c6f1e1e678a4e74f055b0f58d0f /net/spdy/spdy_framer.h
parent15b6696ecf81ce5704a02826f273ac54e2b915e1 (diff)
downloadchromium_src-fd9fb3a84a43f40a63166174a42006115ac18c5a.zip
chromium_src-fd9fb3a84a43f40a63166174a42006115ac18c5a.tar.gz
chromium_src-fd9fb3a84a43f40a63166174a42006115ac18c5a.tar.bz2
Add debug callbacks for frame decompression ratios to SpdyFramerDebugVisitorInterface.
Lands server change 32325136. Also fixes new test expectations when USE_SYSTEM_ZLIB is not set. Review URL: https://codereview.chromium.org/12212025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_framer.h')
-rw-r--r--net/spdy/spdy_framer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h
index 607da99..0685be8 100644
--- a/net/spdy/spdy_framer.h
+++ b/net/spdy/spdy_framer.h
@@ -228,6 +228,16 @@ class SpdyFramerDebugVisitorInterface {
// Provides uncompressed and compressed sizes.
virtual void OnCompressedHeaderBlock(size_t uncompressed_len,
size_t compressed_len) {}
+
+ // Called when decompressing header blocks.
+ // Provides uncompressed and compressed sizes.
+ // Called once per incremental decompression. That is to say, if a header
+ // block is decompressed in four chunks, this will result in four calls to
+ // OnDecompressedHeaderBlock() interleaved with four calls to
+ // OnControlFrameHeaderData(). Note that uncompressed_len may be 0 in some
+ // valid cases, even though compressed_len is nonzero.
+ virtual void OnDecompressedHeaderBlock(size_t uncompressed_len,
+ size_t compressed_len) {}
};
class NET_EXPORT_PRIVATE SpdyFramer {