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

Unified Diff: android_webview/browser/net/aw_network_delegate.h

Issue 734263003: Move data reduction proxy logic out of chrome and android webview network delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test fix Created 6 years 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 | « no previous file | 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 0cbdefa7dc4fa2478cb0290c2b9000e8273c66d4..c925db9924cdac8b95004d26d14a84ab5dd75a42 100644
--- a/android_webview/browser/net/aw_network_delegate.h
+++ b/android_webview/browser/net/aw_network_delegate.h
@@ -6,12 +6,7 @@
#define ANDROID_WEBVIEW_BROWSER_NET_AW_NETWORK_DELEGATE_H_
#include "base/basictypes.h"
-#include "net/base/network_delegate.h"
-
-namespace data_reduction_proxy {
-class DataReductionProxyAuthRequestHandler;
-class DataReductionProxyParams;
-}
+#include "net/base/network_delegate_impl.h"
namespace net {
class ProxyInfo;
@@ -21,24 +16,11 @@ class URLRequest;
namespace android_webview {
// WebView's implementation of the NetworkDelegate.
-class AwNetworkDelegate : public net::NetworkDelegate {
+class AwNetworkDelegate : public net::NetworkDelegateImpl {
public:
AwNetworkDelegate();
virtual ~AwNetworkDelegate();
- // Sets the |DataReductionProxySettings| object to use. If not set, the
- // NetworkDelegate will not perform any operations related to the data
- // reduction proxy.
- void set_data_reduction_proxy_params(
- data_reduction_proxy::DataReductionProxyParams* params) {
- 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,
@@ -47,10 +29,6 @@ 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(
@@ -83,11 +61,6 @@ class AwNetworkDelegate : public net::NetworkDelegate {
virtual bool OnCanThrottleRequest(
const net::URLRequest& request) const override;
- // 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 | « no previous file | android_webview/browser/net/aw_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698