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

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

Issue 2126903002: Deprectate --quic_ignore_srbf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@126352469
Patch Set: Created 4 years, 5 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 #include "net/quic/quic_flags.h" 7 #include "net/quic/quic_flags.h"
8 8
9 using std::min; 9 using std::min;
10 10
(...skipping 22 matching lines...) Expand all
33 const CachedNetworkParameters& cached_network_params, 33 const CachedNetworkParameters& cached_network_params,
34 bool max_bandwidth_resumption) { 34 bool max_bandwidth_resumption) {
35 sender_->ResumeConnectionState(cached_network_params, 35 sender_->ResumeConnectionState(cached_network_params,
36 max_bandwidth_resumption); 36 max_bandwidth_resumption);
37 } 37 }
38 38
39 void PacingSender::SetNumEmulatedConnections(int num_connections) { 39 void PacingSender::SetNumEmulatedConnections(int num_connections) {
40 sender_->SetNumEmulatedConnections(num_connections); 40 sender_->SetNumEmulatedConnections(num_connections);
41 } 41 }
42 42
43 void PacingSender::SetMaxCongestionWindow(QuicByteCount max_congestion_window) {
44 sender_->SetMaxCongestionWindow(max_congestion_window);
45 }
46
47 void PacingSender::SetMaxPacingRate(QuicBandwidth max_pacing_rate) { 43 void PacingSender::SetMaxPacingRate(QuicBandwidth max_pacing_rate) {
48 max_pacing_rate_ = max_pacing_rate; 44 max_pacing_rate_ = max_pacing_rate;
49 } 45 }
50 46
51 void PacingSender::OnCongestionEvent(bool rtt_updated, 47 void PacingSender::OnCongestionEvent(bool rtt_updated,
52 QuicByteCount bytes_in_flight, 48 QuicByteCount bytes_in_flight,
53 const CongestionVector& acked_packets, 49 const CongestionVector& acked_packets,
54 const CongestionVector& lost_packets) { 50 const CongestionVector& lost_packets) {
55 if (FLAGS_quic_allow_noprr && !lost_packets.empty()) { 51 if (FLAGS_quic_allow_noprr && !lost_packets.empty()) {
56 // Clear any burst tokens when entering recovery. 52 // Clear any burst tokens when entering recovery.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 182
187 QuicByteCount PacingSender::GetSlowStartThreshold() const { 183 QuicByteCount PacingSender::GetSlowStartThreshold() const {
188 return sender_->GetSlowStartThreshold(); 184 return sender_->GetSlowStartThreshold();
189 } 185 }
190 186
191 CongestionControlType PacingSender::GetCongestionControlType() const { 187 CongestionControlType PacingSender::GetCongestionControlType() const {
192 return sender_->GetCongestionControlType(); 188 return sender_->GetCongestionControlType();
193 } 189 }
194 190
195 } // namespace net 191 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/pacing_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698