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

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

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from willchan Created 6 years, 5 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 3f2917ff3c893af9a501a53bb8a14cc731faaf89..b1e9c5cce9e6f8a46cc30600887c1094c26ba384 100644
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -21,6 +21,14 @@ namespace content {
class CookieCryptoDelegate;
} // namespace content
+#if defined(SPDY_PROXY_AUTH_ORIGIN)
+namespace data_reduction_proxy {
+class DataReductionProxyParams;
+class DataReductionProxyUsageStats;
+class DataReductionProxyAuthRequestHandler;
+}
+#endif
+
namespace domain_reliability {
class DomainReliabilityMonitor;
} // namespace domain_reliability
@@ -60,7 +68,11 @@ class ProfileImplIOData : public ProfileIOData {
session_cookie_mode,
quota::SpecialStoragePolicy* special_storage_policy,
scoped_ptr<domain_reliability::DomainReliabilityMonitor>
- domain_reliability_monitor);
+ domain_reliability_monitor,
+ const base::Callback<void(bool)>&
+ data_reduction_proxy_unavailable,
+ scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
+ data_reduction_proxy_params);
// These Create*ContextGetter() functions are only exposed because the
// circular relationship between Profile, ProfileIOData::Handle, and the
@@ -230,6 +242,16 @@ class ProfileImplIOData : public ProfileIOData {
int app_cache_max_size_;
int app_media_cache_max_size_;
+#if defined(SPDY_PROXY_AUTH_ORIGIN)
+ mutable scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
+ data_reduction_proxy_params_;
+ mutable scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats>
+ data_reduction_proxy_usage_stats_;
+ mutable base::Callback<void(bool)> data_reduction_proxy_unavailable_callback_;
+ mutable scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
+ data_reduction_proxy_auth_request_handler_;
+#endif // defined(SPDY_PROXY_AUTH_ORIGIN)
+
DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
};

Powered by Google App Engine
This is Rietveld 408576698