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

Unified Diff: net/spdy/hpack/hpack_output_stream.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/hpack/hpack_input_stream_test.cc ('k') | net/spdy/hpack/hpack_output_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_output_stream.h
diff --git a/net/spdy/hpack/hpack_output_stream.h b/net/spdy/hpack/hpack_output_stream.h
index fe252ec456e0fd58d5a05de719fd621a15c38144..05dce985ad309ebe2b74ece3a66384d5791e2dfd 100644
--- a/net/spdy/hpack/hpack_output_stream.h
+++ b/net/spdy/hpack/hpack_output_stream.h
@@ -9,11 +9,11 @@
#include <stdint.h>
#include <map>
-#include <string>
#include "base/macros.h"
#include "net/base/net_export.h"
#include "net/spdy/hpack/hpack_constants.h"
+#include "net/spdy/platform/api/spdy_string.h"
#include "net/spdy/platform/api/spdy_string_piece.h"
// All section references below are to
@@ -50,11 +50,11 @@ class NET_EXPORT_PRIVATE HpackOutputStream {
void AppendUint32(uint32_t I);
// Swaps the internal buffer with |output|, then resets state.
- void TakeString(std::string* output);
+ void TakeString(SpdyString* output);
// Gives up to |max_size| bytes of the internal buffer to |output|. Resets
// internal state with the overflow.
- void BoundedTakeString(size_t max_size, std::string* output);
+ void BoundedTakeString(size_t max_size, SpdyString* output);
// Size in bytes of stream's internal buffer.
size_t size() const { return buffer_.size(); }
@@ -64,7 +64,7 @@ class NET_EXPORT_PRIVATE HpackOutputStream {
private:
// The internal bit buffer.
- std::string buffer_;
+ SpdyString buffer_;
// If 0, the buffer ends on a byte boundary. If non-zero, the buffer
// ends on the nth most significant bit. Guaranteed to be < 8.
« no previous file with comments | « net/spdy/hpack/hpack_input_stream_test.cc ('k') | net/spdy/hpack/hpack_output_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698