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

Unified Diff: net/quic/congestion_control/send_algorithm_interface.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, 10 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/congestion_control/send_algorithm_interface.cc
diff --git a/net/quic/congestion_control/send_algorithm_interface.cc b/net/quic/congestion_control/send_algorithm_interface.cc
index c884c028dc8bc2e0fdb662d4a3223409ed3bb6e3..3ab023c9727b28849908e94da769cf7430d0950a 100644
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/congestion_control/send_algorithm_interface.cc
@@ -13,17 +13,20 @@ namespace net {
const bool kUseReno = false;
+class RttStats;
+
// Factory for send side congestion control algorithm.
SendAlgorithmInterface* SendAlgorithmInterface::Create(
const QuicClock* clock,
+ const RttStats* rtt_stats,
CongestionFeedbackType type,
QuicConnectionStats* stats) {
switch (type) {
case kTCP:
- return new TcpCubicSender(clock, kUseReno, kMaxTcpCongestionWindow,
- stats);
+ return new TcpCubicSender(clock, rtt_stats, kUseReno,
+ kMaxTcpCongestionWindow, stats);
case kInterArrival:
- return new InterArrivalSender(clock);
+ return new InterArrivalSender(clock, rtt_stats);
case kFixRate:
return new FixRateSender(clock);
}
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/tcp_cubic_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698