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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h

Issue 2864333003: Use the Previews Black List for server previews (Closed)
Patch Set: deps change Created 3 years, 7 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/browser/data_reduction_proxy_io_data.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
index 22a90a8397ef904afa505e90fc2191e04653bade..55bbc894b86f87a1f3d93738d6f15e3e4989aaa0 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
@@ -36,6 +36,10 @@ class URLRequestContextGetter;
class URLRequestInterceptor;
}
+namespace previews {
+class PreviewsDecider;
+}
+
namespace data_reduction_proxy {
class DataReductionProxyBypassStats;
@@ -98,12 +102,14 @@ class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate {
// Returns true when Lo-Fi Previews should be activated. When Lo-Fi is
// active, URL requests are modified to request low fidelity versions of the
// resources, except when the user is in the Lo-Fi control group.
- bool ShouldEnableLoFi(const net::URLRequest& request);
+ bool ShouldEnableLoFi(const net::URLRequest& request,
+ previews::PreviewsDecider* previews_decider);
// Returns true when Lite Page Previews should be activated. When Lite Pages
// are active, a low fidelity transcoded page is requested on the main frame
// resource, except when the user is in the control group.
- bool ShouldEnableLitePages(const net::URLRequest& request);
+ bool ShouldEnableLitePages(const net::URLRequest& request,
+ previews::PreviewsDecider* previews_decider);
// Sets Lo-Fi mode off in |config_|.
void SetLoFiModeOff();

Powered by Google App Engine
This is Rietveld 408576698