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 bool PacingSender::ResumeConnectionState( | 30 bool PacingSender::ResumeConnectionState( |
31 const CachedNetworkParameters& cached_network_params) { | 31 const CachedNetworkParameters& cached_network_params) { |
32 return sender_->ResumeConnectionState(cached_network_params); | 32 return sender_->ResumeConnectionState(cached_network_params); |
33 } | 33 } |
34 | 34 |
35 void PacingSender::SetNumEmulatedConnections(int num_connections) { | 35 void PacingSender::SetNumEmulatedConnections(int num_connections) { |
36 sender_->SetNumEmulatedConnections(num_connections); | 36 sender_->SetNumEmulatedConnections(num_connections); |
37 } | 37 } |
38 | 38 |
| 39 void PacingSender::SetMaxCongestionWindow(QuicByteCount max_congestion_window) { |
| 40 sender_->SetMaxCongestionWindow(max_congestion_window); |
| 41 } |
| 42 |
39 void PacingSender::OnCongestionEvent(bool rtt_updated, | 43 void PacingSender::OnCongestionEvent(bool rtt_updated, |
40 QuicByteCount bytes_in_flight, | 44 QuicByteCount bytes_in_flight, |
41 const CongestionVector& acked_packets, | 45 const CongestionVector& acked_packets, |
42 const CongestionVector& lost_packets) { | 46 const CongestionVector& lost_packets) { |
43 sender_->OnCongestionEvent( | 47 sender_->OnCongestionEvent( |
44 rtt_updated, bytes_in_flight, acked_packets, lost_packets); | 48 rtt_updated, bytes_in_flight, acked_packets, lost_packets); |
45 } | 49 } |
46 | 50 |
47 bool PacingSender::OnPacketSent( | 51 bool PacingSender::OnPacketSent( |
48 QuicTime sent_time, | 52 QuicTime sent_time, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 170 |
167 QuicByteCount PacingSender::GetSlowStartThreshold() const { | 171 QuicByteCount PacingSender::GetSlowStartThreshold() const { |
168 return sender_->GetSlowStartThreshold(); | 172 return sender_->GetSlowStartThreshold(); |
169 } | 173 } |
170 | 174 |
171 CongestionControlType PacingSender::GetCongestionControlType() const { | 175 CongestionControlType PacingSender::GetCongestionControlType() const { |
172 return sender_->GetCongestionControlType(); | 176 return sender_->GetCongestionControlType(); |
173 } | 177 } |
174 | 178 |
175 } // namespace net | 179 } // namespace net |
OLD | NEW |