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 after OnStreamFrame, OnRstStream, OnGoAway, OnWindowUpdateFrame, |
| 136 // OnBlockedFrame, and OnCanWrite to allow post-processing once the work has |
| 137 // been done. |
| 138 virtual void PostProcessAfterData() = 0; |
| 139 |
135 // Called to ask if the visitor wants to schedule write resumption as it both | 140 // 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 | 141 // has pending data to write, and is able to write (e.g. based on flow control |
137 // limits). | 142 // limits). |
138 // Writes may be pending because they were write-blocked, congestion-throttled | 143 // Writes may be pending because they were write-blocked, congestion-throttled |
139 // or yielded to other connections. | 144 // or yielded to other connections. |
140 virtual bool WillingAndAbleToWrite() const = 0; | 145 virtual bool WillingAndAbleToWrite() const = 0; |
141 | 146 |
142 // Called to ask if any handshake messages are pending in this visitor. | 147 // Called to ask if any handshake messages are pending in this visitor. |
143 virtual bool HasPendingHandshake() const = 0; | 148 virtual bool HasPendingHandshake() const = 0; |
144 | 149 |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 | 1019 |
1015 // If true, multipath is enabled for this connection. | 1020 // If true, multipath is enabled for this connection. |
1016 bool multipath_enabled_; | 1021 bool multipath_enabled_; |
1017 | 1022 |
1018 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1023 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
1019 }; | 1024 }; |
1020 | 1025 |
1021 } // namespace net | 1026 } // namespace net |
1022 | 1027 |
1023 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1028 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |