| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
|
| index 6cad47d23c10ca7c59e885cb6b1383bfb831abec..cc7042776334afd18e90527339e46f4a75a31753 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
|
| @@ -189,10 +189,14 @@ class DataReductionProxyConfig
|
| // Returns |lofi_off_|.
|
| bool lofi_off() const { return lofi_off_; }
|
|
|
| - // Returns true when Lo-Fi mode should be activated. Records metrics for Lo-Fi
|
| - // state changes. |request| is used to get the network quality estimator from
|
| - // the URLRequestContext.
|
| - bool ShouldEnableLoFiMode(const net::URLRequest& request);
|
| + // Returns true when Lo-Fi Previews should be activated. Records metrics for
|
| + // Lo-Fi state changes. |request| is used to get the network quality estimator
|
| + // from the URLRequestContext.
|
| + bool ShouldEnableLoFi(const net::URLRequest& request);
|
| +
|
| + // Returns true when Lite Page Previews should be activated. |request| is used
|
| + // to get the network quality estimator from the URLRequestContext.
|
| + bool ShouldEnableLitePages(const net::URLRequest& request);
|
|
|
| // Returns true if the data saver has been enabled by the user, and the data
|
| // saver proxy is reachable.
|
| @@ -283,10 +287,17 @@ class DataReductionProxyConfig
|
| bool is_https,
|
| base::TimeDelta* min_retry_delay) const;
|
|
|
| - // Returns true when Lo-Fi mode should be activated. Determines if Lo-Fi mode
|
| - // should be activated by checking the Lo-Fi flags and if the network quality
|
| - // is prohibitively slow. |network_quality_estimator| may be NULL.
|
| - bool ShouldEnableLoFiModeInternal(
|
| + // Returns true when Lo-Fi Previews should be activated. Determines if Lo-Fi
|
| + // Previews should be activated by checking the Lo-Fi flags and if the network
|
| + // quality is prohibitively slow. |network_quality_estimator| may be NULL.
|
| + bool ShouldEnableLoFiInternal(
|
| + const net::NetworkQualityEstimator* network_quality_estimator);
|
| +
|
| + // Returns true when Lite Page Previews should be activated. Determines if
|
| + // Lite Page Previewsmode should be activated by checking the Lite Page
|
| + // Previews flags and if the network quality is prohibitively slow.
|
| + // |network_quality_estimator| may be NULL.
|
| + bool ShouldEnableLitePagesInternal(
|
| const net::NetworkQualityEstimator* network_quality_estimator);
|
|
|
| // Returns true if the network quality is at least as poor as the one
|
|
|