| 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_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 QuicConnectionStats* stats); | 39 QuicConnectionStats* stats); |
| 40 ~TcpCubicSender() override; | 40 ~TcpCubicSender() override; |
| 41 | 41 |
| 42 // Start implementation of SendAlgorithmInterface. | 42 // Start implementation of SendAlgorithmInterface. |
| 43 void SetFromConfig(const QuicConfig& config, | 43 void SetFromConfig(const QuicConfig& config, |
| 44 Perspective perspective, | 44 Perspective perspective, |
| 45 bool using_pacing) override; | 45 bool using_pacing) override; |
| 46 bool ResumeConnectionState( | 46 bool ResumeConnectionState( |
| 47 const CachedNetworkParameters& cached_network_params) override; | 47 const CachedNetworkParameters& cached_network_params) override; |
| 48 void SetNumEmulatedConnections(int num_connections) override; | 48 void SetNumEmulatedConnections(int num_connections) override; |
| 49 void SetMaxCongestionWindow(QuicByteCount max_congestion_window) override; |
| 49 void OnCongestionEvent(bool rtt_updated, | 50 void OnCongestionEvent(bool rtt_updated, |
| 50 QuicByteCount bytes_in_flight, | 51 QuicByteCount bytes_in_flight, |
| 51 const CongestionVector& acked_packets, | 52 const CongestionVector& acked_packets, |
| 52 const CongestionVector& lost_packets) override; | 53 const CongestionVector& lost_packets) override; |
| 53 bool OnPacketSent(QuicTime sent_time, | 54 bool OnPacketSent(QuicTime sent_time, |
| 54 QuicByteCount bytes_in_flight, | 55 QuicByteCount bytes_in_flight, |
| 55 QuicPacketSequenceNumber sequence_number, | 56 QuicPacketSequenceNumber sequence_number, |
| 56 QuicByteCount bytes, | 57 QuicByteCount bytes, |
| 57 HasRetransmittableData is_retransmittable) override; | 58 HasRetransmittableData is_retransmittable) override; |
| 58 void OnRetransmissionTimeout(bool packets_retransmitted) override; | 59 void OnRetransmissionTimeout(bool packets_retransmitted) override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 QuicPacketCount max_tcp_congestion_window_; | 130 QuicPacketCount max_tcp_congestion_window_; |
| 130 | 131 |
| 131 const QuicClock* clock_; | 132 const QuicClock* clock_; |
| 132 | 133 |
| 133 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 134 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace net | 137 } // namespace net |
| 137 | 138 |
| 138 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 139 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| OLD | NEW |