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

Unified Diff: net/spdy/hpack/hpack_decoder.h

Issue 2801603003: Add SpdyString alias for std::string in net/spdy. (Closed)
Patch Set: Created 3 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/spdy/header_coalescer_test.cc ('k') | net/spdy/hpack/hpack_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_decoder.h
diff --git a/net/spdy/hpack/hpack_decoder.h b/net/spdy/hpack/hpack_decoder.h
index 8fa9e1963f624d272ed7bc229fb7e14259adf5ee..6df4d1a3bd1871ce1b104d8716e5dda994e00ccb 100644
--- a/net/spdy/hpack/hpack_decoder.h
+++ b/net/spdy/hpack/hpack_decoder.h
@@ -10,7 +10,6 @@
#include <map>
#include <memory>
-#include <string>
#include <vector>
#include "base/macros.h"
@@ -18,6 +17,7 @@
#include "net/spdy/hpack/hpack_decoder_interface.h"
#include "net/spdy/hpack/hpack_header_table.h"
#include "net/spdy/hpack/hpack_input_stream.h"
+#include "net/spdy/platform/api/spdy_string.h"
#include "net/spdy/platform/api/spdy_string_piece.h"
#include "net/spdy/spdy_headers_handler_interface.h"
#include "net/spdy/spdy_protocol.h"
@@ -116,11 +116,11 @@ class NET_EXPORT_PRIVATE HpackDecoder : public HpackDecoderInterface {
// TODO(jgraettinger): Buffer for headers data, and storage for the last-
// processed headers block. Both will be removed with the switch to
// SpdyHeadersHandlerInterface.
- std::string headers_block_buffer_;
+ SpdyString headers_block_buffer_;
SpdyHeaderBlock decoded_block_;
// Scratch space for storing decoded literals.
- std::string key_buffer_, value_buffer_;
+ SpdyString key_buffer_, value_buffer_;
// If non-NULL, handles decoded headers.
SpdyHeadersHandlerInterface* handler_;
« no previous file with comments | « net/spdy/header_coalescer_test.cc ('k') | net/spdy/hpack/hpack_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698