summaryrefslogtreecommitdiff
path: root/chromium/net/quic/core/congestion_control/send_algorithm_interface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/quic/core/congestion_control/send_algorithm_interface.cc')
-rw-r--r--chromium/net/quic/core/congestion_control/send_algorithm_interface.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/net/quic/core/congestion_control/send_algorithm_interface.cc b/chromium/net/quic/core/congestion_control/send_algorithm_interface.cc
index f754366944d..385d46eda13 100644
--- a/chromium/net/quic/core/congestion_control/send_algorithm_interface.cc
+++ b/chromium/net/quic/core/congestion_control/send_algorithm_interface.cc
@@ -7,9 +7,11 @@
#include "net/quic/core/congestion_control/bbr_sender.h"
#include "net/quic/core/congestion_control/tcp_cubic_sender_bytes.h"
#include "net/quic/core/congestion_control/tcp_cubic_sender_packets.h"
-#include "net/quic/core/quic_flags.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/platform/api/quic_bug_tracker.h"
+#include "net/quic/platform/api/quic_flag_utils.h"
+#include "net/quic/platform/api/quic_flags.h"
+#include "net/quic/platform/api/quic_pcc_sender.h"
namespace net {
@@ -32,8 +34,17 @@ SendAlgorithmInterface* SendAlgorithmInterface::Create(
initial_congestion_window, max_congestion_window,
random);
}
-
// Fall back to CUBIC if BBR is disabled.
+ // FALLTHROUGH_INTENDED
+ case kPCC:
+ if (FLAGS_quic_reloadable_flag_quic_enable_pcc) {
+ QUIC_FLAG_COUNT(quic_reloadable_flag_quic_enable_pcc);
+ return CreatePccSender(clock, rtt_stats, unacked_packets, random, stats,
+ initial_congestion_window,
+ max_congestion_window);
+ }
+ // Fall back to CUBIC if PCC is disabled.
+ // FALLTHROUGH_INTENDED
case kCubic:
return new TcpCubicSenderPackets(
clock, rtt_stats, false /* don't use Reno */,