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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Returns the current delay for the retransmission timer, which may send | 160 // Returns the current delay for the retransmission timer, which may send |
161 // either a tail loss probe or do a full RTO. Returns QuicTime::Zero() if | 161 // either a tail loss probe or do a full RTO. Returns QuicTime::Zero() if |
162 // there are no retransmittable packets. | 162 // there are no retransmittable packets. |
163 const QuicTime GetRetransmissionTime() const override; | 163 const QuicTime GetRetransmissionTime() const override; |
164 | 164 |
165 const RttStats* GetRttStats() const override; | 165 const RttStats* GetRttStats() const override; |
166 | 166 |
167 // Returns the estimated bandwidth calculated by the congestion algorithm. | 167 // Returns the estimated bandwidth calculated by the congestion algorithm. |
168 QuicBandwidth BandwidthEstimate() const override; | 168 QuicBandwidth BandwidthEstimate() const override; |
169 | 169 |
170 const QuicSustainedBandwidthRecorder& SustainedBandwidthRecorder() | 170 const QuicSustainedBandwidthRecorder* SustainedBandwidthRecorder() |
171 const override; | 171 const override; |
172 | 172 |
173 // Returns the size of the current congestion window in number of | 173 // Returns the size of the current congestion window in number of |
174 // kDefaultTCPMSS-sized segments. Note, this is not the *available* window. | 174 // kDefaultTCPMSS-sized segments. Note, this is not the *available* window. |
175 // Some send algorithms may not use a congestion window and will return 0. | 175 // Some send algorithms may not use a congestion window and will return 0. |
176 QuicPacketCount GetCongestionWindowInTcpMss() const override; | 176 QuicPacketCount GetCongestionWindowInTcpMss() const override; |
177 | 177 |
178 // Returns the number of packets of length |max_packet_length| which fit in | 178 // Returns the number of packets of length |max_packet_length| which fit in |
179 // the current congestion window. More packets may end up in flight if the | 179 // the current congestion window. More packets may end up in flight if the |
180 // congestion window has been recently reduced, of if non-full packets are | 180 // congestion window has been recently reduced, of if non-full packets are |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // Records bandwidth from server to client in normal operation, over periods | 403 // Records bandwidth from server to client in normal operation, over periods |
404 // of time with no loss events. | 404 // of time with no loss events. |
405 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; | 405 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; |
406 | 406 |
407 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); | 407 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); |
408 }; | 408 }; |
409 | 409 |
410 } // namespace net | 410 } // namespace net |
411 | 411 |
412 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ | 412 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ |
OLD | NEW |