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

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

Issue 1305293004: Notfiy NQE of QUIC RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, addressed comments, added more tests Created 5 years, 3 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 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Called when the version negotiation is successful. 236 // Called when the version negotiation is successful.
237 virtual void OnSuccessfulVersionNegotiation(const QuicVersion& version) {} 237 virtual void OnSuccessfulVersionNegotiation(const QuicVersion& version) {}
238 238
239 // Called when a CachedNetworkParameters is sent to the client. 239 // Called when a CachedNetworkParameters is sent to the client.
240 virtual void OnSendConnectionState( 240 virtual void OnSendConnectionState(
241 const CachedNetworkParameters& cached_network_params) {} 241 const CachedNetworkParameters& cached_network_params) {}
242 242
243 // Called when resuming previous connection state. 243 // Called when resuming previous connection state.
244 virtual void OnResumeConnectionState( 244 virtual void OnResumeConnectionState(
245 const CachedNetworkParameters& cached_network_params) {} 245 const CachedNetworkParameters& cached_network_params) {}
246
247 // Called when RTT may have changed, including when an RTT is read from
248 // the config.
249 virtual void OnRttChanged(QuicTime::Delta rtt) const {}
246 }; 250 };
247 251
248 class NET_EXPORT_PRIVATE QuicConnectionHelperInterface { 252 class NET_EXPORT_PRIVATE QuicConnectionHelperInterface {
249 public: 253 public:
250 virtual ~QuicConnectionHelperInterface() {} 254 virtual ~QuicConnectionHelperInterface() {}
251 255
252 // Returns a QuicClock to be used for all time related functions. 256 // Returns a QuicClock to be used for all time related functions.
253 virtual const QuicClock* GetClock() const = 0; 257 virtual const QuicClock* GetClock() const = 0;
254 258
255 // Returns a QuicRandom to be used for all random number related functions. 259 // Returns a QuicRandom to be used for all random number related functions.
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 984
981 // Whether a GoAway has been received. 985 // Whether a GoAway has been received.
982 bool goaway_received_; 986 bool goaway_received_;
983 987
984 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 988 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
985 }; 989 };
986 990
987 } // namespace net 991 } // namespace net
988 992
989 #endif // NET_QUIC_QUIC_CONNECTION_H_ 993 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698