| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |