Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / net / quic / congestion_control / send_algorithm_interface.cc
index 58b92bc..784768a 100644 (file)
@@ -4,32 +4,29 @@
 
 #include "net/quic/congestion_control/send_algorithm_interface.h"
 
-#include "net/quic/congestion_control/fix_rate_sender.h"
 #include "net/quic/congestion_control/tcp_cubic_sender.h"
 #include "net/quic/quic_protocol.h"
 
 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,
+    CongestionControlType congestion_control_type,
     QuicConnectionStats* stats) {
-  switch (type) {
-    case kTCP:
-      return new TcpCubicSender(clock, rtt_stats, kUseReno,
+  switch (congestion_control_type) {
+    case kCubic:
+      return new TcpCubicSender(clock, rtt_stats,
+                                false /* don't use Reno */,
                                 kMaxTcpCongestionWindow, stats);
-    case kInterArrival:
-      LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported.";
-      return NULL;
-    case kFixRate:
-      return new FixRateSender(rtt_stats);
-    case kTCPBBR:
+    case kReno:
+      return new TcpCubicSender(clock, rtt_stats,
+                                true /* use Reno */,
+                                kMaxTcpCongestionWindow, stats);
+    case kBBR:
       LOG(DFATAL) << "BbrTcpSender is not supported.";
       return NULL;
   }