| 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 pure virtual class for send side congestion control algorithm. | 5 // The pure virtual class for send side congestion control algorithm. |
| 6 | 6 |
| 7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ |
| 8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 QuicTime now, | 70 QuicTime now, |
| 71 Retransmission is_retransmission, | 71 Retransmission is_retransmission, |
| 72 HasRetransmittableData has_retransmittable_data) = 0; | 72 HasRetransmittableData has_retransmittable_data) = 0; |
| 73 | 73 |
| 74 // What's the current estimated bandwidth in bytes per second. | 74 // What's the current estimated bandwidth in bytes per second. |
| 75 // Returns 0 when it does not have an estimate. | 75 // Returns 0 when it does not have an estimate. |
| 76 virtual QuicBandwidth BandwidthEstimate() = 0; | 76 virtual QuicBandwidth BandwidthEstimate() = 0; |
| 77 | 77 |
| 78 // TODO(satyamshekhar): Monitor MinRtt. | 78 // TODO(satyamshekhar): Monitor MinRtt. |
| 79 virtual QuicTime::Delta SmoothedRtt() = 0; | 79 virtual QuicTime::Delta SmoothedRtt() = 0; |
| 80 |
| 81 // Get the send algorithm specific retransmission delay, called RTO in TCP, |
| 82 // Note 1: the caller is responsible for sanity checking this value. |
| 83 // Note 2: this will return zero if we don't have enough data for an estimate. |
| 84 virtual QuicTime::Delta RetransmissionDelay() = 0; |
| 80 }; | 85 }; |
| 81 | 86 |
| 82 } // namespace net | 87 } // namespace net |
| 83 | 88 |
| 84 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ | 89 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ |
| OLD | NEW |