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

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

Issue 1421853006: Landing Recent QUIC changes until: Fri Oct 30 22:23:58 2015 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 1 month 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_chromium_client_session.h ('k') | net/quic/quic_chromium_client_session_test.cc » ('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/quic_chromium_client_session.h" 5 #include "net/quic/quic_chromium_client_session.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/sparse_histogram.h" 10 #include "base/metrics/sparse_histogram.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 0, kMaxReordering, 50); 342 0, kMaxReordering, 50);
343 if (stats.min_rtt_us > 100 * 1000) { 343 if (stats.min_rtt_us > 100 * 1000) {
344 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.MaxReorderingTimeLongRtt", 344 UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.MaxReorderingTimeLongRtt",
345 reordering, 0, kMaxReordering, 50); 345 reordering, 0, kMaxReordering, 50);
346 } 346 }
347 UMA_HISTOGRAM_COUNTS( 347 UMA_HISTOGRAM_COUNTS(
348 "Net.QuicSession.MaxReordering", 348 "Net.QuicSession.MaxReordering",
349 static_cast<base::HistogramBase::Sample>(stats.max_sequence_reordering)); 349 static_cast<base::HistogramBase::Sample>(stats.max_sequence_reordering));
350 } 350 }
351 351
352 void QuicChromiumClientSession::OnHeadersHeadOfLineBlocking(
353 QuicTime::Delta delta) {
354 UMA_HISTOGRAM_TIMES(
355 "Net.QuicSession.HeadersHOLBlockedTime",
356 base::TimeDelta::FromMicroseconds(delta.ToMicroseconds()));
357 }
358
352 void QuicChromiumClientSession::OnStreamFrame(const QuicStreamFrame& frame) { 359 void QuicChromiumClientSession::OnStreamFrame(const QuicStreamFrame& frame) {
353 // Record total number of stream frames. 360 // Record total number of stream frames.
354 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesInPacket", 1); 361 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesInPacket", 1);
355 362
356 // Record number of frames per stream in packet. 363 // Record number of frames per stream in packet.
357 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesPerStreamInPacket", 1); 364 UMA_HISTOGRAM_COUNTS("Net.QuicNumStreamFramesPerStreamInPacket", 1);
358 365
359 return QuicSpdySession::OnStreamFrame(frame); 366 return QuicSpdySession::OnStreamFrame(frame);
360 } 367 }
361 368
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 return; 975 return;
969 976
970 // TODO(rch): re-enable this code once beta is cut. 977 // TODO(rch): re-enable this code once beta is cut.
971 // if (stream_factory_) 978 // if (stream_factory_)
972 // stream_factory_->OnSessionConnectTimeout(this); 979 // stream_factory_->OnSessionConnectTimeout(this);
973 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED); 980 // CloseAllStreams(ERR_QUIC_HANDSHAKE_FAILED);
974 // DCHECK_EQ(0u, GetNumOpenStreams()); 981 // DCHECK_EQ(0u, GetNumOpenStreams());
975 } 982 }
976 983
977 } // namespace net 984 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | net/quic/quic_chromium_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698