| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/quic_header_list.h" | 5 #include "net/quic/quic_header_list.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 QuicHeaderList::QuicHeaderList() : uncompressed_header_bytes_(0) {} | 9 QuicHeaderList::QuicHeaderList() : uncompressed_header_bytes_(0) {} |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 void QuicHeaderList::OnHeaderBlockEnd(size_t uncompressed_header_bytes) { | 31 void QuicHeaderList::OnHeaderBlockEnd(size_t uncompressed_header_bytes) { |
| 32 uncompressed_header_bytes_ = uncompressed_header_bytes; | 32 uncompressed_header_bytes_ = uncompressed_header_bytes; |
| 33 } | 33 } |
| 34 | 34 |
| 35 void QuicHeaderList::Clear() { | 35 void QuicHeaderList::Clear() { |
| 36 header_list_.clear(); | 36 header_list_.clear(); |
| 37 uncompressed_header_bytes_ = 0; | 37 uncompressed_header_bytes_ = 0; |
| 38 } | 38 } |
| 39 | 39 |
| 40 std::string QuicHeaderList::DebugString() const { |
| 41 std::string s = "{ "; |
| 42 for (const auto& p : *this) { |
| 43 s.append(p.first + "=" + p.second + ", "); |
| 44 } |
| 45 s.append("}"); |
| 46 return s; |
| 47 } |
| 48 |
| 40 } // namespace net | 49 } // namespace net |
| OLD | NEW |