Index: net/quic/quic_header_list.cc |
diff --git a/net/quic/quic_header_list.cc b/net/quic/quic_header_list.cc |
index 2edb3438d75a52216f65f5b51c5d2559a3bff5c6..4d2f3f64bab022db0314ecae657d68747c94fbd1 100644 |
--- a/net/quic/quic_header_list.cc |
+++ b/net/quic/quic_header_list.cc |
@@ -4,6 +4,8 @@ |
#include "net/quic/quic_header_list.h" |
+using std::string; |
+ |
namespace net { |
QuicHeaderList::QuicHeaderList() : uncompressed_header_bytes_(0) {} |
@@ -37,4 +39,13 @@ void QuicHeaderList::Clear() { |
uncompressed_header_bytes_ = 0; |
} |
+string QuicHeaderList::DebugString() const { |
+ string s = "{ "; |
+ for (const auto& p : *this) { |
+ s.append(p.first + "=" + p.second + ", "); |
+ } |
+ s.append("}"); |
+ return s; |
+} |
+ |
} // namespace net |