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

Unified Diff: net/spdy/spdy_header_block.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/spdy_framer_test.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_header_block.h
diff --git a/net/spdy/spdy_header_block.h b/net/spdy/spdy_header_block.h
index 2e2cd3963942e5516ef7c49ec04c4b42cd5b77a0..10702c861058ae286b00e1fcfee4d8eadc28f811 100644
--- a/net/spdy/spdy_header_block.h
+++ b/net/spdy/spdy_header_block.h
@@ -10,13 +10,13 @@
#include <list>
#include <map>
#include <memory>
-#include <string>
#include <vector>
#include "base/macros.h"
#include "net/base/linked_hash_map.h"
#include "net/base/net_export.h"
#include "net/log/net_log.h"
+#include "net/spdy/platform/api/spdy_string.h"
#include "net/spdy/platform/api/spdy_string_piece.h"
namespace base {
@@ -150,7 +150,7 @@ class NET_EXPORT SpdyHeaderBlock {
// Provides a human readable multi-line representation of the stored header
// keys and values.
- std::string DebugString() const;
+ SpdyString DebugString() const;
iterator begin() { return iterator(block_.begin()); }
iterator end() { return iterator(block_.end()); }
@@ -184,8 +184,8 @@ class NET_EXPORT SpdyHeaderBlock {
ValueProxy operator[](const SpdyStringPiece key);
// This object provides automatic conversions that allow SpdyHeaderBlock to be
- // nearly a drop-in replacement for linked_hash_map<string, string>. It reads
- // data from or writes data to a SpdyHeaderBlock::Storage.
+ // nearly a drop-in replacement for linked_hash_map<SpdyString, SpdyString>.
+ // It reads data from or writes data to a SpdyHeaderBlock::Storage.
class NET_EXPORT ValueProxy {
public:
~ValueProxy();
@@ -201,7 +201,7 @@ class NET_EXPORT SpdyHeaderBlock {
// Assignment modifies the underlying SpdyHeaderBlock.
ValueProxy& operator=(const SpdyStringPiece other);
- std::string as_string() const;
+ SpdyString as_string() const;
private:
friend class SpdyHeaderBlock;
« no previous file with comments | « net/spdy/spdy_framer_test.cc ('k') | net/spdy/spdy_header_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698