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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc

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.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc
index 7c17395157bd08fef8f544ac3957e526f82ecf6f..375416a081c2eb889addd5dc3286b073f0ff56d7 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_headers.cc
@@ -43,6 +43,8 @@ const char kIdentityDirective[] = "identity";
const char kChromeProxyLitePageIngoreBlacklistDirective[] =
"exp=ignore_preview_blacklist";
+const char kIfHeavyQualifier[] = "if-heavy";
+
const char kChromeProxyActionBlockOnce[] = "block-once";
const char kChromeProxyActionBlock[] = "block";
const char kChromeProxyActionBypass[] = "bypass";
@@ -139,6 +141,10 @@ const char* chrome_proxy_lite_page_ignore_blacklist_directive() {
return kChromeProxyLitePageIngoreBlacklistDirective;
}
+const char* if_heavy_qualifier() {
+ return kIfHeavyQualifier;
+}
+
bool IsEmptyImagePreview(const net::HttpResponseHeaders& headers) {
return IsPreviewType(headers, kEmptyImageDirective);
}

Powered by Google App Engine
This is Rietveld 408576698