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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.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: Added comment 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
Index: components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
index 98676a7fee6bca07fd55b8be6f18e6ddccc23430..da4905b3f05e8fc30fd9538cf47db60f1c2daab2 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
@@ -111,6 +111,15 @@ class DataReductionProxyParams {
// provided |url|.
static bool CanProxyURLScheme(const GURL& url);
+ // Returns true if this client is part of a field trial that sets the origin
+ // proxy server as quic://proxy.googlezip.net.
+ static bool IsIncludedInQuicFieldTrial();
+
+ static std::string GetQuicFieldTrialName();
+
+ // If true, uses QUIC instead of SPDY to connect to proxies that use TLS.
+ void EnableQuic(bool enable);
+
// Constructs configuration parameters. If |kAllowed|, then the standard
// data reduction proxy configuration is allowed to be used. If
// |kfallbackAllowed| a fallback proxy can be used if the primary proxy is
@@ -333,6 +342,8 @@ class DataReductionProxyParams {
bool alt_fallback_allowed_;
bool promo_allowed_;
bool holdback_;
+ bool quic_enabled_;
+ std::string override_quic_origin_;
bool configured_on_command_line_;
};

Powered by Google App Engine
This is Rietveld 408576698