| 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 "Net.QuicSession.ConnectionClose.NumOpenStreams.TimedOut", | 832 "Net.QuicSession.ConnectionClose.NumOpenStreams.TimedOut", |
| 833 GetNumOpenOutgoingStreams()); | 833 GetNumOpenOutgoingStreams()); |
| 834 if (IsCryptoHandshakeConfirmed()) { | 834 if (IsCryptoHandshakeConfirmed()) { |
| 835 if (GetNumOpenOutgoingStreams() > 0) { | 835 if (GetNumOpenOutgoingStreams() > 0) { |
| 836 disabled_reason_ = QUIC_DISABLED_TIMEOUT_WITH_OPEN_STREAMS; | 836 disabled_reason_ = QUIC_DISABLED_TIMEOUT_WITH_OPEN_STREAMS; |
| 837 UMA_HISTOGRAM_BOOLEAN( | 837 UMA_HISTOGRAM_BOOLEAN( |
| 838 "Net.QuicSession.TimedOutWithOpenStreams.HasUnackedPackets", | 838 "Net.QuicSession.TimedOutWithOpenStreams.HasUnackedPackets", |
| 839 connection()->sent_packet_manager().HasUnackedPackets()); | 839 connection()->sent_packet_manager().HasUnackedPackets()); |
| 840 UMA_HISTOGRAM_COUNTS( | 840 UMA_HISTOGRAM_COUNTS( |
| 841 "Net.QuicSession.TimedOutWithOpenStreams.ConsecutiveRTOCount", | 841 "Net.QuicSession.TimedOutWithOpenStreams.ConsecutiveRTOCount", |
| 842 connection()->sent_packet_manager().consecutive_rto_count()); | 842 connection()->sent_packet_manager().GetConsecutiveRtoCount()); |
| 843 UMA_HISTOGRAM_COUNTS( | 843 UMA_HISTOGRAM_COUNTS( |
| 844 "Net.QuicSession.TimedOutWithOpenStreams.ConsecutiveTLPCount", | 844 "Net.QuicSession.TimedOutWithOpenStreams.ConsecutiveTLPCount", |
| 845 connection()->sent_packet_manager().consecutive_tlp_count()); | 845 connection()->sent_packet_manager().GetConsecutiveTlpCount()); |
| 846 } | 846 } |
| 847 if (connection()->sent_packet_manager().HasUnackedPackets()) { | 847 if (connection()->sent_packet_manager().HasUnackedPackets()) { |
| 848 UMA_HISTOGRAM_TIMES( | 848 UMA_HISTOGRAM_TIMES( |
| 849 "Net.QuicSession.LocallyTimedOutWithOpenStreams." | 849 "Net.QuicSession.LocallyTimedOutWithOpenStreams." |
| 850 "TimeSinceLastReceived.UnackedPackets", | 850 "TimeSinceLastReceived.UnackedPackets", |
| 851 NetworkActivityMonitor::GetInstance()->GetTimeSinceLastReceived()); | 851 NetworkActivityMonitor::GetInstance()->GetTimeSinceLastReceived()); |
| 852 } else { | 852 } else { |
| 853 UMA_HISTOGRAM_TIMES( | 853 UMA_HISTOGRAM_TIMES( |
| 854 "Net.QuicSession.LocallyTimedOutWithOpenStreams." | 854 "Net.QuicSession.LocallyTimedOutWithOpenStreams." |
| 855 "TimeSinceLastReceived.NoUnackedPackets", | 855 "TimeSinceLastReceived.NoUnackedPackets", |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 void QuicChromiumClientSession::DeletePromised( | 1179 void QuicChromiumClientSession::DeletePromised( |
| 1180 QuicClientPromisedInfo* promised) { | 1180 QuicClientPromisedInfo* promised) { |
| 1181 if (IsOpenStream(promised->id())) | 1181 if (IsOpenStream(promised->id())) |
| 1182 streams_pushed_and_claimed_count_++; | 1182 streams_pushed_and_claimed_count_++; |
| 1183 QuicClientSessionBase::DeletePromised(promised); | 1183 QuicClientSessionBase::DeletePromised(promised); |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 } // namespace net | 1186 } // namespace net |
| OLD | NEW |