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

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

Issue 1914193002: Implements incremental decode in HPACK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | net/spdy/hpack/hpack_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_decoder.h
diff --git a/net/spdy/hpack/hpack_decoder.h b/net/spdy/hpack/hpack_decoder.h
index b430f7c56baa452a4d805f50bff8d16b64dc9e3b..c78bf3cc1d33a00198589d44e7611a294004fc73 100644
--- a/net/spdy/hpack/hpack_decoder.h
+++ b/net/spdy/hpack/hpack_decoder.h
@@ -112,9 +112,14 @@ class NET_EXPORT_PRIVATE HpackDecoder {
// Flag to keep track of having seen the header block start.
bool header_block_started_;
+ // Total bytes have been removed from headers_block_buffer_.
+ // Its value is updated during incremental decoding.
+ uint32_t total_parsed_bytes_;
+
// Handlers for decoding HPACK opcodes and header representations
// (or parts thereof). These methods return true on success and
// false on error.
+ bool DecodeNextOpcodeWrapper(HpackInputStream* input_stream);
bool DecodeNextOpcode(HpackInputStream* input_stream);
bool DecodeNextHeaderTableSizeUpdate(HpackInputStream* input_stream);
bool DecodeNextIndexedHeader(HpackInputStream* input_stream);
« no previous file with comments | « no previous file | net/spdy/hpack/hpack_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698