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

Unified Diff: net/quic/congestion_control/send_algorithm_interface.cc

Issue 411823002: Land Recent QUIC Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 240166791d2eb4d8a7893ec7ce1714c314ab5dff..5d0e032daffda4d983d2a21bf4320fbc51e70b60 100644
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/congestion_control/send_algorithm_interface.cc
@@ -10,8 +10,6 @@
namespace net {
-const bool kUseReno = false;
-
class RttStats;
// Factory for send side congestion control algorithm.
@@ -21,12 +19,14 @@ SendAlgorithmInterface* SendAlgorithmInterface::Create(
CongestionControlType congestion_control_type,
QuicConnectionStats* stats) {
switch (congestion_control_type) {
- case kTCP:
- return new TcpCubicSender(clock, rtt_stats, kUseReno,
+ case kCubic:
+ return new TcpCubicSender(clock, rtt_stats,
+ false /* don't use Reno */,
+ kMaxTcpCongestionWindow, stats);
+ case kReno:
+ return new TcpCubicSender(clock, rtt_stats,
+ true /* use Reno */,
kMaxTcpCongestionWindow, stats);
- case kInterArrival:
- LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported.";
- return NULL;
case kFixRateCongestionControl:
return new FixRateSender(rtt_stats);
case kBBR:

Powered by Google App Engine
This is Rietveld 408576698