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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h

Issue 1933653004: Reset the Lo-Fi main frame state when there is a new main frame request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check data_reduction_proxy_io_data_ Created 4 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 9506f03d24d9644dd9650829ba87a963b5c47295..89bbb253199f94c2230eb3112f1d2ce4e82b7d6c 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
@@ -80,10 +80,8 @@ class DataReductionProxyRequestOptions {
void Init();
// Adds a 'Chrome-Proxy' header to |request_headers| with the data reduction
- // proxy authentication credentials. Only adds this header if the
- // provided |proxy_server| is a data reduction proxy.
- void MaybeAddRequestHeader(const net::ProxyServer& proxy_server,
- net::HttpRequestHeaders* request_headers);
+ // proxy authentication credentials.
+ void AddRequestHeader(net::HttpRequestHeaders* request_headers);
// Stores the supplied key and sets up credentials suitable for authenticating
// with the data reduction proxy.
@@ -108,8 +106,6 @@ class DataReductionProxyRequestOptions {
const net::HttpRequestHeaders& request_headers) const;
protected:
- void SetHeader(net::HttpRequestHeaders* headers);
-
// 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
// the data reduction proxy feature isn't available.

Powered by Google App Engine
This is Rietveld 408576698