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 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. | 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. |
6 | 6 |
7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ | 7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ |
8 #define NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ | 8 #define NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ |
9 | 9 |
10 #include <cstdint> | 10 #include <cstdint> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const CongestionVector& acked_packets, | 55 const CongestionVector& acked_packets, |
56 const CongestionVector& lost_packets) override; | 56 const CongestionVector& lost_packets) override; |
57 bool OnPacketSent(QuicTime sent_time, | 57 bool OnPacketSent(QuicTime sent_time, |
58 QuicByteCount bytes_in_flight, | 58 QuicByteCount bytes_in_flight, |
59 QuicPacketNumber packet_number, | 59 QuicPacketNumber packet_number, |
60 QuicByteCount bytes, | 60 QuicByteCount bytes, |
61 HasRetransmittableData is_retransmittable) override; | 61 HasRetransmittableData is_retransmittable) override; |
62 void OnRetransmissionTimeout(bool packets_retransmitted) override; | 62 void OnRetransmissionTimeout(bool packets_retransmitted) override; |
63 void OnConnectionMigration() override; | 63 void OnConnectionMigration() override; |
64 QuicTime::Delta TimeUntilSend(QuicTime now, | 64 QuicTime::Delta TimeUntilSend(QuicTime now, |
65 QuicByteCount bytes_in_flight) const override; | 65 QuicByteCount bytes_in_flight) override; |
66 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const override; | 66 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const override; |
67 QuicBandwidth BandwidthEstimate() const override; | 67 QuicBandwidth BandwidthEstimate() const override; |
68 bool InSlowStart() const override; | 68 bool InSlowStart() const override; |
69 bool InRecovery() const override; | 69 bool InRecovery() const override; |
70 std::string GetDebugState() const override; | 70 std::string GetDebugState() const override; |
71 void OnApplicationLimited(QuicByteCount bytes_in_flight) override; | 71 void OnApplicationLimited(QuicByteCount bytes_in_flight) override; |
72 | 72 |
73 protected: | 73 protected: |
74 // Called when resuming a previous bandwidth. | 74 // Called when resuming a previous bandwidth. |
75 virtual void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth, | 75 virtual void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // When true, use unity pacing instead of PRR. | 154 // When true, use unity pacing instead of PRR. |
155 bool no_prr_; | 155 bool no_prr_; |
156 | 156 |
157 private: | 157 private: |
158 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase); | 158 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase); |
159 }; | 159 }; |
160 | 160 |
161 } // namespace net | 161 } // namespace net |
162 | 162 |
163 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ | 163 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ |
OLD | NEW |