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

Unified Diff: chrome/browser/io_thread.h

Issue 339663010: Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eliminate static initializer Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index ca817394e8bc1f70737a68e7f1c24e5a117e1f9b..919f3741f4da72858fba22aa356a63bc2ea46537 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;
@@ -361,6 +362,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_;
« 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