| 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 #include "net/quic/congestion_control/pacing_sender.h" | 5 #include "net/quic/congestion_control/pacing_sender.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 PacingSender::PacingSender(SendAlgorithmInterface* sender, | 9 PacingSender::PacingSender(SendAlgorithmInterface* sender, |
| 10 QuicTime::Delta alarm_granularity, | 10 QuicTime::Delta alarm_granularity, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 void PacingSender::OnIncomingQuicCongestionFeedbackFrame( | 30 void PacingSender::OnIncomingQuicCongestionFeedbackFrame( |
| 31 const QuicCongestionFeedbackFrame& feedback, | 31 const QuicCongestionFeedbackFrame& feedback, |
| 32 QuicTime feedback_receive_time) { | 32 QuicTime feedback_receive_time) { |
| 33 sender_->OnIncomingQuicCongestionFeedbackFrame( | 33 sender_->OnIncomingQuicCongestionFeedbackFrame( |
| 34 feedback, feedback_receive_time); | 34 feedback, feedback_receive_time); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void PacingSender::OnCongestionEvent(bool rtt_updated, | 37 void PacingSender::OnCongestionEvent(bool rtt_updated, |
| 38 QuicByteCount bytes_in_flight, | 38 QuicByteCount bytes_in_flight, |
| 39 const CongestionMap& acked_packets, | 39 const CongestionVector& acked_packets, |
| 40 const CongestionMap& lost_packets) { | 40 const CongestionVector& lost_packets) { |
| 41 if (rtt_updated) { | 41 if (rtt_updated) { |
| 42 has_valid_rtt_ = true; | 42 has_valid_rtt_ = true; |
| 43 } | 43 } |
| 44 sender_->OnCongestionEvent( | 44 sender_->OnCongestionEvent( |
| 45 rtt_updated, bytes_in_flight, acked_packets, lost_packets); | 45 rtt_updated, bytes_in_flight, acked_packets, lost_packets); |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool PacingSender::OnPacketSent( | 48 bool PacingSender::OnPacketSent( |
| 49 QuicTime sent_time, | 49 QuicTime sent_time, |
| 50 QuicByteCount bytes_in_flight, | 50 QuicByteCount bytes_in_flight, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 QuicByteCount PacingSender::GetSlowStartThreshold() const { | 177 QuicByteCount PacingSender::GetSlowStartThreshold() const { |
| 178 return sender_->GetSlowStartThreshold(); | 178 return sender_->GetSlowStartThreshold(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 CongestionControlType PacingSender::GetCongestionControlType() const { | 181 CongestionControlType PacingSender::GetCongestionControlType() const { |
| 182 return sender_->GetCongestionControlType(); | 182 return sender_->GetCongestionControlType(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace net | 185 } // namespace net |
| OLD | NEW |