| 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 a0fcb0524d223e805c3f6f3f78a525563e2779b6..cf26ab7b45ca3a085a07236a057224c6d0499fd1 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
|
| @@ -103,6 +103,15 @@ class DataReductionProxyParams {
|
| // mode.
|
| static bool IsLoFiEnabled();
|
|
|
| + // 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
|
| @@ -264,6 +273,11 @@ class DataReductionProxyParams {
|
| return configured_on_command_line_;
|
| }
|
|
|
| + // Returns true if QUIC is enabled for proxies.
|
| + bool IsQuicEnabled() const {
|
| + return quic_enabled_;
|
| + }
|
| +
|
| protected:
|
| // Test constructor that optionally won't call Init();
|
| DataReductionProxyParams(int flags,
|
| @@ -325,6 +339,8 @@ class DataReductionProxyParams {
|
| bool alt_fallback_allowed_;
|
| bool promo_allowed_;
|
| bool holdback_;
|
| + bool quic_enabled_;
|
| + std::string command_line_origin_;
|
|
|
| bool configured_on_command_line_;
|
| };
|
|
|