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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 1483103002: [Cronet] Add QUIC experimental params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: 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 24aa20a25b44dbd9474e3abda75ae09a34b3f3dd..6e3411deef10050014f2775fd2de3181b7cb76fb 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -83,6 +83,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;
};
@@ -194,6 +198,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