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 26 matching lines...) Expand all Loading... |
37 QuicConnectionStats* stats); | 37 QuicConnectionStats* stats); |
38 virtual ~TcpCubicSender(); | 38 virtual ~TcpCubicSender(); |
39 | 39 |
40 // Start implementation of SendAlgorithmInterface. | 40 // Start implementation of SendAlgorithmInterface. |
41 virtual void SetFromConfig(const QuicConfig& config, bool is_server) OVERRIDE; | 41 virtual void SetFromConfig(const QuicConfig& config, bool is_server) OVERRIDE; |
42 virtual void OnIncomingQuicCongestionFeedbackFrame( | 42 virtual void OnIncomingQuicCongestionFeedbackFrame( |
43 const QuicCongestionFeedbackFrame& feedback, | 43 const QuicCongestionFeedbackFrame& feedback, |
44 QuicTime feedback_receive_time) OVERRIDE; | 44 QuicTime feedback_receive_time) OVERRIDE; |
45 virtual void OnCongestionEvent(bool rtt_updated, | 45 virtual void OnCongestionEvent(bool rtt_updated, |
46 QuicByteCount bytes_in_flight, | 46 QuicByteCount bytes_in_flight, |
47 const CongestionMap& acked_packets, | 47 const CongestionVector& acked_packets, |
48 const CongestionMap& lost_packets) OVERRIDE; | 48 const CongestionVector& lost_packets) OVERRIDE; |
49 virtual bool OnPacketSent(QuicTime sent_time, | 49 virtual bool OnPacketSent(QuicTime sent_time, |
50 QuicByteCount bytes_in_flight, | 50 QuicByteCount bytes_in_flight, |
51 QuicPacketSequenceNumber sequence_number, | 51 QuicPacketSequenceNumber sequence_number, |
52 QuicByteCount bytes, | 52 QuicByteCount bytes, |
53 HasRetransmittableData is_retransmittable) OVERRIDE; | 53 HasRetransmittableData is_retransmittable) OVERRIDE; |
54 virtual void OnRetransmissionTimeout(bool packets_retransmitted) OVERRIDE; | 54 virtual void OnRetransmissionTimeout(bool packets_retransmitted) OVERRIDE; |
55 virtual void RevertRetransmissionTimeout() OVERRIDE; | 55 virtual void RevertRetransmissionTimeout() OVERRIDE; |
56 virtual QuicTime::Delta TimeUntilSend( | 56 virtual QuicTime::Delta TimeUntilSend( |
57 QuicTime now, | 57 QuicTime now, |
58 QuicByteCount bytes_in_flight, | 58 QuicByteCount bytes_in_flight, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // Maximum number of outstanding packets for tcp. | 137 // Maximum number of outstanding packets for tcp. |
138 QuicTcpCongestionWindow max_tcp_congestion_window_; | 138 QuicTcpCongestionWindow max_tcp_congestion_window_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 140 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace net | 143 } // namespace net |
144 | 144 |
145 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 145 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |