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

Side by Side Diff: chrome/browser/io_thread.h

Issue 871833002: Revert of QUIC - Deleted disable_loading_server_info_for_new_servers field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 Optional<bool> force_spdy_always; 185 Optional<bool> force_spdy_always;
186 std::set<net::HostPortPair> forced_spdy_exclusions; 186 std::set<net::HostPortPair> forced_spdy_exclusions;
187 Optional<bool> use_alternate_protocols; 187 Optional<bool> use_alternate_protocols;
188 Optional<double> alternate_protocol_probability_threshold; 188 Optional<double> alternate_protocol_probability_threshold;
189 189
190 Optional<bool> enable_quic; 190 Optional<bool> enable_quic;
191 Optional<bool> enable_quic_port_selection; 191 Optional<bool> enable_quic_port_selection;
192 Optional<bool> quic_always_require_handshake_confirmation; 192 Optional<bool> quic_always_require_handshake_confirmation;
193 Optional<bool> quic_disable_connection_pooling; 193 Optional<bool> quic_disable_connection_pooling;
194 Optional<int> quic_load_server_info_timeout_ms; 194 Optional<int> quic_load_server_info_timeout_ms;
195 Optional<bool> quic_disable_loading_server_info_for_new_servers;
195 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 196 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
196 Optional<bool> quic_enable_truncated_connection_ids; 197 Optional<bool> quic_enable_truncated_connection_ids;
197 Optional<size_t> quic_max_packet_length; 198 Optional<size_t> quic_max_packet_length;
198 net::QuicTagVector quic_connection_options; 199 net::QuicTagVector quic_connection_options;
199 Optional<std::string> quic_user_agent_id; 200 Optional<std::string> quic_user_agent_id;
200 Optional<net::QuicVersionVector> quic_supported_versions; 201 Optional<net::QuicVersionVector> quic_supported_versions;
201 Optional<net::HostPortPair> origin_to_force_quic_on; 202 Optional<net::HostPortPair> origin_to_force_quic_on;
202 bool enable_user_alternate_protocol_ports; 203 bool enable_user_alternate_protocol_ports;
203 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 204 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
204 // main frame load fails with a DNS error in order to provide more useful 205 // main frame load fails with a DNS error in order to provide more useful
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // Returns true if QUIC should disable connection pooling. 366 // Returns true if QUIC should disable connection pooling.
366 static bool ShouldQuicDisableConnectionPooling( 367 static bool ShouldQuicDisableConnectionPooling(
367 const VariationParameters& quic_trial_params); 368 const VariationParameters& quic_trial_params);
368 369
369 // Returns the timeout value for loading of QUIC sever information from disk 370 // Returns the timeout value for loading of QUIC sever information from disk
370 // cache based on field trial. Returns 0 if there is an error parsing the 371 // cache based on field trial. Returns 0 if there is an error parsing the
371 // field trial params, or if the default value should be used. 372 // field trial params, or if the default value should be used.
372 static int GetQuicLoadServerInfoTimeout( 373 static int GetQuicLoadServerInfoTimeout(
373 const VariationParameters& quic_trial_params); 374 const VariationParameters& quic_trial_params);
374 375
376 // Returns true if QUIC sever information shouldn't be loaded for new servers.
377 static bool ShouldDisableLoadingServerInfoForNewServers(
378 const VariationParameters& quic_trial_params);
379
375 // Returns the ratio of time to load QUIC sever information from disk cache to 380 // Returns the ratio of time to load QUIC sever information from disk cache to
376 // 'smoothed RTT' based on field trial. Returns 0 if there is an error parsing 381 // 'smoothed RTT' based on field trial. Returns 0 if there is an error parsing
377 // the field trial params, or if the default value should be used. 382 // the field trial params, or if the default value should be used.
378 static float GetQuicLoadServerInfoTimeoutSrttMultiplier( 383 static float GetQuicLoadServerInfoTimeoutSrttMultiplier(
379 const VariationParameters& quic_trial_params); 384 const VariationParameters& quic_trial_params);
380 385
381 // Returns true if QUIC's TruncatedConnectionIds should be enabled. 386 // Returns true if QUIC's TruncatedConnectionIds should be enabled.
382 static bool ShouldQuicEnableTruncatedConnectionIds( 387 static bool ShouldQuicEnableTruncatedConnectionIds(
383 const VariationParameters& quic_trial_params); 388 const VariationParameters& quic_trial_params);
384 389
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 bool is_spdy_disabled_by_policy_; 471 bool is_spdy_disabled_by_policy_;
467 472
468 const base::TimeTicks creation_time_; 473 const base::TimeTicks creation_time_;
469 474
470 base::WeakPtrFactory<IOThread> weak_factory_; 475 base::WeakPtrFactory<IOThread> weak_factory_;
471 476
472 DISALLOW_COPY_AND_ASSIGN(IOThread); 477 DISALLOW_COPY_AND_ASSIGN(IOThread);
473 }; 478 };
474 479
475 #endif // CHROME_BROWSER_IO_THREAD_H_ 480 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698