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

Unified Diff: net/spdy/spdy_headers_block_parser.h

Issue 290003006: Land recent SPDY changes (through 67282679) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on nullptr => NULL Created 6 years, 7 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_test.cc ('k') | net/spdy/spdy_headers_block_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_headers_block_parser.h
diff --git a/net/spdy/spdy_headers_block_parser.h b/net/spdy/spdy_headers_block_parser.h
index b853b91047e6219ea5b4af57df65a6d79ceaef07..2c9207cc5bc1d0c1c54bdbe80e4e5c3d6d904b94 100644
--- a/net/spdy/spdy_headers_block_parser.h
+++ b/net/spdy/spdy_headers_block_parser.h
@@ -31,8 +31,9 @@ class SpdyHeadersHandlerInterface {
base::StringPiece value) = 0;
// A callback method which notifies when the parser finishes handling a SPDY
- // headers block.
- virtual void OnHeaderBlockEnd(SpdyStreamId stream_id) = 0;
+ // headers block. Also notifies on the total number of bytes in this block.
+ virtual void OnHeaderBlockEnd(SpdyStreamId stream_id,
+ size_t header_bytes_parsed) = 0;
};
namespace test {
@@ -116,6 +117,9 @@ class NET_EXPORT_PRIVATE SpdyHeadersBlockParser {
// The maximal number of headers in a SPDY headers block.
const size_t max_headers_in_block_;
+ // A running total of the bytes parsed since the last call to Reset().
+ size_t total_bytes_received_;
+
// Number of key-value pairs until we complete handling the current
// headers block.
uint32_t remaining_key_value_pairs_for_frame_;
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_headers_block_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698