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

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: All comments and move Chrome-Proxy logic outside of content/ 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 0721dab5ff93e8dd272940a0ca6c3c5227065d6b..1961525a672616a0dd464ae8ff8b839997915efd 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
@@ -131,7 +131,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
@@ -169,8 +169,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.
@@ -191,7 +192,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