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

Unified Diff: net/spdy/hpack_decoder.h

Issue 246073007: SPDY & HPACK: Land recent internal changes (through 65328503) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on upstream change: Expanded FRAME_TOO_LARGE/FRAME_SIZE_ERROR comment. Created 6 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 | « net/quic/spdy_utils.cc ('k') | net/spdy/hpack_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_decoder.h
diff --git a/net/spdy/hpack_decoder.h b/net/spdy/hpack_decoder.h
index 4e3dbea9b66e953716f975c0b43fe0e557f5ada3..ec2949bd99b2cfbabf0c2de0cf9005cdef7f4cf3 100644
--- a/net/spdy/hpack_decoder.h
+++ b/net/spdy/hpack_decoder.h
@@ -13,7 +13,7 @@
#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
-#include "net/spdy/hpack_encoding_context.h"
+#include "net/spdy/hpack_header_table.h"
#include "net/spdy/hpack_input_stream.h"
#include "net/spdy/spdy_protocol.h"
@@ -38,8 +38,9 @@ class NET_EXPORT_PRIVATE HpackDecoder {
~HpackDecoder();
// Called upon acknowledgement of SETTINGS_HEADER_TABLE_SIZE.
- // See HpackEncodingContext::ApplyHeaderTableSizeSetting().
- void ApplyHeaderTableSizeSetting(uint32 max_size);
+ void ApplyHeaderTableSizeSetting(size_t size_setting) {
+ header_table_.SetSettingsHeaderTableSize(size_setting);
+ }
// Called as headers data arrives. Returns false if an error occurred.
// TODO(jgraettinger): A future version of this method will incrementally
@@ -82,7 +83,7 @@ class NET_EXPORT_PRIVATE HpackDecoder {
base::StringPiece value);
const uint32 max_string_literal_size_;
- HpackEncodingContext context_;
+ HpackHeaderTable header_table_;
// Incrementally reconstructed cookie value. Name is also kept to preserve
// input casing.
@@ -97,7 +98,7 @@ class NET_EXPORT_PRIVATE HpackDecoder {
// Huffman table to be applied to decoded Huffman literals,
// and scratch space for storing those decoded literals.
const HpackHuffmanTable& huffman_table_;
- std::string huffman_key_buffer_, huffman_value_buffer_;
+ std::string key_buffer_, value_buffer_;
// Handlers for decoding HPACK opcodes and header representations
// (or parts thereof). These methods return true on success and
« no previous file with comments | « net/quic/spdy_utils.cc ('k') | net/spdy/hpack_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698