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

Unified Diff: net/spdy/hpack/hpack_entry.cc

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_entry.h ('k') | net/spdy/hpack/hpack_entry_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_entry.cc
diff --git a/net/spdy/hpack/hpack_entry.cc b/net/spdy/hpack/hpack_entry.cc
index 4b6d50007d39b22ca1d746d1343c849c96f75083..582d55d209d06d84bdbf34ababc72a3c7c5d9651 100644
--- a/net/spdy/hpack/hpack_entry.cc
+++ b/net/spdy/hpack/hpack_entry.cc
@@ -74,9 +74,9 @@ size_t HpackEntry::Size() const {
return Size(name(), value());
}
-std::string HpackEntry::GetDebugString() const {
- return "{ name: \"" + std::string(name_ref_) + "\", value: \"" +
- std::string(value_ref_) +
+SpdyString HpackEntry::GetDebugString() const {
+ return "{ name: \"" + SpdyString(name_ref_) + "\", value: \"" +
+ SpdyString(value_ref_) +
"\", index: " + base::SizeTToString(insertion_index_) +
(IsStatic() ? " static" : (IsLookup() ? " lookup" : " dynamic")) +
" }";
« no previous file with comments | « net/spdy/hpack/hpack_entry.h ('k') | net/spdy/hpack/hpack_entry_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698