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

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

Issue 2642793005: Create a Lite Page bit for previews and fallback to Lo-Fi (Closed)
Patch Set: remove unused frame_messages.h code Created 3 years, 10 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 339e8764554dabc2d40541cddb460a23acaf7a7c..22a90a8397ef904afa505e90fc2191e04653bade 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
@@ -95,10 +95,15 @@ class DataReductionProxyIOData : public DataReductionProxyEventStorageDelegate {
// Applies a serialized Data Reduction Proxy configuration.
void SetDataReductionProxyConfiguration(const std::string& serialized_config);
- // Returns true when Lo-Fi mode should be activated. When Lo-Fi mode is
+ // 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 ShouldEnableLoFiMode(const net::URLRequest& request);
+ bool ShouldEnableLoFi(const net::URLRequest& request);
+
+ // 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);
// Sets Lo-Fi mode off in |config_|.
void SetLoFiModeOff();

Powered by Google App Engine
This is Rietveld 408576698