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

Unified Diff: components/data_reduction_proxy/core/common/lofi_decider.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/common/lofi_decider.h
diff --git a/components/data_reduction_proxy/core/common/lofi_decider.h b/components/data_reduction_proxy/core/common/lofi_decider.h
index 8a9d15b2872430fe09034040f12c07a0e735c998..2eca7590fdb2d5545c9dd490b95edeecfb31c5ef 100644
--- a/components/data_reduction_proxy/core/common/lofi_decider.h
+++ b/components/data_reduction_proxy/core/common/lofi_decider.h
@@ -20,9 +20,9 @@ class LoFiDecider {
public:
virtual ~LoFiDecider() {}
- // Returns true when Lo-Fi mode is on for the given |request|. This means the
- // Lo-Fi header should be added to the given request.
- virtual bool IsUsingLoFiMode(const net::URLRequest& request) const = 0;
+ // Returns true when Lo-Fi Previews are on for the given |request|. This means
+ // the Lo-Fi header should be added to the given request.
+ virtual bool IsUsingLoFi(const net::URLRequest& request) const = 0;
// Adds a previews-specific directive to the Chrome-Proxy-Accept-Transform
// header if needed. If a slow page preview is triggered, adds "lite-page" or
@@ -35,7 +35,7 @@ class LoFiDecider {
// |is_previews_disabled| is true.
virtual void MaybeSetAcceptTransformHeader(
const net::URLRequest& request,
- bool is_previews_disabled,
+ bool are_previews_disabled,
net::HttpRequestHeaders* headers) const = 0;
// Returns true if |headers| contains the Chrome-Proxy-Accept-Transform
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698