| Index: components/cronet/android/cronet_data_reduction_proxy.cc
|
| diff --git a/components/cronet/android/cronet_data_reduction_proxy.cc b/components/cronet/android/cronet_data_reduction_proxy.cc
|
| index 360862fbea80d340c39229f209457b46cf076b1b..76321be5fc4bc959076e06735d75595525426ceb 100644
|
| --- a/components/cronet/android/cronet_data_reduction_proxy.cc
|
| +++ b/components/cronet/android/cronet_data_reduction_proxy.cc
|
| @@ -4,20 +4,21 @@
|
|
|
| #include "components/cronet/android/cronet_data_reduction_proxy.h"
|
|
|
| #include <utility>
|
|
|
| #include "base/command_line.h"
|
| #include "base/logging.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "components/cronet/android/cronet_in_memory_pref_store.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
|
| +#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.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_prefs.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
|
| #include "components/data_reduction_proxy/core/browser/data_store.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h"
|
| #include "components/prefs/pref_registry_simple.h"
|
| @@ -99,20 +100,24 @@ CronetDataReductionProxy::~CronetDataReductionProxy() {
|
| io_data_->ShutdownOnUIThread();
|
| }
|
|
|
| scoped_ptr<net::NetworkDelegate>
|
| CronetDataReductionProxy::CreateNetworkDelegate(
|
| scoped_ptr<net::NetworkDelegate> wrapped_network_delegate) {
|
| return io_data_->CreateNetworkDelegate(std::move(wrapped_network_delegate),
|
| false /* No bypass UMA */);
|
| }
|
|
|
| +scoped_ptr<net::ProxyDelegate> CronetDataReductionProxy::CreateProxyDelegate() {
|
| + return io_data_->CreateProxyDelegate();
|
| +}
|
| +
|
| scoped_ptr<net::URLRequestInterceptor>
|
| CronetDataReductionProxy::CreateInterceptor() {
|
| return io_data_->CreateInterceptor();
|
| }
|
|
|
| void CronetDataReductionProxy::Init(bool enable,
|
| net::URLRequestContext* context) {
|
| url_request_context_getter_ =
|
| new net::TrivialURLRequestContextGetter(
|
| context, task_runner_);
|
|
|