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

Unified Diff: chrome/browser/net/chrome_network_delegate.h

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: errata Created 6 years, 6 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
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.h
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index 4aee0277e5fa9112b223ef41355f40cdab6d41ba..976e1bbbb5256eb10bef925dd50b8279cb3178d1 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -35,6 +35,7 @@ class Predictor;
}
namespace data_reduction_proxy {
+class DataReductionProxyAuthRequestHandler;
class DataReductionProxyParams;
class DataReductionProxyUsageStats;
}
@@ -49,6 +50,7 @@ class InfoMap;
}
namespace net {
+class ProxyInfo;
class URLRequest;
}
@@ -133,6 +135,13 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_usage_stats_ = usage_stats;
}
+ // |data_reduction_proxy_auth_request_handler_| must outlive this
+ // ChromeNetworkDelegate.
+ void set_data_reduction_proxy_auth_request_handler(
+ data_reduction_proxy::DataReductionProxyAuthRequestHandler* handler) {
+ data_reduction_proxy_auth_request_handler_ = handler;
+ }
+
// Adds the Client Hints header to HTTP requests.
void SetEnableClientHints();
@@ -172,6 +181,10 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
virtual int OnBeforeSendHeaders(net::URLRequest* request,
const net::CompletionCallback& callback,
net::HttpRequestHeaders* headers) OVERRIDE;
+ virtual void OnBeforeSendProxyHeaders(
+ net::URLRequest* request,
+ const net::ProxyInfo& proxy_info,
+ net::HttpRequestHeaders* headers) OVERRIDE;
virtual void OnSendHeaders(net::URLRequest* request,
const net::HttpRequestHeaders& headers) OVERRIDE;
virtual int OnHeadersReceived(
@@ -264,6 +277,8 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
// ChromeNetworkDelegate.
data_reduction_proxy::DataReductionProxyUsageStats*
data_reduction_proxy_usage_stats_;
+ data_reduction_proxy::DataReductionProxyAuthRequestHandler*
+ data_reduction_proxy_auth_request_handler_;
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
};
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698