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

Unified Diff: net/spdy/hpack_encoder.cc

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_encoder.h ('k') | net/spdy/hpack_encoder_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_encoder.cc
diff --git a/net/spdy/hpack_encoder.cc b/net/spdy/hpack_encoder.cc
index d8b5005d6adf7c1a7186e5707b5db6df308a612e..10fbb86e0a7885066235e63239baf0d52dda0e5e 100644
--- a/net/spdy/hpack_encoder.cc
+++ b/net/spdy/hpack_encoder.cc
@@ -25,7 +25,7 @@ HpackEncoder::HpackEncoder(const HpackHuffmanTable& table)
HpackEncoder::~HpackEncoder() {}
-bool HpackEncoder::EncodeHeaderSet(const std::map<string, string>& header_set,
+bool HpackEncoder::EncodeHeaderSet(const SpdyHeaderBlock& header_set,
string* output) {
// Separate header set into pseudo-headers and regular headers.
Representations pseudo_headers;
@@ -78,9 +78,8 @@ bool HpackEncoder::EncodeHeaderSet(const std::map<string, string>& header_set,
}
bool HpackEncoder::EncodeHeaderSetWithoutCompression(
- const std::map<string, string>& header_set,
+ const SpdyHeaderBlock& header_set,
string* output) {
-
allow_huffman_compression_ = false;
for (const auto& header : header_set) {
// Note that cookies are not crumbled in this case.
« no previous file with comments | « net/spdy/hpack_encoder.h ('k') | net/spdy/hpack_encoder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698