| 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
|
|
|