OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 QuicByteCount max_packet_length) const; | 208 QuicByteCount max_packet_length) const; |
209 | 209 |
210 // Returns the size of the slow start congestion window in nume of 1460 byte | 210 // Returns the size of the slow start congestion window in nume of 1460 byte |
211 // TCP segments, aka ssthresh. Some send algorithms do not define a slow | 211 // TCP segments, aka ssthresh. Some send algorithms do not define a slow |
212 // start threshold and will return 0. | 212 // start threshold and will return 0. |
213 QuicPacketCount GetSlowStartThresholdInTcpMss() const; | 213 QuicPacketCount GetSlowStartThresholdInTcpMss() const; |
214 | 214 |
215 // Called by the connection every time it receives a serialized packet. | 215 // Called by the connection every time it receives a serialized packet. |
216 void OnSerializedPacket(const SerializedPacket& serialized_packet); | 216 void OnSerializedPacket(const SerializedPacket& serialized_packet); |
217 | 217 |
| 218 // No longer retransmit data for |stream_id|. |
| 219 void CancelRetransmissionsForStream(QuicStreamId stream_id); |
| 220 |
218 // Enables pacing if it has not already been enabled. | 221 // Enables pacing if it has not already been enabled. |
219 void EnablePacing(); | 222 void EnablePacing(); |
220 | 223 |
221 bool using_pacing() const { return using_pacing_; } | 224 bool using_pacing() const { return using_pacing_; } |
222 | 225 |
223 void set_debug_delegate(DebugDelegate* debug_delegate) { | 226 void set_debug_delegate(DebugDelegate* debug_delegate) { |
224 debug_delegate_ = debug_delegate; | 227 debug_delegate_ = debug_delegate; |
225 } | 228 } |
226 | 229 |
227 QuicPacketSequenceNumber largest_observed() const { | 230 QuicPacketSequenceNumber largest_observed() const { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 // Records bandwidth from server to client in normal operation, over periods | 410 // Records bandwidth from server to client in normal operation, over periods |
408 // of time with no loss events. | 411 // of time with no loss events. |
409 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 412 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
410 | 413 |
411 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 414 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
412 }; | 415 }; |
413 | 416 |
414 } // namespace net | 417 } // namespace net |
415 | 418 |
416 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 419 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |