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

Unified Diff: net/spdy/hpack_encoder.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/hpack_decoder_test.cc ('k') | net/spdy/hpack_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_encoder.h
diff --git a/net/spdy/hpack_encoder.h b/net/spdy/hpack_encoder.h
index 752f2f57ba53ad06523fb6dc7add3d5e4e9c3dfb..07e7088de2beeacfa6ca5d8e5e3ac4930696f2a1 100644
--- a/net/spdy/hpack_encoder.h
+++ b/net/spdy/hpack_encoder.h
@@ -16,6 +16,7 @@
#include "net/base/net_export.h"
#include "net/spdy/hpack_header_table.h"
#include "net/spdy/hpack_output_stream.h"
+#include "net/spdy/spdy_protocol.h"
// An HpackEncoder encodes header sets as outlined in
// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08
@@ -39,15 +40,13 @@ class NET_EXPORT_PRIVATE HpackEncoder {
// Encodes the given header set into the given string. Returns
// whether or not the encoding was successful.
- bool EncodeHeaderSet(const std::map<std::string, std::string>& header_set,
- std::string* output);
+ bool EncodeHeaderSet(const SpdyHeaderBlock& header_set, std::string* output);
// Encodes the given header set into the given string. Only non-indexed
// literal representations are emitted, bypassing the header table. Huffman
// coding is also not used. Returns whether the encoding was successful.
- bool EncodeHeaderSetWithoutCompression(
- const std::map<std::string, std::string>& header_set,
- std::string* output);
+ bool EncodeHeaderSetWithoutCompression(const SpdyHeaderBlock& header_set,
+ std::string* output);
// Called upon a change to SETTINGS_HEADER_TABLE_SIZE. Specifically, this
// is to be called after receiving (and sending an acknowledgement for) a
« no previous file with comments | « net/spdy/hpack_decoder_test.cc ('k') | net/spdy/hpack_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698