diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 23:01:00 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 23:01:00 +0000 |
commit | 287d941307e87364a4864187ea5c9b9df08daef8 (patch) | |
tree | 187d4672e5aec8ab417ca37f72bb15922ef591d2 /chrome/browser/io_thread.h | |
parent | 69e6f0e744a73856a4e4e90c34b0a857b9b0373f (diff) | |
download | chromium_src-287d941307e87364a4864187ea5c9b9df08daef8.zip chromium_src-287d941307e87364a4864187ea5c9b9df08daef8.tar.gz chromium_src-287d941307e87364a4864187ea5c9b9df08daef8.tar.bz2 |
Add a probability to Alternate-Protocol support. Can be enabled either via a field trial or a command line flag.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281777
Review URL: https://codereview.chromium.org/339663010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281861 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/io_thread.h')
-rw-r--r-- | chrome/browser/io_thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h index 3441fe9..b6121cf 100644 --- a/chrome/browser/io_thread.h +++ b/chrome/browser/io_thread.h @@ -173,6 +173,7 @@ class IOThread : public content::BrowserThreadDelegate { Optional<bool> force_spdy_always; std::set<net::HostPortPair> forced_spdy_exclusions; Optional<bool> use_alternate_protocols; + Optional<double> alternate_protocol_probability_threshold; Optional<bool> enable_websocket_over_spdy; Optional<bool> enable_quic; @@ -366,6 +367,12 @@ class IOThread : public content::BrowserThreadDelegate { static net::QuicTagVector ParseQuicConnectionOptions( const std::string& connection_options); + // Returns the alternate protocol probability threshold specified by + // any flags in |command_line| or |quic_trial_params|. + static double GetAlternateProtocolProbabilityThreshold( + const base::CommandLine& command_line, + const VariationParameters& quic_trial_params); + // The NetLog is owned by the browser process, to allow logging from other // threads during shutdown, but is used most frequently on the IOThread. ChromeNetLog* net_log_; |