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

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

Issue 973683003: CL generated with data from dead-code analysis using (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_PrrSender_TimeUntilSend_87535917
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/quic/quic_data_stream.h ('k') | net/quic/quic_data_writer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_data_stream.h" 5 #include "net/quic/quic_data_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/quic_session.h" 8 #include "net/quic/quic_session.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/quic_utils.h"
10 #include "net/quic/quic_write_blocked_list.h" 10 #include "net/quic/quic_write_blocked_list.h"
(...skipping 13 matching lines...) Expand all
24 // priority in the middle. 24 // priority in the middle.
25 QuicPriority kDefaultPriority = 3; 25 QuicPriority kDefaultPriority = 3;
26 26
27 } // namespace 27 } // namespace
28 28
29 QuicDataStream::QuicDataStream(QuicStreamId id, 29 QuicDataStream::QuicDataStream(QuicStreamId id,
30 QuicSession* session) 30 QuicSession* session)
31 : ReliableQuicStream(id, session), 31 : ReliableQuicStream(id, session),
32 visitor_(nullptr), 32 visitor_(nullptr),
33 headers_decompressed_(false), 33 headers_decompressed_(false),
34 priority_(kDefaultPriority), 34 priority_(kDefaultPriority) {
35 decompression_failed_(false),
36 priority_parsed_(false) {
37 DCHECK_NE(kCryptoStreamId, id); 35 DCHECK_NE(kCryptoStreamId, id);
38 // Don't receive any callbacks from the sequencer until headers 36 // Don't receive any callbacks from the sequencer until headers
39 // are complete. 37 // are complete.
40 sequencer()->SetBlockedUntilFlush(); 38 sequencer()->SetBlockedUntilFlush();
41 } 39 }
42 40
43 QuicDataStream::~QuicDataStream() { 41 QuicDataStream::~QuicDataStream() {
44 } 42 }
45 43
46 size_t QuicDataStream::WriteHeaders( 44 size_t QuicDataStream::WriteHeaders(
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 visitor_ = nullptr; 176 visitor_ = nullptr;
179 visitor->OnClose(this); 177 visitor->OnClose(this);
180 } 178 }
181 } 179 }
182 180
183 bool QuicDataStream::FinishedReadingHeaders() { 181 bool QuicDataStream::FinishedReadingHeaders() {
184 return headers_decompressed_ && decompressed_headers_.empty(); 182 return headers_decompressed_ && decompressed_headers_.empty();
185 } 183 }
186 184
187 } // namespace net 185 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream.h ('k') | net/quic/quic_data_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698