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

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

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: Context menu browser test to unit test 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.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 50c5e9634a4ca771eaa618a099db9890852060ef..8e1196fad38dd5ea74f540f5badc65a5c7d9874f 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
@@ -21,7 +21,6 @@ using base::TimeDelta;
namespace {
-const char kChromeProxyHeader[] = "chrome-proxy";
const char kActionValueDelimiter = '=';
const char kChromeProxyActionBlockOnce[] = "block-once";
@@ -49,6 +48,10 @@ base::TimeDelta GetDefaultBypassDuration() {
namespace data_reduction_proxy {
+const char kChromeProxyHeader[] = "chrome-proxy";
bengr 2015/05/15 21:23:21 I would expose methods to get these string constan
megjablon 2015/05/15 22:25:28 Done.
+
+const char kChromeProxyLoFiDirective[] = "q=low";
+
bool GetDataReductionProxyActionValue(
const net::HttpResponseHeaders* headers,
const std::string& action_prefix,

Powered by Google App Engine
This is Rietveld 408576698