| 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 10 matching lines...) Expand all Loading... |
| 21 PacingSender::~PacingSender() {} | 21 PacingSender::~PacingSender() {} |
| 22 | 22 |
| 23 void PacingSender::SetFromConfig(const QuicConfig& config, bool is_server) { | 23 void PacingSender::SetFromConfig(const QuicConfig& config, bool is_server) { |
| 24 sender_->SetFromConfig(config, is_server); | 24 sender_->SetFromConfig(config, is_server); |
| 25 } | 25 } |
| 26 | 26 |
| 27 void PacingSender::SetNumEmulatedConnections(int num_connections) { | 27 void PacingSender::SetNumEmulatedConnections(int num_connections) { |
| 28 sender_->SetNumEmulatedConnections(num_connections); | 28 sender_->SetNumEmulatedConnections(num_connections); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void PacingSender::OnIncomingQuicCongestionFeedbackFrame( | |
| 32 const QuicCongestionFeedbackFrame& feedback, | |
| 33 QuicTime feedback_receive_time) { | |
| 34 sender_->OnIncomingQuicCongestionFeedbackFrame( | |
| 35 feedback, feedback_receive_time); | |
| 36 } | |
| 37 | |
| 38 void PacingSender::OnCongestionEvent(bool rtt_updated, | 31 void PacingSender::OnCongestionEvent(bool rtt_updated, |
| 39 QuicByteCount bytes_in_flight, | 32 QuicByteCount bytes_in_flight, |
| 40 const CongestionVector& acked_packets, | 33 const CongestionVector& acked_packets, |
| 41 const CongestionVector& lost_packets) { | 34 const CongestionVector& lost_packets) { |
| 42 sender_->OnCongestionEvent( | 35 sender_->OnCongestionEvent( |
| 43 rtt_updated, bytes_in_flight, acked_packets, lost_packets); | 36 rtt_updated, bytes_in_flight, acked_packets, lost_packets); |
| 44 } | 37 } |
| 45 | 38 |
| 46 bool PacingSender::OnPacketSent( | 39 bool PacingSender::OnPacketSent( |
| 47 QuicTime sent_time, | 40 QuicTime sent_time, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 164 |
| 172 QuicByteCount PacingSender::GetSlowStartThreshold() const { | 165 QuicByteCount PacingSender::GetSlowStartThreshold() const { |
| 173 return sender_->GetSlowStartThreshold(); | 166 return sender_->GetSlowStartThreshold(); |
| 174 } | 167 } |
| 175 | 168 |
| 176 CongestionControlType PacingSender::GetCongestionControlType() const { | 169 CongestionControlType PacingSender::GetCongestionControlType() const { |
| 177 return sender_->GetCongestionControlType(); | 170 return sender_->GetCongestionControlType(); |
| 178 } | 171 } |
| 179 | 172 |
| 180 } // namespace net | 173 } // namespace net |
| OLD | NEW |