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

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

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: Created 6 years, 1 month 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: android_webview/browser/net/aw_network_delegate.cc
diff --git a/android_webview/browser/net/aw_network_delegate.cc b/android_webview/browser/net/aw_network_delegate.cc
index cfb597a286b4b48f7a40be0de6b67a16b5cf969e..00d4caed9bcc250370429b9a6631b77f8d2644db 100644
--- a/android_webview/browser/net/aw_network_delegate.cc
+++ b/android_webview/browser/net/aw_network_delegate.cc
@@ -6,9 +6,6 @@
#include "android_webview/browser/aw_cookie_access_policy.h"
#include "base/android/build_info.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h"
-#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "net/base/net_errors.h"
#include "net/base/completion_callback.h"
#include "net/proxy/proxy_info.h"
@@ -17,9 +14,7 @@
namespace android_webview {
-AwNetworkDelegate::AwNetworkDelegate()
- : data_reduction_proxy_params_(NULL),
- data_reduction_proxy_auth_request_handler_(NULL) {
+AwNetworkDelegate::AwNetworkDelegate() {
}
AwNetworkDelegate::~AwNetworkDelegate() {
@@ -44,16 +39,6 @@ int AwNetworkDelegate::OnBeforeSendHeaders(
return net::OK;
}
-void AwNetworkDelegate::OnBeforeSendProxyHeaders(
- net::URLRequest* request,
- const net::ProxyInfo& proxy_info,
- net::HttpRequestHeaders* headers) {
- if (data_reduction_proxy_auth_request_handler_) {
- data_reduction_proxy_auth_request_handler_->MaybeAddRequestHeader(
- request, proxy_info.proxy_server(), headers);
- }
-}
-
void AwNetworkDelegate::OnSendHeaders(net::URLRequest* request,
const net::HttpRequestHeaders& headers) {
}

Powered by Google App Engine
This is Rietveld 408576698