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

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: 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 e821b7008b53b599f403ba173de9548ddbd540a3..1fe761975660b5268bfa31d8aa04d89b1d65876c 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,9 @@ 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);
// These Create*ContextGetter() functions are only exposed because the
// circular relationship between Profile, ProfileIOData::Handle, and the
@@ -230,6 +240,17 @@ class ProfileImplIOData : public ProfileIOData {
int app_cache_max_size_;
int app_media_cache_max_size_;
+#if defined(SPDY_PROXY_AUTH_ORIGIN)
willchan no longer on Chromium 2014/07/28 15:45:23 I need to think further about the right layering h
bengr 2014/07/28 20:29:04 ok. Let me know what you conclude...
+ 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