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

Unified Diff: net/quic/quartc/quartc_factory_interface.h

Issue 2916033003: Landing Recent QUIC changes until 03:18 AM, May 28, UTC (Closed)
Patch Set: Added Quartc test files that were missed earlier. 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/quartc/quartc_factory_interface.h
diff --git a/net/quic/quartc/quartc_factory_interface.h b/net/quic/quartc/quartc_factory_interface.h
index 1d4db2f060d8fce1e315b662669a7b2e830ce2c2..39b5ba2e27f317fa99b4f88ecab8f66d162f5236 100644
--- a/net/quic/quartc/quartc_factory_interface.h
+++ b/net/quic/quartc/quartc_factory_interface.h
@@ -16,6 +16,12 @@
namespace net {
+// Algorithm to use for congestion control.
+enum class QuartcCongestionControl {
+ kDefault, // Use an arbitrary algorithm chosen by QUIC.
+ kBBR, // Use BBR.
+};
+
// Used to create instances for Quartc objects such as QuartcSession.
class QuartcFactoryInterface {
public:
@@ -36,6 +42,10 @@ class QuartcFactoryInterface {
// The maximum size of the packet can be written with the packet writer.
// 1200 bytes by default.
uint64_t max_packet_size = 1200;
+ // Algorithm to use for congestion control. By default, uses an arbitrary
+ // congestion control algorithm chosen by QUIC.
+ QuartcCongestionControl congestion_control =
+ QuartcCongestionControl::kDefault;
};
virtual std::unique_ptr<QuartcSessionInterface> CreateQuartcSession(

Powered by Google App Engine
This is Rietveld 408576698