summaryrefslogtreecommitdiffstats
path: root/net/quic/congestion_control/send_algorithm_interface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/congestion_control/send_algorithm_interface.cc')
-rw-r--r--net/quic/congestion_control/send_algorithm_interface.cc36
1 files changed, 7 insertions, 29 deletions
diff --git a/net/quic/congestion_control/send_algorithm_interface.cc b/net/quic/congestion_control/send_algorithm_interface.cc
index 20821a6..83de14f 100644
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/congestion_control/send_algorithm_interface.cc
@@ -4,8 +4,6 @@
#include "net/quic/congestion_control/send_algorithm_interface.h"
-#include "net/quic/congestion_control/tcp_cubic_bytes_sender.h"
-#include "net/quic/congestion_control/tcp_cubic_sender.h"
#include "net/quic/congestion_control/tcp_cubic_sender_bytes.h"
#include "net/quic/congestion_control/tcp_cubic_sender_packets.h"
#include "net/quic/quic_flags.h"
@@ -27,39 +25,19 @@ SendAlgorithmInterface* SendAlgorithmInterface::Create(
kDefaultTCPMSS;
switch (congestion_control_type) {
case kCubic:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderPackets(
- clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window, max_congestion_window, stats);
- }
- return new TcpCubicSender(clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
+ return new TcpCubicSenderPackets(
+ clock, rtt_stats, false /* don't use Reno */,
+ initial_congestion_window, max_congestion_window, stats);
case kCubicBytes:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderBytes(
- clock, rtt_stats, false /* don't use Reno */,
- initial_congestion_window, max_congestion_window, stats);
- }
- return new TcpCubicBytesSender(
+ return new TcpCubicSenderBytes(
clock, rtt_stats, false /* don't use Reno */,
initial_congestion_window, max_congestion_window, stats);
case kReno:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderPackets(clock, rtt_stats, true /* use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
- }
- return new TcpCubicSender(clock, rtt_stats, true /* use Reno */,
- initial_congestion_window,
- max_congestion_window, stats);
- case kRenoBytes:
- if (FLAGS_quic_use_new_tcp_sender) {
- return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */,
+ return new TcpCubicSenderPackets(clock, rtt_stats, true /* use Reno */,
initial_congestion_window,
max_congestion_window, stats);
- }
- return new TcpCubicBytesSender(clock, rtt_stats, true /* use Reno */,
+ case kRenoBytes:
+ return new TcpCubicSenderBytes(clock, rtt_stats, true /* use Reno */,
initial_congestion_window,
max_congestion_window, stats);
case kBBR: