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

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

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Created 6 years, 4 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 3a6f529e12e4f66849261f4d216fa4e017164610..89e877d21a88bb91ca59eaa1eba5f584ec852510 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -27,7 +27,8 @@ namespace data_reduction_proxy {
class DataReductionProxyParams;
class DataReductionProxyUsageStats;
class DataReductionProxyAuthRequestHandler;
-}
+class DataReductionProxyDelayedPrefService;
+} // namespace data_reduction_proxy
bengr 2014/08/14 17:39:41 } // namespace...
megjablon 2014/08/26 19:28:40 Done.
#endif
namespace domain_reliability {
@@ -55,25 +56,28 @@ class ProfileImplIOData : public ProfileIOData {
// Init() must be called before ~Handle(). It records most of the
// parameters needed to construct a ChromeURLRequestContextGetter.
- void Init(const base::FilePath& cookie_path,
- const base::FilePath& channel_id_path,
- const base::FilePath& cache_path,
- int cache_max_size,
- const base::FilePath& media_cache_path,
- int media_cache_max_size,
- const base::FilePath& extensions_cookie_path,
- const base::FilePath& profile_path,
- const base::FilePath& infinite_cache_path,
- chrome_browser_net::Predictor* predictor,
- content::CookieStoreConfig::SessionCookieMode
- session_cookie_mode,
- quota::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::DataReductionProxyParams>
- data_reduction_proxy_params);
+ void Init(
+ const base::FilePath& cookie_path,
+ const base::FilePath& channel_id_path,
+ const base::FilePath& cache_path,
+ int cache_max_size,
+ const base::FilePath& media_cache_path,
+ int media_cache_max_size,
+ const base::FilePath& extensions_cookie_path,
+ const base::FilePath& profile_path,
+ const base::FilePath& infinite_cache_path,
+ chrome_browser_net::Predictor* predictor,
+ content::CookieStoreConfig::SessionCookieMode
+ session_cookie_mode,
+ quota::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::DataReductionProxyParams>
+ data_reduction_proxy_params,
+ scoped_ptr<data_reduction_proxy::DataReductionProxyDelayedPrefService>
+ data_reduction_proxy_delayed_pref_service);
// These Create*ContextGetter() functions are only exposed because the
// circular relationship between Profile, ProfileIOData::Handle, and the
@@ -251,6 +255,8 @@ class ProfileImplIOData : public ProfileIOData {
mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_;
mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
data_reduction_proxy_auth_request_handler_;
+ mutable scoped_ptr<data_reduction_proxy::DataReductionProxyDelayedPrefService>
+ data_reduction_proxy_delayed_pref_service_;
#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);

Powered by Google App Engine
This is Rietveld 408576698