| Index: net/quic/congestion_control/fix_rate_sender.cc
|
| diff --git a/net/quic/congestion_control/fix_rate_sender.cc b/net/quic/congestion_control/fix_rate_sender.cc
|
| index e9c219bd5dbab0ced8d93a923665e9fa544ed763..9e198e99301b0d7c01274f860aca50aaeb7e41f9 100644
|
| --- a/net/quic/congestion_control/fix_rate_sender.cc
|
| +++ b/net/quic/congestion_control/fix_rate_sender.cc
|
| @@ -58,16 +58,8 @@ void FixRateSender::OnIncomingQuicCongestionFeedbackFrame(
|
|
|
| void FixRateSender::OnPacketAcked(
|
| QuicPacketSequenceNumber /*acked_sequence_number*/,
|
| - QuicByteCount bytes_acked,
|
| - QuicTime::Delta rtt) {
|
| - // RTT can't be negative.
|
| - DCHECK_LE(0, rtt.ToMicroseconds());
|
| -
|
| + QuicByteCount bytes_acked) {
|
| data_in_flight_ -= bytes_acked;
|
| - if (rtt.IsInfinite()) {
|
| - return;
|
| - }
|
| - latest_rtt_ = rtt;
|
| }
|
|
|
| void FixRateSender::OnPacketLost(QuicPacketSequenceNumber /*sequence_number*/,
|
| @@ -127,6 +119,15 @@ QuicBandwidth FixRateSender::BandwidthEstimate() const {
|
| return bitrate_;
|
| }
|
|
|
| +void FixRateSender::UpdateRtt(QuicTime::Delta rtt_sample) {
|
| + // RTT can't be negative.
|
| + DCHECK_LE(0, rtt_sample.ToMicroseconds());
|
| + if (rtt_sample.IsInfinite()) {
|
| + return;
|
| + }
|
| + latest_rtt_ = rtt_sample;
|
| +}
|
| +
|
| QuicTime::Delta FixRateSender::SmoothedRtt() const {
|
| // TODO(satyamshekhar): Calculate and return smoothed rtt.
|
| return latest_rtt_;
|
|
|