| 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 behaviour of | 5 // TCP cubic send side congestion algorithm, emulates the behaviour 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 class NET_EXPORT_PRIVATE TcpCubicSender : public SendAlgorithmInterface { | 27 class NET_EXPORT_PRIVATE TcpCubicSender : public SendAlgorithmInterface { |
| 28 public: | 28 public: |
| 29 // Reno option provided for testing. | 29 // Reno option provided for testing. |
| 30 TcpCubicSender(const QuicClock* clock, bool reno); | 30 TcpCubicSender(const QuicClock* clock, bool reno); |
| 31 | 31 |
| 32 // Start implementation of SendAlgorithmInterface. | 32 // Start implementation of SendAlgorithmInterface. |
| 33 virtual void OnIncomingQuicCongestionFeedbackFrame( | 33 virtual void OnIncomingQuicCongestionFeedbackFrame( |
| 34 const QuicCongestionFeedbackFrame& feedback, | 34 const QuicCongestionFeedbackFrame& feedback, |
| 35 QuicTime feedback_receive_time, | 35 QuicTime feedback_receive_time, |
| 36 QuicBandwidth sent_bandwidth, | |
| 37 const SentPacketsMap& sent_packets) OVERRIDE; | 36 const SentPacketsMap& sent_packets) OVERRIDE; |
| 38 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, | 37 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, |
| 39 QuicByteCount acked_bytes, | 38 QuicByteCount acked_bytes, |
| 40 QuicTime::Delta rtt) OVERRIDE; | 39 QuicTime::Delta rtt) OVERRIDE; |
| 41 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; | 40 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; |
| 42 virtual void SentPacket(QuicTime sent_time, | 41 virtual void SentPacket(QuicTime sent_time, |
| 43 QuicPacketSequenceNumber sequence_number, | 42 QuicPacketSequenceNumber sequence_number, |
| 44 QuicByteCount bytes, | 43 QuicByteCount bytes, |
| 45 Retransmission is_retransmission) OVERRIDE; | 44 Retransmission is_retransmission) OVERRIDE; |
| 46 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, | 45 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 93 |
| 95 // Min RTT during this session. | 94 // Min RTT during this session. |
| 96 QuicTime::Delta delay_min_; | 95 QuicTime::Delta delay_min_; |
| 97 | 96 |
| 98 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 97 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace net | 100 } // namespace net |
| 102 | 101 |
| 103 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 102 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| OLD | NEW |