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

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

Issue 530343003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0828
Patch Set: Created 6 years, 3 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,
(...skipping 18 matching lines...) Expand all
29 29
30 void PacingSender::OnIncomingQuicCongestionFeedbackFrame( 30 void PacingSender::OnIncomingQuicCongestionFeedbackFrame(
31 const QuicCongestionFeedbackFrame& feedback, 31 const QuicCongestionFeedbackFrame& feedback,
32 QuicTime feedback_receive_time) { 32 QuicTime feedback_receive_time) {
33 sender_->OnIncomingQuicCongestionFeedbackFrame( 33 sender_->OnIncomingQuicCongestionFeedbackFrame(
34 feedback, feedback_receive_time); 34 feedback, feedback_receive_time);
35 } 35 }
36 36
37 void PacingSender::OnCongestionEvent(bool rtt_updated, 37 void PacingSender::OnCongestionEvent(bool rtt_updated,
38 QuicByteCount bytes_in_flight, 38 QuicByteCount bytes_in_flight,
39 const CongestionMap& acked_packets, 39 const CongestionVector& acked_packets,
40 const CongestionMap& lost_packets) { 40 const CongestionVector& lost_packets) {
41 if (rtt_updated) { 41 if (rtt_updated) {
42 has_valid_rtt_ = true; 42 has_valid_rtt_ = true;
43 } 43 }
44 sender_->OnCongestionEvent( 44 sender_->OnCongestionEvent(
45 rtt_updated, bytes_in_flight, acked_packets, lost_packets); 45 rtt_updated, bytes_in_flight, acked_packets, lost_packets);
46 } 46 }
47 47
48 bool PacingSender::OnPacketSent( 48 bool PacingSender::OnPacketSent(
49 QuicTime sent_time, 49 QuicTime sent_time,
50 QuicByteCount bytes_in_flight, 50 QuicByteCount bytes_in_flight,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 QuicByteCount PacingSender::GetSlowStartThreshold() const { 177 QuicByteCount PacingSender::GetSlowStartThreshold() const {
178 return sender_->GetSlowStartThreshold(); 178 return sender_->GetSlowStartThreshold();
179 } 179 }
180 180
181 CongestionControlType PacingSender::GetCongestionControlType() const { 181 CongestionControlType PacingSender::GetCongestionControlType() const {
182 return sender_->GetCongestionControlType(); 182 return sender_->GetCongestionControlType();
183 } 183 }
184 184
185 } // namespace net 185 } // 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