OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ |
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 TcpCubicBytesSender(const QuicClock* clock, | 31 TcpCubicBytesSender(const QuicClock* clock, |
32 const RttStats* rtt_stats, | 32 const RttStats* rtt_stats, |
33 bool reno, | 33 bool reno, |
34 QuicPacketCount initial_tcp_congestion_window, | 34 QuicPacketCount initial_tcp_congestion_window, |
35 QuicPacketCount max_congestion_window, | 35 QuicPacketCount max_congestion_window, |
36 QuicConnectionStats* stats); | 36 QuicConnectionStats* stats); |
37 ~TcpCubicBytesSender() override; | 37 ~TcpCubicBytesSender() override; |
38 | 38 |
39 // Start implementation of SendAlgorithmInterface. | 39 // Start implementation of SendAlgorithmInterface. |
40 void SetFromConfig(const QuicConfig& config, | 40 void SetFromConfig(const QuicConfig& config, |
41 Perspective perspective, | 41 Perspective perspective) override; |
42 bool using_pacing) override; | |
43 bool ResumeConnectionState( | 42 bool ResumeConnectionState( |
44 const CachedNetworkParameters& cached_network_params, | 43 const CachedNetworkParameters& cached_network_params, |
45 bool max_bandwidth_resumption) override; | 44 bool max_bandwidth_resumption) override; |
46 void SetNumEmulatedConnections(int num_connections) override; | 45 void SetNumEmulatedConnections(int num_connections) override; |
47 void SetMaxCongestionWindow(QuicByteCount max_congestion_window) override; | 46 void SetMaxCongestionWindow(QuicByteCount max_congestion_window) override; |
48 void OnCongestionEvent(bool rtt_updated, | 47 void OnCongestionEvent(bool rtt_updated, |
49 QuicByteCount bytes_in_flight, | 48 QuicByteCount bytes_in_flight, |
50 const CongestionVector& acked_packets, | 49 const CongestionVector& acked_packets, |
51 const CongestionVector& lost_packets) override; | 50 const CongestionVector& lost_packets) override; |
52 bool OnPacketSent(QuicTime sent_time, | 51 bool OnPacketSent(QuicTime sent_time, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool last_cutback_exited_slowstart_; | 128 bool last_cutback_exited_slowstart_; |
130 | 129 |
131 const QuicClock* clock_; | 130 const QuicClock* clock_; |
132 | 131 |
133 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); | 132 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); |
134 }; | 133 }; |
135 | 134 |
136 } // namespace net | 135 } // namespace net |
137 | 136 |
138 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ | 137 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ |
OLD | NEW |