Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: net/quic/quic_header_list.cc

Issue 1870833005: relnote: Implements OnHeaderFrameStart and OnHeaderFrameEnd in QuicHeadersStream. Not used in produ… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@06_CL_119188441
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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:11:57 Please add a blank line between line#3 and line#4
Zhongyi Shi 2016/04/11 18:27:31 done in the final.
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) = default ;
15
16 QuicHeaderList& QuicHeaderList::operator=(QuicHeaderList&& other) = default;
17
18 QuicHeaderList::~QuicHeaderList() {}
19
20 void QuicHeaderList::OnHeaderBlockStart() {
21 QUIC_BUG_IF(uncompressed_header_bytes_ != 0)
22 << "OnHeaderBlockStart called more than once!";
23 }
24
25 void QuicHeaderList::OnHeader(base::StringPiece name, base::StringPiece value) {
26 header_list_.emplace_back(name.as_string(), value.as_string());
27 }
28
29 void QuicHeaderList::OnHeaderBlockEnd(size_t uncompressed_header_bytes) {
30 uncompressed_header_bytes_ = uncompressed_header_bytes;
31 }
32
33 void QuicHeaderList::Clear() {
34 header_list_.clear();
35 uncompressed_header_bytes_ = 0;
36 }
37
38 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698