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

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

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
« no previous file with comments | « no previous file | net/quic/quic_chromium_client_session.cc » ('j') | 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 // A client specific QuicSession subclass. This class owns the underlying 5 // A client specific QuicSession subclass. This class owns the underlying
6 // QuicConnection and QuicConnectionHelper objects. The connection stores 6 // QuicConnection and QuicConnectionHelper objects. The connection stores
7 // a non-owning pointer to the helper so this session needs to ensure that 7 // a non-owning pointer to the helper so this session needs to ensure that
8 // the helper outlives the connection. 8 // the helper outlives the connection.
9 9
10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ 10 #ifndef NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; 180 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override;
181 void OnProofVerifyDetailsAvailable( 181 void OnProofVerifyDetailsAvailable(
182 const ProofVerifyDetails& verify_details) override; 182 const ProofVerifyDetails& verify_details) override;
183 183
184 // QuicConnectionVisitorInterface methods: 184 // QuicConnectionVisitorInterface methods:
185 void OnConnectionClosed(QuicErrorCode error, 185 void OnConnectionClosed(QuicErrorCode error,
186 const std::string& error_details, 186 const std::string& error_details,
187 ConnectionCloseSource source) override; 187 ConnectionCloseSource source) override;
188 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override; 188 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
189 void OnPathDegrading() override; 189 void OnPathDegrading() override;
190 bool HasOpenDynamicStreams() const override;
Ian Swett 2016/06/20 22:51:01 Maybe add a comment or TODO about the slightly non
190 191
191 // QuicChromiumPacketReader::Visitor methods: 192 // QuicChromiumPacketReader::Visitor methods:
192 void OnReadError(int result, const DatagramClientSocket* socket) override; 193 void OnReadError(int result, const DatagramClientSocket* socket) override;
193 bool OnPacket(const QuicReceivedPacket& packet, 194 bool OnPacket(const QuicReceivedPacket& packet,
194 IPEndPoint local_address, 195 IPEndPoint local_address,
195 IPEndPoint peer_address) override; 196 IPEndPoint peer_address) override;
196 197
197 // Gets the SSL connection information. 198 // Gets the SSL connection information.
198 bool GetSSLInfo(SSLInfo* ssl_info) const; 199 bool GetSSLInfo(SSLInfo* ssl_info) const;
199 200
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 int streams_pushed_count_; 355 int streams_pushed_count_;
355 int streams_pushed_and_claimed_count_; 356 int streams_pushed_and_claimed_count_;
356 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_; 357 base::WeakPtrFactory<QuicChromiumClientSession> weak_factory_;
357 358
358 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession); 359 DISALLOW_COPY_AND_ASSIGN(QuicChromiumClientSession);
359 }; 360 };
360 361
361 } // namespace net 362 } // namespace net
362 363
363 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_ 364 #endif // NET_QUIC_QUIC_CHROMIUM_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_chromium_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698