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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 792803007: Make Data Reduction Proxy a best effort proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated tests Created 5 years, 11 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
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 74b1727b2db70b30c3c53c715a5544f5a6245454..08870694f77241953261ff2eb5381b22f4d63a85 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -29,7 +29,6 @@
#include "chrome/browser/net/http_server_properties_manager_factory.h"
#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"
@@ -37,6 +36,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.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_network_delegate.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h"
@@ -140,8 +140,8 @@ void ProfileImplIOData::Handle::Init(
scoped_ptr<domain_reliability::DomainReliabilityMonitor>
domain_reliability_monitor,
const base::Callback<void(bool)>& data_reduction_proxy_unavailable,
- scoped_ptr<DataReductionProxyChromeConfigurator>
- data_reduction_proxy_chrome_configurator,
+ scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
+ data_reduction_proxy_configurator,
scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
data_reduction_proxy_params,
scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
@@ -182,8 +182,8 @@ void ProfileImplIOData::Handle::Init(
io_data_->set_data_reduction_proxy_unavailable_callback(
data_reduction_proxy_unavailable);
- io_data_->set_data_reduction_proxy_chrome_configurator(
- data_reduction_proxy_chrome_configurator.Pass());
+ io_data_->set_data_reduction_proxy_configurator(
+ data_reduction_proxy_configurator.Pass());
io_data_->set_data_reduction_proxy_params(data_reduction_proxy_params.Pass());
io_data_->set_data_reduction_proxy_statistics_prefs(
data_reduction_proxy_statistics_prefs.Pass());
@@ -486,8 +486,9 @@ void ProfileImplIOData::InitializeInternal(
data_reduction_proxy_params(),
data_reduction_proxy_auth_request_handler(),
base::Bind(
- &DataReductionProxyChromeConfigurator::GetProxyConfigOnIOThread,
- base::Unretained(data_reduction_proxy_chrome_configurator()))));
+ &data_reduction_proxy::DataReductionProxyConfigurator::
+ GetProxyConfigOnIOThread,
+ base::Unretained(data_reduction_proxy_configurator()))));
data_reduction_proxy_network_delegate->InitProxyConfigOverrider(
base::Bind(data_reduction_proxy::OnResolveProxyHandler));
data_reduction_proxy_network_delegate->InitStatisticsPrefsAndUMA(
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698