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

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

Issue 2085633003: 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@master
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
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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 logger_->OnSuccessfulVersionNegotiation(version); 931 logger_->OnSuccessfulVersionNegotiation(version);
932 QuicSpdySession::OnSuccessfulVersionNegotiation(version); 932 QuicSpdySession::OnSuccessfulVersionNegotiation(version);
933 } 933 }
934 934
935 void QuicChromiumClientSession::OnPathDegrading() { 935 void QuicChromiumClientSession::OnPathDegrading() {
936 if (stream_factory_) { 936 if (stream_factory_) {
937 stream_factory_->MaybeMigrateSessionEarly(this); 937 stream_factory_->MaybeMigrateSessionEarly(this);
938 } 938 }
939 } 939 }
940 940
941 bool QuicChromiumClientSession::HasOpenDynamicStreams() const {
942 return QuicSession::HasOpenDynamicStreams() ||
943 GetNumDrainingOutgoingStreams() > 0;
944 }
945
941 void QuicChromiumClientSession::OnProofValid( 946 void QuicChromiumClientSession::OnProofValid(
942 const QuicCryptoClientConfig::CachedState& cached) { 947 const QuicCryptoClientConfig::CachedState& cached) {
943 DCHECK(cached.proof_valid()); 948 DCHECK(cached.proof_valid());
944 949
945 if (!server_info_) { 950 if (!server_info_) {
946 return; 951 return;
947 } 952 }
948 953
949 QuicServerInfo::State* state = server_info_->mutable_state(); 954 QuicServerInfo::State* state = server_info_->mutable_state();
950 955
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 } 1206 }
1202 1207
1203 void QuicChromiumClientSession::DeletePromised( 1208 void QuicChromiumClientSession::DeletePromised(
1204 QuicClientPromisedInfo* promised) { 1209 QuicClientPromisedInfo* promised) {
1205 if (IsOpenStream(promised->id())) 1210 if (IsOpenStream(promised->id()))
1206 streams_pushed_and_claimed_count_++; 1211 streams_pushed_and_claimed_count_++;
1207 QuicClientSessionBase::DeletePromised(promised); 1212 QuicClientSessionBase::DeletePromised(promised);
1208 } 1213 }
1209 1214
1210 } // namespace net 1215 } // namespace net
OLDNEW
« net/quic/quic_chromium_client_session.h ('K') | « 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