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

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

Issue 2082223002: [m52] Send QUIC ping packets when there are draining streams, even if there are no open streams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | no next file » | 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 <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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698