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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 QuicByteCount max_packet_length) const override; | 173 QuicByteCount max_packet_length) const override; |
174 | 174 |
175 // Returns the size of the current congestion window size in bytes. | 175 // Returns the size of the current congestion window size in bytes. |
176 QuicByteCount GetCongestionWindowInBytes() const override; | 176 QuicByteCount GetCongestionWindowInBytes() const override; |
177 | 177 |
178 // Returns the size of the slow start congestion window in nume of 1460 byte | 178 // Returns the size of the slow start congestion window in nume of 1460 byte |
179 // TCP segments, aka ssthresh. Some send algorithms do not define a slow | 179 // TCP segments, aka ssthresh. Some send algorithms do not define a slow |
180 // start threshold and will return 0. | 180 // start threshold and will return 0. |
181 QuicPacketCount GetSlowStartThresholdInTcpMss() const override; | 181 QuicPacketCount GetSlowStartThresholdInTcpMss() const override; |
182 | 182 |
| 183 // Returns debugging information about the state of the congestion controller. |
| 184 std::string GetDebugState() const override; |
| 185 |
183 // No longer retransmit data for |stream_id|. | 186 // No longer retransmit data for |stream_id|. |
184 void CancelRetransmissionsForStream(QuicStreamId stream_id) override; | 187 void CancelRetransmissionsForStream(QuicStreamId stream_id) override; |
185 | 188 |
186 // Called when peer address changes and the connection migrates. | 189 // Called when peer address changes and the connection migrates. |
187 void OnConnectionMigration(QuicPathId, PeerAddressChangeType type) override; | 190 void OnConnectionMigration(QuicPathId, PeerAddressChangeType type) override; |
188 | 191 |
189 bool IsHandshakeConfirmed() const override; | 192 bool IsHandshakeConfirmed() const override; |
190 | 193 |
191 void SetDebugDelegate(DebugDelegate* debug_delegate) override; | 194 void SetDebugDelegate(DebugDelegate* debug_delegate) override; |
192 | 195 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 // Records bandwidth from server to client in normal operation, over periods | 404 // Records bandwidth from server to client in normal operation, over periods |
402 // of time with no loss events. | 405 // of time with no loss events. |
403 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 406 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
404 | 407 |
405 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 408 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
406 }; | 409 }; |
407 | 410 |
408 } // namespace net | 411 } // namespace net |
409 | 412 |
410 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 413 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |