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

Unified Diff: chrome/browser/io_thread.h

Issue 903213003: Enable QUIC for proxies based on Finch config and command line switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed enable_quic_for_data_reduction_proxy from http_network_session.h Created 5 years, 10 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 3fbbe9ea0475a77def068621e0572f89d21a0c48..732ce9cb6e24d15a67ac0eaf704249926f14c25e 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -182,6 +182,8 @@ class IOThread : public content::BrowserThreadDelegate {
Optional<double> alternate_protocol_probability_threshold;
Optional<bool> enable_quic;
+ Optional<bool> enable_quic_for_proxies;
+ Optional<bool> enable_quic_for_data_reduction_proxy;
Ryan Hamilton 2015/02/13 21:39:04 Can you remove this too?
tbansal1 2015/02/13 22:04:13 IIUC: No, this is part of IOThread::Globals, which
Optional<bool> enable_quic_port_selection;
Optional<bool> quic_always_require_handshake_confirmation;
Optional<bool> quic_disable_connection_pooling;
@@ -330,6 +332,18 @@ class IOThread : public content::BrowserThreadDelegate {
const base::CommandLine& command_line,
base::StringPiece quic_trial_group);
+ // Returns true if QUIC should be enabled for proxies, either as a result
+ // of a field trial or a command line flag.
+ static bool ShouldEnableQuicForProxies(
+ const base::CommandLine& command_line,
+ base::StringPiece quic_trial_group);
+
+ // Returns true if QUIC should be enabled for data reduction proxy, either as
+ // a result of a field trial or a command line flag.
+ static bool ShouldEnableQuicForDataReductionProxy(
+ const base::CommandLine& command_line,
+ base::StringPiece quic_trial_group);
+
// Returns true if the selection of the ephemeral port in bind() should be
// performed by Chromium, and false if the OS should select the port. The OS
// option is used to prevent Windows from posting a security security warning
« 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