| 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 ade942dac9439f2dcf3dcf4b49f63ef3ab1e09e0..8d94348af9c04de1c562a1eb010abff35ad17b11 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
|
| @@ -90,6 +90,10 @@ class DataReductionProxyParams {
|
| // the data reduction proxy via header is missing.
|
| static bool IsIncludedInRemoveMissingViaHeaderOtherBypassFieldTrial();
|
|
|
| + // Returns true if this client is part of field trial to show bypass warnings
|
| + // for the data reduction proxy.
|
| + static bool IsIncludedInBypassWarningTrial();
|
| +
|
| // 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
|
| @@ -142,11 +146,10 @@ class DataReductionProxyParams {
|
|
|
| // Checks if all configured data reduction proxies are in the retry map.
|
| // Returns true if the request is bypassed by all configured data reduction
|
| - // proxies that apply to the request scheme. If all possible data reduction
|
| - // 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.
|
| + // proxies and returns the bypass delay in delay_seconds (if not NULL). If
|
| + // there are no configured data reduction proxies, returns false. If
|
| + // the request is bypassed by more than one proxy, delay_seconds returns
|
| + // the shortest delay.
|
| bool AreDataReductionProxiesBypassed(const net::URLRequest& request,
|
| base::TimeDelta* min_retry_delay) const;
|
|
|
|
|