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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.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: try again 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/browser/data_reduction_proxy_request_options.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
index 82cdf1eb52a26fecc7b35e097b13e08228e4d4ed..7316ef6231bb07cdc9c28ea8152253e7caefab83 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h
@@ -132,7 +132,7 @@ class DataReductionProxyRequestOptions {
void SetSecureSession(const std::string& secure_session);
protected:
- void SetHeader(net::HttpRequestHeaders* headers);
+ void SetHeader(net::HttpRequestHeaders* headers, bool force_disable_lo_fi);
// Returns a UTF16 string that's the hash of the configured authentication
// |key| and |salt|. Returns an empty UTF16 string if no key is configured or
@@ -170,8 +170,9 @@ class DataReductionProxyRequestOptions {
// Updates client type, build, and patch.
void UpdateVersion();
- // Updates the value of LoFi and regenerates the header if necessary.
- void UpdateLoFi();
+ // Updates the value of LoFi and regenerates the header if necessary. The LoFi
+ // header is not added if the request bypasses the cache.
+ void UpdateLoFi(bool force_disable_lo_fi);
// Update the value of the experiments to be run and regenerate the header if
// necessary.
@@ -192,7 +193,8 @@ class DataReductionProxyRequestOptions {
// reduction proxy for HTTP traffic.
void MaybeAddRequestHeaderImpl(const net::HostPortPair& proxy_server,
bool expect_ssl,
- net::HttpRequestHeaders* request_headers);
+ net::HttpRequestHeaders* request_headers,
+ bool force_disable_lo_fi);
// Regenerates the |header_value_| string which is concatenated to the
// Chrome-proxy header.

Powered by Google App Engine
This is Rietveld 408576698