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

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

Issue 937803002: Add a new histogram Net.QuicSession.HeadersStreamEarlyFramesReceived (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 5 years, 10 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/reliable_quic_stream.h ('k') | tools/metrics/histograms/histograms.xml » ('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 "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "net/quic/iovector.h" 9 #include "net/quic/iovector.h"
10 #include "net/quic/quic_flow_controller.h" 10 #include "net/quic/quic_flow_controller.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 } 175 }
176 176
177 sequencer_.OnStreamFrame(frame); 177 sequencer_.OnStreamFrame(frame);
178 } 178 }
179 179
180 int ReliableQuicStream::num_frames_received() const { 180 int ReliableQuicStream::num_frames_received() const {
181 return sequencer_.num_frames_received(); 181 return sequencer_.num_frames_received();
182 } 182 }
183 183
184 int ReliableQuicStream::num_early_frames_received() const {
185 return sequencer_.num_early_frames_received();
186 }
187
184 int ReliableQuicStream::num_duplicate_frames_received() const { 188 int ReliableQuicStream::num_duplicate_frames_received() const {
185 return sequencer_.num_duplicate_frames_received(); 189 return sequencer_.num_duplicate_frames_received();
186 } 190 }
187 191
188 void ReliableQuicStream::OnStreamReset(const QuicRstStreamFrame& frame) { 192 void ReliableQuicStream::OnStreamReset(const QuicRstStreamFrame& frame) {
189 rst_received_ = true; 193 rst_received_ = true;
190 MaybeIncreaseHighestReceivedOffset(frame.byte_offset); 194 MaybeIncreaseHighestReceivedOffset(frame.byte_offset);
191 195
192 stream_error_ = frame.error_code; 196 stream_error_ = frame.error_code;
193 CloseWriteSide(); 197 CloseWriteSide();
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 524
521 bool ReliableQuicStream::IsFlowControlBlocked() { 525 bool ReliableQuicStream::IsFlowControlBlocked() {
522 if (flow_controller_.IsBlocked()) { 526 if (flow_controller_.IsBlocked()) {
523 return true; 527 return true;
524 } 528 }
525 return stream_contributes_to_connection_flow_control_ && 529 return stream_contributes_to_connection_flow_control_ &&
526 connection_flow_controller_->IsBlocked(); 530 connection_flow_controller_->IsBlocked();
527 } 531 }
528 532
529 } // namespace net 533 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/reliable_quic_stream.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698