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

Unified Diff: components/data_reduction_proxy/core/common/lofi_decider.h

Issue 2424263002: Added support for heavy page previews transformations (Closed)
Patch Set: Addressed comments Created 4 years, 2 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 605df4bcbe75ef5934a34342e5622445ab386d1c..8a9d15b2872430fe09034040f12c07a0e735c998 100644
--- a/components/data_reduction_proxy/core/common/lofi_decider.h
+++ b/components/data_reduction_proxy/core/common/lofi_decider.h
@@ -31,9 +31,11 @@ class LoFiDecider {
// respectively. If a slow page preview is not triggered, "lite-page;if-heavy"
// and "empty-image;if-heavy" are added in the respective aforementioned cases
// to request that the server transform the page if it determines it to be
- // heavy.
+ // heavy. Previews-related transformation headers are never added if
+ // |is_previews_disabled| is true.
virtual void MaybeSetAcceptTransformHeader(
const net::URLRequest& request,
+ bool is_previews_disabled,
net::HttpRequestHeaders* headers) const = 0;
// Returns true if |headers| contains the Chrome-Proxy-Accept-Transform

Powered by Google App Engine
This is Rietveld 408576698