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

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: A few more EXPORTs. 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
« no previous file with comments | « net/quic/quartc/quartc_factory.cc ('k') | net/quic/quartc/quartc_packet_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d9e6c1f73ccb68827ff1d847c5736ab6d95954c6 100644
--- a/net/quic/quartc/quartc_factory_interface.h
+++ b/net/quic/quartc/quartc_factory_interface.h
@@ -16,8 +16,14 @@
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 {
+class QUIC_EXPORT_PRIVATE QuartcFactoryInterface {
public:
virtual ~QuartcFactoryInterface() {}
@@ -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(
« no previous file with comments | « net/quic/quartc/quartc_factory.cc ('k') | net/quic/quartc/quartc_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698