Chromium Code Reviews| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 | 125 |
| 126 // Called when a blocked socket becomes writable. | 126 // Called when a blocked socket becomes writable. |
| 127 virtual void OnCanWrite() = 0; | 127 virtual void OnCanWrite() = 0; |
| 128 | 128 |
| 129 // Called when the connection experiences a change in congestion window. | 129 // Called when the connection experiences a change in congestion window. |
| 130 virtual void OnCongestionWindowChange(QuicTime now) = 0; | 130 virtual void OnCongestionWindowChange(QuicTime now) = 0; |
| 131 | 131 |
| 132 // Called when the connection receives a packet from a migrated client. | 132 // Called when the connection receives a packet from a migrated client. |
| 133 virtual void OnConnectionMigration() = 0; | 133 virtual void OnConnectionMigration() = 0; |
| 134 | 134 |
| 135 // Called when the the peer seems unreachable over the current network. | |
| 136 virtual void MaybeMigrateConnection() = 0; | |
|
Ryan Hamilton
2016/02/02 04:19:59
I think OnPeerUnreachable() (or some such) would b
Ryan Hamilton
2016/02/02 04:19:59
Looks like this is basically shared code and shoul
Jana
2016/02/02 06:53:53
Addressing in shared code.
Jana
2016/02/02 06:53:53
Yes, I wanted to have this CL out for context.
| |
| 137 | |
| 135 // Called to ask if the visitor wants to schedule write resumption as it both | 138 // Called to ask if the visitor wants to schedule write resumption as it both |
| 136 // has pending data to write, and is able to write (e.g. based on flow control | 139 // has pending data to write, and is able to write (e.g. based on flow control |
| 137 // limits). | 140 // limits). |
| 138 // Writes may be pending because they were write-blocked, congestion-throttled | 141 // Writes may be pending because they were write-blocked, congestion-throttled |
| 139 // or yielded to other connections. | 142 // or yielded to other connections. |
| 140 virtual bool WillingAndAbleToWrite() const = 0; | 143 virtual bool WillingAndAbleToWrite() const = 0; |
| 141 | 144 |
| 142 // Called to ask if any handshake messages are pending in this visitor. | 145 // Called to ask if any handshake messages are pending in this visitor. |
| 143 virtual bool HasPendingHandshake() const = 0; | 146 virtual bool HasPendingHandshake() const = 0; |
| 144 | 147 |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1014 | 1017 |
| 1015 // If true, multipath is enabled for this connection. | 1018 // If true, multipath is enabled for this connection. |
| 1016 bool multipath_enabled_; | 1019 bool multipath_enabled_; |
| 1017 | 1020 |
| 1018 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1021 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1019 }; | 1022 }; |
| 1020 | 1023 |
| 1021 } // namespace net | 1024 } // namespace net |
| 1022 | 1025 |
| 1023 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1026 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |