OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 #include "net/quic/quic_header_list.h" | |
ramant (doing other things)
2016/04/11 18:22:57
please add blank line between line 3 and 4.
| |
5 | |
6 namespace net { | |
7 | |
8 QuicHeaderList::QuicHeaderList() : uncompressed_header_bytes_(0) {} | |
9 | |
10 QuicHeaderList::QuicHeaderList(QuicHeaderList&& other) = default; | |
11 | |
12 QuicHeaderList::QuicHeaderList(const QuicHeaderList& other) = default; | |
13 | |
14 QuicHeaderList& QuicHeaderList::operator=(const QuicHeaderList& other) = | |
15 default; | |
16 | |
17 QuicHeaderList& QuicHeaderList::operator=(QuicHeaderList&& other) = default; | |
18 | |
19 QuicHeaderList::~QuicHeaderList() {} | |
20 | |
21 void QuicHeaderList::OnHeaderBlockStart() { | |
22 QUIC_BUG_IF(uncompressed_header_bytes_ != 0) | |
23 << "OnHeaderBlockStart called more than once!"; | |
24 } | |
25 | |
26 void QuicHeaderList::OnHeader(base::StringPiece name, base::StringPiece value) { | |
27 header_list_.emplace_back(name.as_string(), value.as_string()); | |
28 } | |
29 | |
30 void QuicHeaderList::OnHeaderBlockEnd(size_t uncompressed_header_bytes) { | |
31 uncompressed_header_bytes_ = uncompressed_header_bytes; | |
32 } | |
33 | |
34 void QuicHeaderList::Clear() { | |
35 header_list_.clear(); | |
36 uncompressed_header_bytes_ = 0; | |
37 } | |
38 | |
39 } // namespace net | |
OLD | NEW |