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

Unified Diff: net/spdy/spdy_framer.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_round_trip_test.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_framer.h
diff --git a/net/spdy/spdy_framer.h b/net/spdy/spdy_framer.h
index f7114c68d2acfb864fcfb70775b786361ad72b05..cbefef5dae1e482bb75e500f504d163417e423c3 100644
--- a/net/spdy/spdy_framer.h
+++ b/net/spdy/spdy_framer.h
@@ -49,10 +49,6 @@ class SpdyFramerPeer;
} // namespace test
-// A datastructure for holding a set of headers from a HEADERS, PUSH_PROMISE,
-// SYN_STREAM, or SYN_REPLY frame.
-typedef std::map<std::string, std::string> SpdyHeaderBlock;
-
// A datastructure for holding the ID and flag fields for SETTINGS.
// Conveniently handles converstion to/from wire format.
class NET_EXPORT_PRIVATE SettingsFlagsAndId {
@@ -676,14 +672,13 @@ class NET_EXPORT_PRIVATE SpdyFramer {
void WriteHeaderBlockToZ(const SpdyHeaderBlock* headers,
z_stream* out) const;
- void SerializeNameValueBlockWithoutCompression(
+ void SerializeHeaderBlockWithoutCompression(
SpdyFrameBuilder* builder,
- const SpdyNameValueBlock& name_value_block) const;
+ const SpdyHeaderBlock& header_block) const;
// Compresses automatically according to enable_compression_.
- void SerializeNameValueBlock(
- SpdyFrameBuilder* builder,
- const SpdyFrameWithNameValueBlockIR& frame);
+ void SerializeHeaderBlock(SpdyFrameBuilder* builder,
+ const SpdyFrameWithHeaderBlockIR& frame);
// Set the error code and moves the framer into the error state.
void set_error(SpdyError error);
« no previous file with comments | « net/spdy/hpack_round_trip_test.cc ('k') | net/spdy/spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698