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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_headers.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/data_reduction_proxy_headers.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h
index b0ea201384ef6f926c3137ebf57335ae616b3c6b..bbda9ae47305c2b4de1a91359a28f8a2f3a933d2 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h
@@ -101,6 +101,12 @@ const char* chrome_proxy_lite_page_directive();
// preview experiment to ignore the blacklist.
const char* chrome_proxy_lite_page_ignore_blacklist_directive();
+// Requests a transformation only if the server determines that the page is
+// otherwise heavy (i.e., the associated page load ordinarily requires the
+// network to transfer of a lot of bytes). Added to a previews directive. E.g.,
+// "lite-page;if-heavy".
+const char* if_heavy_qualifier();
+
// Returns true if the Chrome-Proxy-Content-Transform response header indicates
// that an empty image has been provided.
bool IsEmptyImagePreview(const net::HttpResponseHeaders& headers);

Powered by Google App Engine
This is Rietveld 408576698