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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 1448583003: [Cronet] Add QUIC experimental params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@experiment_ops
Patch Set: Add two more params and address comments Created 5 years, 1 month 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/url_request/url_request_context_builder.h
diff --git a/net/url_request/url_request_context_builder.h b/net/url_request/url_request_context_builder.h
index 260eccb7147b652783ff78adc24d0680eac8dff4..81962e1ae2d1ce72a9538864b3b2f99e7ecea0b9 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -87,6 +87,10 @@ class NET_EXPORT URLRequestContextBuilder {
std::string trusted_spdy_proxy;
bool use_alternative_services;
bool enable_quic;
+ bool quic_store_server_configs_in_properties;
+ bool quic_delay_tcp_race;
+ int quic_max_number_of_lossy_connections;
+ float quic_packet_loss_threshold;
QuicTagVector quic_connection_options;
};
@@ -192,6 +196,27 @@ class NET_EXPORT URLRequestContextBuilder {
quic_connection_options;
}
+ void set_quic_store_server_configs_in_properties(
+ bool quic_store_server_configs_in_properties) {
+ http_network_session_params_.quic_store_server_configs_in_properties =
+ quic_store_server_configs_in_properties;
+ }
+
+ void set_quic_delay_tcp_race(bool quic_delay_tcp_race) {
+ http_network_session_params_.quic_delay_tcp_race = quic_delay_tcp_race;
+ }
+
+ void set_quic_max_number_of_lossy_connections(
+ int quic_max_number_of_lossy_connections) {
+ http_network_session_params_.quic_max_number_of_lossy_connections =
+ quic_max_number_of_lossy_connections;
+ }
+
+ void set_quic_packet_loss_threshold(float quic_packet_loss_threshold) {
+ http_network_session_params_.quic_packet_loss_threshold =
+ quic_packet_loss_threshold;
+ }
+
void set_throttling_enabled(bool throttling_enabled) {
throttling_enabled_ = throttling_enabled;
}

Powered by Google App Engine
This is Rietveld 408576698