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

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: fix comments Created 6 years, 6 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') | chrome/browser/net/http_server_properties_manager.cc » ('J')
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 29fbf5f73487d0d85706384aa14609f90e81a726..5cace03bc25256e2abb4e7560c24ddaf3b76f726 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -172,6 +172,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;
@@ -358,6 +359,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') | chrome/browser/net/http_server_properties_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698