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

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

Issue 881893004: Hook SetKeyOnIO in Webview to DataReductionProxyIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: android_webview/browser/net/aw_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index e0f9013d4e4c0149fbbdb15d834ac044d8ab707b..0d647e8f128f2b55f2f157e23961c64e2de2356b 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -19,11 +19,8 @@
#include "base/threading/sequenced_worker_pool.h"
#include "base/threading/worker_pool.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_configurator.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/cookie_store_factory.h"
@@ -47,7 +44,6 @@
#include "net/url_request/url_request_interceptor.h"
using content::BrowserThread;
-using data_reduction_proxy::DataReductionProxySettings;
namespace android_webview {
@@ -271,18 +267,14 @@ void AwURLRequestContextGetter::SetHandlersAndInterceptors(
request_interceptors_.swap(request_interceptors);
}
-data_reduction_proxy::DataReductionProxyAuthRequestHandler*
-AwURLRequestContextGetter::GetDataReductionProxyAuthRequestHandler() const {
- return data_reduction_proxy_auth_request_handler_.get();
-}
-
net::NetLog* AwURLRequestContextGetter::GetNetLog() {
return net_log_.get();
}
void AwURLRequestContextGetter::SetKeyOnIO(const std::string& key) {
- DCHECK(data_reduction_proxy_auth_request_handler_);
- data_reduction_proxy_auth_request_handler_->InitAuthentication(key);
+ DCHECK(AwBrowserContext::GetDefault()->GetDataReductionProxyIOData());
+ AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()->
+ auth_request_handler()->InitAuthentication(key);
}
} // namespace android_webview
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.h ('k') | android_webview/native/aw_contents_statics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698