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

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

Issue 1105263004: "Load image" context menu item to reload a LoFi image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename ReloadOriginalImage to ShowOriginalImage and Comments Created 5 years, 7 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 ab94b0f82fa714814fd33c6dcb31ea02c3f28f3e..9244b95e4ffd9107f8c5592588e6d7bb07828bf8 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
@@ -21,8 +21,6 @@ class HttpResponseHeaders;
namespace data_reduction_proxy {
-class DataReductionProxyEventCreator;
-
// Values of the UMA DataReductionProxy.BypassType{Primary|Fallback} and
// DataReductionProxy.BlockType{Primary|Fallback} histograms. This enum must
// remain synchronized with the enum of the same name in
@@ -64,6 +62,15 @@ struct DataReductionProxyInfo {
DataReductionProxyBypassAction bypass_action;
};
+class DataReductionProxyEventCreator;
+
+// Gets the header used for data reduction proxy requests and responses.
+const char* chrome_proxy_header();
+
+// Gets the Chrome-Proxy directive used by data reduction proxy Lo-Fi requests
+// and responses.
+const char* chrome_proxy_lo_fi_directive();
+
// Returns true if the Chrome-Proxy header is present and contains a bypass
// delay. Sets |proxy_info->bypass_duration| to the specified delay if greater
// than 0, and to 0 otherwise to indicate that the default proxy delay

Powered by Google App Engine
This is Rietveld 408576698