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

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

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@network-delegate
Patch Set: addressed mmenke, rebased 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
Index: chrome/browser/profiles/profile_impl_io_data.h
diff --git a/chrome/browser/profiles/profile_impl_io_data.h b/chrome/browser/profiles/profile_impl_io_data.h
index 8ea0f1a8c95b4ca3089e3746582a05e7f57c46e8..8839437a40b2ae2d0f7ac08efbf7bc0fb796e7b8 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -69,15 +69,8 @@ class ProfileImplIOData : public ProfileIOData {
storage::SpecialStoragePolicy* special_storage_policy,
scoped_ptr<domain_reliability::DomainReliabilityMonitor>
domain_reliability_monitor,
- const base::Callback<void(bool)>& data_reduction_proxy_unavailable,
- 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>
- data_reduction_proxy_statistics_prefs,
- scoped_ptr<data_reduction_proxy::DataReductionProxyEventStore>
- data_reduction_proxy_event_store);
+ scoped_ptr<data_reduction_proxy::DataReductionProxyIOData>
+ data_reduction_proxy_io_data);
// These Create*ContextGetter() functions are only exposed because the
// circular relationship between Profile, ProfileIOData::Handle, and the
@@ -157,8 +150,6 @@ class ProfileImplIOData : public ProfileIOData {
DISALLOW_COPY_AND_ASSIGN(Handle);
};
- bool IsDataReductionProxyEnabled() const override;
-
private:
friend class base::RefCountedThreadSafe<ProfileImplIOData>;
@@ -247,8 +238,6 @@ class ProfileImplIOData : public ProfileIOData {
mutable scoped_ptr<net::SdchManager> sdch_manager_;
mutable scoped_ptr<net::SdchOwner> sdch_policy_;
- mutable BooleanPrefMember data_reduction_proxy_enabled_;
-
// Parameters needed for isolated apps.
base::FilePath profile_path_;
int app_cache_max_size_;

Powered by Google App Engine
This is Rietveld 408576698