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

Unified Diff: net/spdy/hpack/hpack_entry.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_encoder_test.cc ('k') | net/spdy/hpack/hpack_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_entry.h
diff --git a/net/spdy/hpack/hpack_entry.h b/net/spdy/hpack/hpack_entry.h
index 8e7993a7078879ff131530429928300b405bf052..0d4287f04bca8ddecc72f8aa9f7d83bcc1bace9b 100644
--- a/net/spdy/hpack/hpack_entry.h
+++ b/net/spdy/hpack/hpack_entry.h
@@ -7,10 +7,9 @@
#include <stddef.h>
-#include <string>
-
#include "base/macros.h"
#include "net/base/net_export.h"
+#include "net/spdy/platform/api/spdy_string.h"
#include "net/spdy/platform/api/spdy_string_piece.h"
// All section references below are to
@@ -71,7 +70,7 @@ class NET_EXPORT_PRIVATE HpackEntry {
static size_t Size(SpdyStringPiece name, SpdyStringPiece value);
size_t Size() const;
- std::string GetDebugString() const;
+ SpdyString GetDebugString() const;
int64_t time_added() const { return time_added_; }
void set_time_added(int64_t now) { time_added_ = now; }
@@ -87,8 +86,8 @@ class NET_EXPORT_PRIVATE HpackEntry {
};
// These members are not used for LOOKUP entries.
- std::string name_;
- std::string value_;
+ SpdyString name_;
+ SpdyString value_;
// These members are always valid. For DYNAMIC and STATIC entries, they
// always point to |name_| and |value_|.
« no previous file with comments | « net/spdy/hpack/hpack_encoder_test.cc ('k') | net/spdy/hpack/hpack_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698