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

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

Issue 2957023002: Centralize the Data Reduction Proxy pass through header (Closed)
Patch Set: remove unused identity directive method Created 3 years, 6 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
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52cf1328dd087e952e599e1df148d8ee8fb3c09a..ef1e77faa3d285d7bf8659c86e794643d9dfe712 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
@@ -29,6 +29,8 @@ using base::TimeDelta;
namespace {
const char kChromeProxyHeader[] = "chrome-proxy";
+const char kDataReductionPassThroughHeader[] =
+ "Chrome-Proxy-Accept-Transform: identity\nCache-Control: no-cache";
const char kChromeProxyECTHeader[] = "chrome-proxy-ect";
const char kChromeProxyAcceptTransformHeader[] =
"chrome-proxy-accept-transform";
@@ -41,7 +43,6 @@ const char kActionValueDelimiter = '=';
const char kEmptyImageDirective[] = "empty-image";
const char kLitePageDirective[] = "lite-page";
const char kCompressedVideoDirective[] = "compressed-video";
-const char kIdentityDirective[] = "identity";
// The legacy Chrome-Proxy response header directive for LoFi images.
const char kLegacyChromeProxyLoFiResponseDirective[] = "q=low";
@@ -128,6 +129,10 @@ const char* chrome_proxy_header() {
return kChromeProxyHeader;
}
+const char* chrome_proxy_pass_through_header() {
+ return kDataReductionPassThroughHeader;
+}
+
const char* chrome_proxy_ect_header() {
return kChromeProxyECTHeader;
}
@@ -152,10 +157,6 @@ const char* compressed_video_directive() {
return kCompressedVideoDirective;
}
-const char* identity_directive() {
- return kIdentityDirective;
-}
-
const char* chrome_proxy_experiment_force_lite_page() {
return kChromeProxyExperimentForceLitePage;
}
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698