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

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

Issue 2875333002: Landing Recent QUIC changes until Mon May 8 21:42:46 2017 +0000 (Closed)
Patch Set: Created 3 years, 7 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/core/congestion_control/send_algorithm_interface.cc
diff --git a/net/quic/core/congestion_control/send_algorithm_interface.cc b/net/quic/core/congestion_control/send_algorithm_interface.cc
index b9bb452a4b5c5f940321d16a6ab9e7c5bc0a12d3..385d46eda137b9865a19433f476b0164bc3efa54 100644
--- a/net/quic/core/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/core/congestion_control/send_algorithm_interface.cc
@@ -9,7 +9,9 @@
#include "net/quic/core/congestion_control/tcp_cubic_sender_packets.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 */,
« no previous file with comments | « net/quic/core/congestion_control/bbr_sender_test.cc ('k') | net/quic/core/congestion_control/send_algorithm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698