| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ | 5 #ifndef NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ |
| 6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ | 6 #define NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, | 51 virtual void AbandoningPacket(QuicPacketSequenceNumber sequence_number, |
| 52 QuicByteCount abandoned_bytes) OVERRIDE; | 52 QuicByteCount abandoned_bytes) OVERRIDE; |
| 53 | 53 |
| 54 virtual QuicTime::Delta TimeUntilSend( | 54 virtual QuicTime::Delta TimeUntilSend( |
| 55 QuicTime now, | 55 QuicTime now, |
| 56 Retransmission is_retransmission, | 56 Retransmission is_retransmission, |
| 57 HasRetransmittableData has_retransmittable_data) OVERRIDE; | 57 HasRetransmittableData has_retransmittable_data) OVERRIDE; |
| 58 | 58 |
| 59 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; | 59 virtual QuicBandwidth BandwidthEstimate() OVERRIDE; |
| 60 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; | 60 virtual QuicTime::Delta SmoothedRtt() OVERRIDE; |
| 61 virtual QuicTime::Delta RetransmissionDelay() OVERRIDE; |
| 61 // End implementation of SendAlgorithmInterface. | 62 // End implementation of SendAlgorithmInterface. |
| 62 | 63 |
| 63 private: | 64 private: |
| 64 void EstimateDelayBandwidth(QuicTime feedback_receive_time, | 65 void EstimateDelayBandwidth(QuicTime feedback_receive_time, |
| 65 QuicBandwidth sent_bandwidth); | 66 QuicBandwidth sent_bandwidth); |
| 66 void EstimateNewBandwidth(QuicTime feedback_receive_time, | 67 void EstimateNewBandwidth(QuicTime feedback_receive_time, |
| 67 QuicBandwidth sent_bandwidth); | 68 QuicBandwidth sent_bandwidth); |
| 68 void EstimateNewBandwidthAfterDraining( | 69 void EstimateNewBandwidthAfterDraining( |
| 69 QuicTime feedback_receive_time, | 70 QuicTime feedback_receive_time, |
| 70 QuicTime::Delta estimated_congestion_delay); | 71 QuicTime::Delta estimated_congestion_delay); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 BandwidthUsage bandwidth_usage_state_; | 90 BandwidthUsage bandwidth_usage_state_; |
| 90 QuicTime back_down_time_; // Time when we decided to back down. | 91 QuicTime back_down_time_; // Time when we decided to back down. |
| 91 QuicBandwidth back_down_bandwidth_; // Bandwidth before backing down. | 92 QuicBandwidth back_down_bandwidth_; // Bandwidth before backing down. |
| 92 QuicTime::Delta back_down_congestion_delay_; // Delay when backing down. | 93 QuicTime::Delta back_down_congestion_delay_; // Delay when backing down. |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(InterArrivalSender); | 95 DISALLOW_COPY_AND_ASSIGN(InterArrivalSender); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace net | 98 } // namespace net |
| 98 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ | 99 #endif // NET_QUIC_CONGESTION_CONTROL_INTER_ARRIVAL_SENDER_H_ |
| OLD | NEW |