Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Side by Side Diff: net/quic/congestion_control/pacing_sender.cc

Issue 1048493002: Remove the using_pacing argument from QuicSentPacketManager::SetFromConfig because it's always true. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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,
11 uint32 initial_packet_burst) 11 uint32 initial_packet_burst)
12 : sender_(sender), 12 : sender_(sender),
13 alarm_granularity_(alarm_granularity), 13 alarm_granularity_(alarm_granularity),
14 initial_packet_burst_(initial_packet_burst), 14 initial_packet_burst_(initial_packet_burst),
15 burst_tokens_(initial_packet_burst), 15 burst_tokens_(initial_packet_burst),
16 last_delayed_packet_sent_time_(QuicTime::Zero()), 16 last_delayed_packet_sent_time_(QuicTime::Zero()),
17 ideal_next_packet_send_time_(QuicTime::Zero()), 17 ideal_next_packet_send_time_(QuicTime::Zero()),
18 was_last_send_delayed_(false) { 18 was_last_send_delayed_(false) {
19 } 19 }
20 20
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 sender_->SetFromConfig(config, perspective);
26 DCHECK(using_pacing);
27 sender_->SetFromConfig(config, perspective, using_pacing);
28 } 26 }
29 27
30 bool PacingSender::ResumeConnectionState( 28 bool PacingSender::ResumeConnectionState(
31 const CachedNetworkParameters& cached_network_params, 29 const CachedNetworkParameters& cached_network_params,
32 bool max_bandwidth_resumption) { 30 bool max_bandwidth_resumption) {
33 return sender_->ResumeConnectionState(cached_network_params, 31 return sender_->ResumeConnectionState(cached_network_params,
34 max_bandwidth_resumption); 32 max_bandwidth_resumption);
35 } 33 }
36 34
37 void PacingSender::SetNumEmulatedConnections(int num_connections) { 35 void PacingSender::SetNumEmulatedConnections(int num_connections) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 170
173 QuicByteCount PacingSender::GetSlowStartThreshold() const { 171 QuicByteCount PacingSender::GetSlowStartThreshold() const {
174 return sender_->GetSlowStartThreshold(); 172 return sender_->GetSlowStartThreshold();
175 } 173 }
176 174
177 CongestionControlType PacingSender::GetCongestionControlType() const { 175 CongestionControlType PacingSender::GetCongestionControlType() const {
178 return sender_->GetCongestionControlType(); 176 return sender_->GetCongestionControlType();
179 } 177 }
180 178
181 } // namespace net 179 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/send_algorithm_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698