| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ | 5 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ |
| 6 #define NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ | 6 #define NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 virtual ~TCPLossAlgorithm() {} | 24 virtual ~TCPLossAlgorithm() {} |
| 25 | 25 |
| 26 // Uses nack counts to decide when packets are lost. | 26 // Uses nack counts to decide when packets are lost. |
| 27 virtual SequenceNumberSet DetectLostPackets( | 27 virtual SequenceNumberSet DetectLostPackets( |
| 28 const QuicUnackedPacketMap& unacked_packets, | 28 const QuicUnackedPacketMap& unacked_packets, |
| 29 const QuicTime& time, | 29 const QuicTime& time, |
| 30 QuicPacketSequenceNumber largest_observed, | 30 QuicPacketSequenceNumber largest_observed, |
| 31 QuicTime::Delta srtt, | 31 QuicTime::Delta srtt, |
| 32 QuicTime::Delta latest_rtt) OVERRIDE; | 32 QuicTime::Delta latest_rtt) OVERRIDE; |
| 33 | 33 |
| 34 // Return QuicTime::Zero. | 34 // Returns a non-zero value when the early retransmit timer is active. |
| 35 virtual QuicTime GetLossTimeout() const OVERRIDE; | 35 virtual QuicTime GetLossTimeout() const OVERRIDE; |
| 36 |
| 37 private: |
| 38 QuicTime loss_detection_timeout_; |
| 36 }; | 39 }; |
| 37 | 40 |
| 38 } // namespace net | 41 } // namespace net |
| 39 | 42 |
| 40 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ | 43 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_LOSS_ALGORITHM_H_ |
| OLD | NEW |