| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
|
| index 2fbc18d1577daa119cccd0a9131a6ef171b3a7b6..d7b6ccb1090538796f103f28d3757ba319b67bbc 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h
|
| @@ -43,14 +43,16 @@ class DataReductionProxyService
|
| : public base::NonThreadSafe,
|
| public DataReductionProxyEventStorageDelegate {
|
| public:
|
| - // The caller must ensure that |settings| and |request_context| remain alive
|
| - // for the lifetime of the |DataReductionProxyService| instance. This instance
|
| - // will take ownership of |compression_stats|.
|
| + // The caller must ensure that |settings|, |prefs|, |request_context|, and
|
| + // |io_task_runner| remain alive for the lifetime of the
|
| + // |DataReductionProxyService| instance. This instance will take ownership of
|
| + // |compression_stats|.
|
| // TODO(jeremyim): DataReductionProxyService should own
|
| // DataReductionProxySettings and not vice versa.
|
| DataReductionProxyService(
|
| scoped_ptr<DataReductionProxyCompressionStats> compression_stats,
|
| DataReductionProxySettings* settings,
|
| + PrefService* prefs,
|
| net::URLRequestContextGetter* request_context_getter,
|
| scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
|
|
|
| @@ -89,6 +91,9 @@ class DataReductionProxyService
|
| // Records whether the Data Reduction Proxy is unreachable or not.
|
| void SetUnreachable(bool unreachable);
|
|
|
| + // Stores an int64 value in |prefs_|.
|
| + void SetInt64Pref(const std::string& pref_path, int64 value);
|
| +
|
| // Bridge methods to safely call to the UI thread objects.
|
| // Virtual for testing.
|
| virtual void SetProxyPrefs(bool enabled,
|
| @@ -129,6 +134,9 @@ class DataReductionProxyService
|
|
|
| DataReductionProxySettings* settings_;
|
|
|
| + // A prefs service for storing data.
|
| + PrefService* prefs_;
|
| +
|
| // Used to post tasks to |io_data_|.
|
| scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
|
|
|
|
|