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

Unified Diff: android_webview/browser/net/aw_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 | « android_webview/browser/aw_login_delegate.cc ('k') | android_webview/browser/net/aw_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/aw_network_delegate.h
diff --git a/android_webview/browser/net/aw_network_delegate.h b/android_webview/browser/net/aw_network_delegate.h
index b325e84a15d1d5a8cde1fdcf3278dc2a6e29a325..8771bbced15b5bee2573e078898b0c182e24ec62 100644
--- a/android_webview/browser/net/aw_network_delegate.h
+++ b/android_webview/browser/net/aw_network_delegate.h
@@ -6,9 +6,18 @@
#define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_
#include "base/basictypes.h"
-#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
#include "net/base/network_delegate.h"
+namespace data_reduction_proxy {
+class DataReductionProxyAuthRequestHandler;
+class DataReductionProxyParams;
+}
+
+namespace net {
+class ProxyInfo;
+class URLRequest;
+}
+
namespace android_webview {
// WebView's implementation of the NetworkDelegate.
@@ -25,6 +34,11 @@ class AwNetworkDelegate : public net::NetworkDelegate {
data_reduction_proxy_params_ = params;
}
+ void set_data_reduction_proxy_auth_request_handler(
+ data_reduction_proxy::DataReductionProxyAuthRequestHandler* handler) {
+ data_reduction_proxy_auth_request_handler_ = handler;
+ }
+
private:
// NetworkDelegate implementation.
virtual int OnBeforeURLRequest(net::URLRequest* request,
@@ -33,6 +47,10 @@ class AwNetworkDelegate : 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(
@@ -70,6 +88,8 @@ class AwNetworkDelegate : public net::NetworkDelegate {
// Data reduction proxy parameters object. Must outlive this.
data_reduction_proxy::DataReductionProxyParams* data_reduction_proxy_params_;
+ data_reduction_proxy::DataReductionProxyAuthRequestHandler*
+ data_reduction_proxy_auth_request_handler_;
DISALLOW_COPY_AND_ASSIGN(AwNetworkDelegate);
};
« no previous file with comments | « android_webview/browser/aw_login_delegate.cc ('k') | android_webview/browser/net/aw_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698