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

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

Issue 185053006: Refactor of QUIC's rtt storage and calculation to have a single RttStats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/rtt_stats.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 QuicBandwidth PacingSender::BandwidthEstimate() const { 120 QuicBandwidth PacingSender::BandwidthEstimate() const {
121 return sender_->BandwidthEstimate(); 121 return sender_->BandwidthEstimate();
122 } 122 }
123 123
124 void PacingSender::UpdateRtt(QuicTime::Delta rtt_sample) { 124 void PacingSender::UpdateRtt(QuicTime::Delta rtt_sample) {
125 updated_rtt_= true; 125 updated_rtt_= true;
126 sender_->UpdateRtt(rtt_sample); 126 sender_->UpdateRtt(rtt_sample);
127 } 127 }
128 128
129 QuicTime::Delta PacingSender::SmoothedRtt() const {
130 return sender_->SmoothedRtt();
131 }
132
133 QuicTime::Delta PacingSender::RetransmissionDelay() const { 129 QuicTime::Delta PacingSender::RetransmissionDelay() const {
134 return sender_->RetransmissionDelay(); 130 return sender_->RetransmissionDelay();
135 } 131 }
136 132
137 QuicByteCount PacingSender::GetCongestionWindow() const { 133 QuicByteCount PacingSender::GetCongestionWindow() const {
138 return sender_->GetCongestionWindow(); 134 return sender_->GetCongestionWindow();
139 } 135 }
140 136
141 } // namespace net 137 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/rtt_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698