| 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 // 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 Loading... |
| 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 | 972 |
| 969 // Whether a GoAway has been received. | 973 // Whether a GoAway has been received. |
| 970 bool goaway_received_; | 974 bool goaway_received_; |
| 971 | 975 |
| 972 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 976 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 973 }; | 977 }; |
| 974 | 978 |
| 975 } // namespace net | 979 } // namespace net |
| 976 | 980 |
| 977 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 981 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |