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

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: 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..383edfe6ac9eb516cbe4a96ffa7a652583263d51 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, int request_load_flags);
// 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,7 +170,7 @@ class DataReductionProxyRequestOptions {
void UpdateVersion();
// Updates the value of LoFi and regenerates the header if necessary.
- void UpdateLoFi();
+ void UpdateLoFi(int request_load_flags);
bengr 2015/05/11 20:35:40 Add a comment that the LoFi header is not added if
megjablon 2015/05/11 22:58:40 Done.
// Update the value of the experiments to be run and regenerate the header if
// necessary.
@@ -191,7 +191,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,
+ int request_load_flags);
// Regenerates the |header_value_| string which is concatenated to the
// Chrome-proxy header.

Powered by Google App Engine
This is Rietveld 408576698