| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Start implementation of SendAlgorithmInterface. | 35 // Start implementation of SendAlgorithmInterface. |
| 36 virtual void OnIncomingQuicCongestionFeedbackFrame( | 36 virtual void OnIncomingQuicCongestionFeedbackFrame( |
| 37 const QuicCongestionFeedbackFrame& feedback, | 37 const QuicCongestionFeedbackFrame& feedback, |
| 38 QuicTime feedback_receive_time, | 38 QuicTime feedback_receive_time, |
| 39 const SentPacketsMap& sent_packets) OVERRIDE; | 39 const SentPacketsMap& sent_packets) OVERRIDE; |
| 40 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, | 40 virtual void OnIncomingAck(QuicPacketSequenceNumber acked_sequence_number, |
| 41 QuicByteCount acked_bytes, | 41 QuicByteCount acked_bytes, |
| 42 QuicTime::Delta rtt) OVERRIDE; | 42 QuicTime::Delta rtt) OVERRIDE; |
| 43 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; | 43 virtual void OnIncomingLoss(QuicTime ack_receive_time) OVERRIDE; |
| 44 virtual void SentPacket(QuicTime sent_time, | 44 virtual bool SentPacket( |
| 45 QuicPacketSequenceNumber sequence_number, | 45 QuicTime sent_time, |
| 46 QuicByteCount bytes, | 46 QuicPacketSequenceNumber sequence_number, |
| 47 Retransmission is_retransmission) OVERRIDE; | 47 QuicByteCount bytes, |
| 48 Retransmission is_retransmission, |
| 49 HasRetransmittableData is_retransmittable) OVERRIDE; |
| 48 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, | 50 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, |
| 49 QuicByteCount abandoned_bytes) OVERRIDE; | 51 QuicByteCount abandoned_bytes) OVERRIDE; |
| 50 virtual QuicTime::Delta TimeUntilSend( | 52 virtual QuicTime::Delta TimeUntilSend( |
| 51 QuicTime now, | 53 QuicTime now, |
| 52 Retransmission is_retransmission, | 54 Retransmission is_retransmission, |
| 53 HasRetransmittableData has_retransmittable_data, | 55 HasRetransmittableData has_retransmittable_data, |
| 54 IsHandshake handshake) OVERRIDE; | 56 IsHandshake handshake) OVERRIDE; |
| 55 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; | 57 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; |
| 56 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; | 58 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; |
| 57 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE; | 59 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Approximation of standard deviation, the error is roughly 1.25 times | 111 // Approximation of standard deviation, the error is roughly 1.25 times |
| 110 // larger than the standard deviation, for a normally distributed signal. | 112 // larger than the standard deviation, for a normally distributed signal. |
| 111 QuicTime::Delta mean_deviation_; | 113 QuicTime::Delta mean_deviation_; |
| 112 | 114 |
| 113 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 115 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace net | 118 } // namespace net |
| 117 | 119 |
| 118 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 120 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
| OLD | NEW |