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/core/quic_header_list.h" | 5 #include "net/quic/core/quic_header_list.h" |
6 | 6 |
7 using std::string; | 7 using std::string; |
8 | 8 |
9 #include "net/quic/core/quic_flags.h" | 9 #include "net/quic/core/quic_flags.h" |
10 #include "net/quic/core/quic_protocol.h" | 10 #include "net/quic/core/quic_packets.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 QuicHeaderList::QuicHeaderList() | 14 QuicHeaderList::QuicHeaderList() |
15 : max_uncompressed_header_bytes_(kDefaultMaxUncompressedHeaderSize), | 15 : max_uncompressed_header_bytes_(kDefaultMaxUncompressedHeaderSize), |
16 uncompressed_header_bytes_(0) {} | 16 uncompressed_header_bytes_(0) {} |
17 | 17 |
18 QuicHeaderList::QuicHeaderList(QuicHeaderList&& other) = default; | 18 QuicHeaderList::QuicHeaderList(QuicHeaderList&& other) = default; |
19 | 19 |
20 QuicHeaderList::QuicHeaderList(const QuicHeaderList& other) = default; | 20 QuicHeaderList::QuicHeaderList(const QuicHeaderList& other) = default; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 string QuicHeaderList::DebugString() const { | 62 string QuicHeaderList::DebugString() const { |
63 string s = "{ "; | 63 string s = "{ "; |
64 for (const auto& p : *this) { | 64 for (const auto& p : *this) { |
65 s.append(p.first + "=" + p.second + ", "); | 65 s.append(p.first + "=" + p.second + ", "); |
66 } | 66 } |
67 s.append("}"); | 67 s.append("}"); |
68 return s; | 68 return s; |
69 } | 69 } |
70 | 70 |
71 } // namespace net | 71 } // namespace net |
OLD | NEW |