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

Unified Diff: net/http2/hpack/hpack_string.cc

Issue 2606733004: Add HpackDecoderTables, static and dynamic tables for decoding HPACK. (Closed)
Patch Set: Rebase. Created 3 years, 11 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/http2/hpack/hpack_string.h ('k') | net/http2/tools/http2_random.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http2/hpack/hpack_string.cc
diff --git a/net/http2/hpack/hpack_string.cc b/net/http2/hpack/hpack_string.cc
index f84bedbf9c0eb00fdd51dec43d598d2b55e98dab..b4b820b843ac9d5b6ea83b8b0fb21050bc781a5a 100644
--- a/net/http2/hpack/hpack_string.cc
+++ b/net/http2/hpack/hpack_string.cc
@@ -6,6 +6,8 @@
#include <utility>
+#include "base/logging.h"
+
using base::StringPiece;
using std::string;
@@ -44,4 +46,33 @@ std::ostream& operator<<(std::ostream& out, const HpackString& v) {
return out << v.ToString();
}
+HpackStringPair::HpackStringPair(const HpackString& name,
+ const HpackString& value)
+ : name(name), value(value) {
+ DVLOG(3) << DebugString() << " ctor";
+}
+
+HpackStringPair::HpackStringPair(StringPiece name, StringPiece value)
+ : name(name), value(value) {
+ DVLOG(3) << DebugString() << " ctor";
+}
+
+HpackStringPair::~HpackStringPair() {
+ DVLOG(3) << DebugString() << " dtor";
+}
+
+string HpackStringPair::DebugString() const {
+ string debug_string("HpackStringPair(name=");
+ debug_string.append(name.ToString());
+ debug_string.append(", value=");
+ debug_string.append(value.ToString());
+ debug_string.append(")");
+ return debug_string;
+}
+
+std::ostream& operator<<(std::ostream& os, const HpackStringPair& p) {
+ os << p.DebugString();
+ return os;
+}
+
} // namespace net
« no previous file with comments | « net/http2/hpack/hpack_string.h ('k') | net/http2/tools/http2_random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698