| 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 logger_->OnSuccessfulVersionNegotiation(version); | 907 logger_->OnSuccessfulVersionNegotiation(version); |
| 908 QuicSpdySession::OnSuccessfulVersionNegotiation(version); | 908 QuicSpdySession::OnSuccessfulVersionNegotiation(version); |
| 909 } | 909 } |
| 910 | 910 |
| 911 void QuicChromiumClientSession::OnPathDegrading() { | 911 void QuicChromiumClientSession::OnPathDegrading() { |
| 912 if (stream_factory_) { | 912 if (stream_factory_) { |
| 913 stream_factory_->MaybeMigrateSessionEarly(this); | 913 stream_factory_->MaybeMigrateSessionEarly(this); |
| 914 } | 914 } |
| 915 } | 915 } |
| 916 | 916 |
| 917 bool QuicChromiumClientSession::HasOpenDynamicStreams() const { |
| 918 return QuicSession::HasOpenDynamicStreams() || |
| 919 GetNumDrainingOutgoingStreams() > 0; |
| 920 } |
| 921 |
| 917 void QuicChromiumClientSession::OnProofValid( | 922 void QuicChromiumClientSession::OnProofValid( |
| 918 const QuicCryptoClientConfig::CachedState& cached) { | 923 const QuicCryptoClientConfig::CachedState& cached) { |
| 919 DCHECK(cached.proof_valid()); | 924 DCHECK(cached.proof_valid()); |
| 920 | 925 |
| 921 if (!server_info_) { | 926 if (!server_info_) { |
| 922 return; | 927 return; |
| 923 } | 928 } |
| 924 | 929 |
| 925 QuicServerInfo::State* state = server_info_->mutable_state(); | 930 QuicServerInfo::State* state = server_info_->mutable_state(); |
| 926 | 931 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 } | 1182 } |
| 1178 | 1183 |
| 1179 void QuicChromiumClientSession::DeletePromised( | 1184 void QuicChromiumClientSession::DeletePromised( |
| 1180 QuicClientPromisedInfo* promised) { | 1185 QuicClientPromisedInfo* promised) { |
| 1181 if (IsOpenStream(promised->id())) | 1186 if (IsOpenStream(promised->id())) |
| 1182 streams_pushed_and_claimed_count_++; | 1187 streams_pushed_and_claimed_count_++; |
| 1183 QuicClientSessionBase::DeletePromised(promised); | 1188 QuicClientSessionBase::DeletePromised(promised); |
| 1184 } | 1189 } |
| 1185 | 1190 |
| 1186 } // namespace net | 1191 } // namespace net |
| OLD | NEW |