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, | 23 void PacingSender::SetFromConfig(const QuicConfig& config, |
24 Perspective perspective, | 24 Perspective perspective, |
25 bool using_pacing) { | 25 bool using_pacing) { |
26 DCHECK(using_pacing); | 26 DCHECK(using_pacing); |
27 sender_->SetFromConfig(config, perspective, using_pacing); | 27 sender_->SetFromConfig(config, perspective, using_pacing); |
28 } | 28 } |
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 bool max_bandwidth_resumption) { |
| 33 return sender_->ResumeConnectionState(cached_network_params, |
| 34 max_bandwidth_resumption); |
33 } | 35 } |
34 | 36 |
35 void PacingSender::SetNumEmulatedConnections(int num_connections) { | 37 void PacingSender::SetNumEmulatedConnections(int num_connections) { |
36 sender_->SetNumEmulatedConnections(num_connections); | 38 sender_->SetNumEmulatedConnections(num_connections); |
37 } | 39 } |
38 | 40 |
39 void PacingSender::SetMaxCongestionWindow(QuicByteCount max_congestion_window) { | 41 void PacingSender::SetMaxCongestionWindow(QuicByteCount max_congestion_window) { |
40 sender_->SetMaxCongestionWindow(max_congestion_window); | 42 sender_->SetMaxCongestionWindow(max_congestion_window); |
41 } | 43 } |
42 | 44 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 172 |
171 QuicByteCount PacingSender::GetSlowStartThreshold() const { | 173 QuicByteCount PacingSender::GetSlowStartThreshold() const { |
172 return sender_->GetSlowStartThreshold(); | 174 return sender_->GetSlowStartThreshold(); |
173 } | 175 } |
174 | 176 |
175 CongestionControlType PacingSender::GetCongestionControlType() const { | 177 CongestionControlType PacingSender::GetCongestionControlType() const { |
176 return sender_->GetCongestionControlType(); | 178 return sender_->GetCongestionControlType(); |
177 } | 179 } |
178 | 180 |
179 } // namespace net | 181 } // namespace net |
OLD | NEW |