| 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 cba1871e8c5e9b02f7f0c3e37d6abdaf021ddba6..ec3fc4516b0083e251d22fafd3edafc55f6e6061 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
|
| @@ -91,6 +91,14 @@ class DataReductionProxyParams {
|
| static bool IsIncludedInAndroidOnePromoFieldTrial(
|
| const char* build_fingerprint);
|
|
|
| + // Returns true if this client has the command line switch to show
|
| + // interstitials for data reduction proxy bypasses on.
|
| + static bool IsInterstitalsCommandLineSwitchOn();
|
| +
|
| + // Returns true if the Data Reduction Proxy supports the scheme of the
|
| + // provided |url|.
|
| + static bool CanProxyURLScheme(const GURL& url);
|
| +
|
| // 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
|
| @@ -136,8 +144,8 @@ class DataReductionProxyParams {
|
|
|
| // Returns true if this request would be bypassed by the data request proxy
|
| // based on applying the |data_reduction_proxy_config| param rules to the
|
| - // request URL.
|
| - bool IsBypassedByDataReductionProxyLocalRules(
|
| + // request URL. Virutal for testing.
|
| + virtual bool IsBypassedByDataReductionProxyLocalRules(
|
| const net::URLRequest& request,
|
| const net::ProxyConfig& data_reduction_proxy_config) const;
|
|
|
| @@ -147,9 +155,10 @@ class DataReductionProxyParams {
|
| // proxies are bypassed, returns the minimum retry delay of the bypassed data
|
| // reduction proxies in min_retry_delay (if not NULL). If there are no
|
| // bypassed data reduction proxies for the request scheme, returns false and
|
| - // does not assign min_retry_delay.
|
| - bool AreDataReductionProxiesBypassed(const net::URLRequest& request,
|
| - base::TimeDelta* min_retry_delay) const;
|
| + // does not assign min_retry_delay. Virtual for testing.
|
| + virtual bool AreDataReductionProxiesBypassed(
|
| + const net::URLRequest& request,
|
| + base::TimeDelta* min_retry_delay) const;
|
|
|
| // Checks if all configured data reduction proxies are in the retry map.
|
| // Returns true if the request is bypassed by all configured data reduction
|
|
|