Index: chrome/browser/profiles/profile_io_data.h |
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h |
index 690c6090712563fa8851549d5136cde33dc194de..44bdc0b74a06b77ce2913a6e31895277c271f811 100644 |
--- a/chrome/browser/profiles/profile_io_data.h |
+++ b/chrome/browser/profiles/profile_io_data.h |
@@ -22,6 +22,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/storage_partition_descriptor.h" |
#include "chrome/common/content_settings_types.h" |
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h" |
#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h" |
#include "content/public/browser/content_browser_client.h" |
#include "content/public/browser/resource_context.h" |
@@ -331,14 +332,15 @@ class ProfileIOData { |
void InitializeOnUIThread(Profile* profile); |
void ApplyProfileParamsToContext(ChromeURLRequestContext* context) const; |
-#if defined(OS_ANDROID) |
-#if defined(SPDY_PROXY_AUTH_ORIGIN) |
- void SetDataReductionProxyUsageStatsOnIOThread(IOThread* io_thread, |
- Profile* profile); |
- void SetDataReductionProxyUsageStatsOnUIThread(Profile* profile, |
+ // Setup data reduction proxy for given profile with params and usage_stats |
+ // from io thread globals. |
+ void SetupDataReductionProxyOnIOThread(IOThread* io_thread, |
+ Profile* profile); |
+ |
+ // Setup data reduction proxy for given profile, params, and usage_stats. |
+ void SetupDataReductionProxyOnUIThread(Profile* profile, |
+ data_reduction_proxy::DataReductionProxyParams* params, |
data_reduction_proxy::DataReductionProxyUsageStats* usage_stats); |
-#endif |
-#endif |
scoped_ptr<net::URLRequestJobFactory> SetUpJobFactoryDefaults( |
scoped_ptr<net::URLRequestJobFactoryImpl> job_factory, |
@@ -607,6 +609,9 @@ class ProfileIOData { |
const Profile::ProfileType profile_type_; |
+ scoped_ptr<data_reduction_proxy::DataReductionProxySettings> |
+ data_reduction_proxy_settings_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
}; |