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

Unified Diff: net/spdy/hpack_decoder.h

Issue 1263803002: Replace SpdyNameValueBlock typedef with SpdyHeaderBlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/fuzzing/hpack_fuzz_util_test.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 a97405836576d458a21c3434dec24d9c6d8ca50c..4eb46de8ba4e332010f72aed2522d28fc5e6f1c4 100644
--- a/net/spdy/hpack_decoder.h
+++ b/net/spdy/hpack_decoder.h
@@ -63,9 +63,7 @@ class NET_EXPORT_PRIVATE HpackDecoder {
// TODO(jgraettinger): This was added to facilitate re-encoding the block in
// SPDY3 format for delivery to the SpdyFramer visitor, and will be removed
// with the migration to SpdyHeadersHandlerInterface.
- const std::map<std::string, std::string>& decoded_block() {
- return decoded_block_;
- }
+ const SpdyHeaderBlock& decoded_block() { return decoded_block_; }
private:
// Adds the header representation to |decoded_block_|, applying the
@@ -96,7 +94,7 @@ class NET_EXPORT_PRIVATE HpackDecoder {
// processed headers block. Both will be removed with the switch to
// SpdyHeadersHandlerInterface.
std::string headers_block_buffer_;
- std::map<std::string, std::string> decoded_block_;
+ SpdyHeaderBlock decoded_block_;
// Flag to keep track of having seen a regular header field.
bool regular_header_seen_;
« no previous file with comments | « net/spdy/fuzzing/hpack_fuzz_util_test.cc ('k') | net/spdy/hpack_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698