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

Unified Diff: net/spdy/spdy_headers_block_parser.h

Issue 863253002: Update from https://crrev.com/312600 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 3c0c8e3ed1add75ffb90000605399c75a1764b15..a9dfaa64d44b1f5dbf1e18e5e6dff6ee835e7a3a 100644
--- a/net/spdy/spdy_headers_block_parser.h
+++ b/net/spdy/spdy_headers_block_parser.h
@@ -22,18 +22,14 @@ class SpdyHeadersHandlerInterface {
// A callback method which notifies when the parser starts handling a new
// SPDY headers block, this method also notifies on the number of headers in
// the block.
- virtual void OnHeaderBlock(SpdyStreamId stream_id,
- uint32_t num_of_headers) = 0;
+ virtual void OnHeaderBlock(uint32_t num_of_headers) = 0;
// A callback method which notifies on a SPDY header key value pair.
- virtual void OnHeader(SpdyStreamId stream_id,
- base::StringPiece key,
- base::StringPiece value) = 0;
+ virtual void OnHeader(base::StringPiece key, base::StringPiece value) = 0;
// A callback method which notifies when the parser finishes handling a SPDY
// 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;
+ virtual void OnHeaderBlockEnd(size_t header_bytes_parsed) = 0;
};
namespace test {
@@ -75,6 +71,8 @@ class NET_EXPORT_PRIVATE SpdyHeadersBlockParser {
HEADER_BLOCK_TOO_LARGE,
// Set when a header key or value exceeds |kMaximumFieldLength|.
HEADER_FIELD_TOO_LARGE,
+ // Set when the parser is given an unexpected stream ID.
+ UNEXPECTED_STREAM_ID,
};
ParserError get_error() const { return error_; }

Powered by Google App Engine
This is Rietveld 408576698