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

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

Issue 2800473002: Treat responses with legacy LoFi headers as LoFi images. (Closed)
Patch Set: Added comment describing CPCT header format Created 3 years, 8 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 7ed898e6c2bb9af080008303cad8fdd48200da19..360914e06ad1d029edd651d4d3c2ff997dcaecc3 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
@@ -115,7 +115,8 @@ bool IsEmptyImagePreview(const net::HttpResponseHeaders& headers);
// Returns true if the provided value of the Chrome-Proxy-Content-Transform
// response header that is provided in |content_transform_value| indicates that
// an empty image has been provided.
-bool IsEmptyImagePreview(const std::string& content_transform_value);
+bool IsEmptyImagePreview(const std::string& content_transform_value,
+ const std::string& chrome_proxy_value);
// Returns true if the Chrome-Proxy-Content-Transform response header indicates
// that a lite page has been provided.

Powered by Google App Engine
This is Rietveld 408576698