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

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: Fix build 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 40712f7abff5237a1b42889316b71018207f8a1d..d17c8665848f9b9d8202e4a2416a507f2b965076 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;
std::string ssl_session_cache_shard;
};
@@ -198,6 +202,27 @@ class NET_EXPORT URLRequestContextBuilder {
ssl_session_cache_shard;
}
+ 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;
}
« no previous file with comments | « components/cronet/url_request_context_config_unittest.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698