| Index: chrome/browser/profiles/profile_impl_io_data.cc
|
| diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
|
| index ded76e9c9b7d0c5893bd50330837804adcacd97d..4a113135da6d0f6aeba7e65c568868688e16d267 100644
|
| --- a/chrome/browser/profiles/profile_impl_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc
|
| @@ -28,12 +28,17 @@
|
| #include "chrome/browser/net/predictor.h"
|
| #include "chrome/browser/net/quota_policy_channel_id_store.h"
|
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h"
|
| +#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/chrome_version_info.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/url_constants.h"
|
| +#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h"
|
| +#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h"
|
| +#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h"
|
| +#include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h"
|
| #include "components/domain_reliability/monitor.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/cookie_store_factory.h"
|
| @@ -52,14 +57,6 @@
|
| #include "net/url_request/url_request_job_factory_impl.h"
|
| #include "webkit/browser/quota/special_storage_policy.h"
|
|
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| -#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
|
| -#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h"
|
| -#include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.h"
|
| -#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h"
|
| -#include "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h"
|
| -#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
|
| -
|
| namespace {
|
|
|
| net::BackendType ChooseCacheBackendType() {
|
| @@ -88,9 +85,7 @@ net::BackendType ChooseCacheBackendType() {
|
| } // namespace
|
|
|
| using content::BrowserThread;
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| using data_reduction_proxy::DataReductionProxyParams;
|
| -#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
|
|
|
| ProfileImplIOData::Handle::Handle(Profile* profile)
|
| : io_data_(new ProfileImplIOData),
|
| @@ -175,14 +170,12 @@ void ProfileImplIOData::Handle::Init(
|
| if (io_data_->domain_reliability_monitor_)
|
| io_data_->domain_reliability_monitor_->MoveToNetworkThread();
|
|
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| io_data_->data_reduction_proxy_unavailable_callback_ =
|
| data_reduction_proxy_unavailable;
|
| io_data_->data_reduction_proxy_chrome_configurator_ =
|
| data_reduction_proxy_chrome_configurator.Pass();
|
| io_data_->data_reduction_proxy_params_ =
|
| data_reduction_proxy_params.Pass();
|
| -#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
|
| }
|
|
|
| content::ResourceContext*
|
| @@ -361,12 +354,10 @@ void ProfileImplIOData::Handle::LazyInitialize() const {
|
| io_data_->safe_browsing_enabled()->MoveToThread(
|
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
|
| #endif
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| io_data_->data_reduction_proxy_enabled()->Init(
|
| data_reduction_proxy::prefs::kDataReductionProxyEnabled, pref_service);
|
| io_data_->data_reduction_proxy_enabled()->MoveToThread(
|
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
|
| -#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
|
| io_data_->InitializeOnUIThread(profile_);
|
| }
|
|
|
| @@ -430,7 +421,6 @@ void ProfileImplIOData::InitializeInternal(
|
| IOThread* const io_thread = profile_params->io_thread;
|
| IOThread::Globals* const io_thread_globals = io_thread->globals();
|
|
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| data_reduction_proxy_auth_request_handler_.reset(
|
| new data_reduction_proxy::DataReductionProxyAuthRequestHandler(
|
| DataReductionProxyChromeSettings::GetClient(),
|
| @@ -444,7 +434,6 @@ void ProfileImplIOData::InitializeInternal(
|
| data_reduction_proxy_usage_stats_->set_unavailable_callback(
|
| data_reduction_proxy_unavailable_callback_);
|
|
|
| -
|
| network_delegate()->set_data_reduction_proxy_params(
|
| data_reduction_proxy_params_.get());
|
| network_delegate()->set_data_reduction_proxy_usage_stats(
|
| @@ -457,7 +446,6 @@ void ProfileImplIOData::InitializeInternal(
|
| base::Bind(
|
| &DataReductionProxyChromeConfigurator::GetProxyConfigOnIO,
|
| base::Unretained(data_reduction_proxy_chrome_configurator_.get())));
|
| -#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
|
|
|
| network_delegate()->set_predictor(predictor_.get());
|
|
|
|
|