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 | 5 // TCP cubic send side congestion algorithm, emulates the behavior of |
6 // TCP cubic. | 6 // TCP cubic. |
7 | 7 |
8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 TcpCubicSender(const QuicClock* clock, | 34 TcpCubicSender(const QuicClock* clock, |
35 const RttStats* rtt_stats, | 35 const RttStats* rtt_stats, |
36 bool reno, | 36 bool reno, |
37 QuicPacketCount initial_tcp_congestion_window, | 37 QuicPacketCount initial_tcp_congestion_window, |
38 QuicConnectionStats* stats); | 38 QuicConnectionStats* stats); |
39 ~TcpCubicSender() override; | 39 ~TcpCubicSender() override; |
40 | 40 |
41 // Start implementation of SendAlgorithmInterface. | 41 // Start implementation of SendAlgorithmInterface. |
42 void SetFromConfig(const QuicConfig& config, | 42 void SetFromConfig(const QuicConfig& config, |
43 bool is_server, | 43 Perspective perspective, |
44 bool using_pacing) override; | 44 bool using_pacing) override; |
45 bool ResumeConnectionState( | 45 bool ResumeConnectionState( |
46 const CachedNetworkParameters& cached_network_params) override; | 46 const CachedNetworkParameters& cached_network_params) override; |
47 void SetNumEmulatedConnections(int num_connections) override; | 47 void SetNumEmulatedConnections(int num_connections) override; |
48 void OnCongestionEvent(bool rtt_updated, | 48 void OnCongestionEvent(bool rtt_updated, |
49 QuicByteCount bytes_in_flight, | 49 QuicByteCount bytes_in_flight, |
50 const CongestionVector& acked_packets, | 50 const CongestionVector& acked_packets, |
51 const CongestionVector& lost_packets) override; | 51 const CongestionVector& lost_packets) override; |
52 bool OnPacketSent(QuicTime sent_time, | 52 bool OnPacketSent(QuicTime sent_time, |
53 QuicByteCount bytes_in_flight, | 53 QuicByteCount bytes_in_flight, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool last_cutback_exited_slowstart_; | 122 bool last_cutback_exited_slowstart_; |
123 | 123 |
124 const QuicClock* clock_; | 124 const QuicClock* clock_; |
125 | 125 |
126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
127 }; | 127 }; |
128 | 128 |
129 } // namespace net | 129 } // namespace net |
130 | 130 |
131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |