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

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

Issue 1408803002: relnote: Measure HOL blocking in QUIC headers stream. Flag protected by quic_measure_headers_hol_bl… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uma_for_hol_merge
Patch Set: get rid of git certs leakage Created 5 years, 2 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_stream_sequencer_test.cc ('k') | net/quic/test_tools/quic_test_utils.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/iovector.h" 8 #include "net/quic/iovector.h"
9 #include "net/quic/quic_ack_listener_interface.h" 9 #include "net/quic/quic_ack_listener_interface.h"
10 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ReliableQuicStream::PendingData::PendingData( 128 ReliableQuicStream::PendingData::PendingData(
129 string data_in, 129 string data_in,
130 scoped_refptr<ProxyAckNotifierDelegate> delegate_in) 130 scoped_refptr<ProxyAckNotifierDelegate> delegate_in)
131 : data(data_in), offset(0), delegate(delegate_in) { 131 : data(data_in), offset(0), delegate(delegate_in) {
132 } 132 }
133 133
134 ReliableQuicStream::PendingData::~PendingData() { 134 ReliableQuicStream::PendingData::~PendingData() {
135 } 135 }
136 136
137 ReliableQuicStream::ReliableQuicStream(QuicStreamId id, QuicSession* session) 137 ReliableQuicStream::ReliableQuicStream(QuicStreamId id, QuicSession* session)
138 : sequencer_(this), 138 : sequencer_(this, session->connection()->clock()),
139 id_(id), 139 id_(id),
140 session_(session), 140 session_(session),
141 stream_bytes_read_(0), 141 stream_bytes_read_(0),
142 stream_bytes_written_(0), 142 stream_bytes_written_(0),
143 stream_error_(QUIC_STREAM_NO_ERROR), 143 stream_error_(QUIC_STREAM_NO_ERROR),
144 connection_error_(QUIC_NO_ERROR), 144 connection_error_(QUIC_NO_ERROR),
145 read_side_closed_(false), 145 read_side_closed_(false),
146 write_side_closed_(false), 146 write_side_closed_(false),
147 fin_buffered_(false), 147 fin_buffered_(false),
148 fin_sent_(false), 148 fin_sent_(false),
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 } 552 }
553 553
554 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { 554 void ReliableQuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) {
555 if (flow_controller_.UpdateSendWindowOffset(new_window)) { 555 if (flow_controller_.UpdateSendWindowOffset(new_window)) {
556 OnCanWrite(); 556 OnCanWrite();
557 } 557 }
558 } 558 }
559 559
560 } // namespace net 560 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698