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

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

Issue 1667583004: Landing Recent QUIC changes until 01/31/2016 05:22 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0203
Patch Set: Rebase Created 4 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
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 <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 } else { 713 } else {
714 if (IsCryptoHandshakeConfirmed()) { 714 if (IsCryptoHandshakeConfirmed()) {
715 UMA_HISTOGRAM_SPARSE_SLOWLY( 715 UMA_HISTOGRAM_SPARSE_SLOWLY(
716 "Net.QuicSession.ConnectionCloseErrorCodeClient.HandshakeConfirmed", 716 "Net.QuicSession.ConnectionCloseErrorCodeClient.HandshakeConfirmed",
717 error); 717 error);
718 } 718 }
719 UMA_HISTOGRAM_SPARSE_SLOWLY( 719 UMA_HISTOGRAM_SPARSE_SLOWLY(
720 "Net.QuicSession.ConnectionCloseErrorCodeClient", error); 720 "Net.QuicSession.ConnectionCloseErrorCodeClient", error);
721 } 721 }
722 722
723 if (error == QUIC_CONNECTION_TIMED_OUT) { 723 if (error == QUIC_NETWORK_IDLE_TIMEOUT) {
724 UMA_HISTOGRAM_COUNTS( 724 UMA_HISTOGRAM_COUNTS(
725 "Net.QuicSession.ConnectionClose.NumOpenStreams.TimedOut", 725 "Net.QuicSession.ConnectionClose.NumOpenStreams.TimedOut",
726 GetNumOpenOutgoingStreams()); 726 GetNumOpenOutgoingStreams());
727 if (IsCryptoHandshakeConfirmed()) { 727 if (IsCryptoHandshakeConfirmed()) {
728 if (GetNumOpenOutgoingStreams() > 0) { 728 if (GetNumOpenOutgoingStreams() > 0) {
729 disabled_reason_ = QUIC_DISABLED_TIMEOUT_WITH_OPEN_STREAMS; 729 disabled_reason_ = QUIC_DISABLED_TIMEOUT_WITH_OPEN_STREAMS;
730 UMA_HISTOGRAM_BOOLEAN( 730 UMA_HISTOGRAM_BOOLEAN(
731 "Net.QuicSession.TimedOutWithOpenStreams.HasUnackedPackets", 731 "Net.QuicSession.TimedOutWithOpenStreams.HasUnackedPackets",
732 connection()->sent_packet_manager().HasUnackedPackets()); 732 connection()->sent_packet_manager().HasUnackedPackets());
733 UMA_HISTOGRAM_COUNTS( 733 UMA_HISTOGRAM_COUNTS(
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 QuicChromiumPacketReader* reader = packet_readers_.back().release(); 1041 QuicChromiumPacketReader* reader = packet_readers_.back().release();
1042 packet_readers_.pop_back(); 1042 packet_readers_.pop_back();
1043 return reader; 1043 return reader;
1044 } 1044 }
1045 1045
1046 bool QuicChromiumClientSession::IsAuthorized(const std::string& hostname) { 1046 bool QuicChromiumClientSession::IsAuthorized(const std::string& hostname) {
1047 return CanPool(hostname, server_id_.privacy_mode()); 1047 return CanPool(hostname, server_id_.privacy_mode());
1048 } 1048 }
1049 1049
1050 } // namespace net 1050 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/general_loss_algorithm_test.cc ('k') | net/quic/quic_client_session_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698