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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h

Issue 893003002: Data Reduction Proxy class ownership updates and Settings cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
index b679892786388bc5e0c0d160b4edac7ced4432b3..aa8864b6bca9cb46c56b498f730252ed50572025 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h
@@ -13,14 +13,15 @@
namespace net {
class NetLog;
+class URLRequestContextGetter;
class URLRequestInterceptor;
}
namespace data_reduction_proxy {
+class DataReductionProxyConfig;
class DataReductionProxyConfigurator;
class DataReductionProxyEventStore;
-class DataReductionProxyParams;
class DataReductionProxySettings;
class DataReductionProxyStatisticsPrefs;
class DataReductionProxyUsageStats;
@@ -45,6 +46,8 @@ class DataReductionProxyIOData {
virtual ~DataReductionProxyIOData();
+ void InitURLRequestContext(net::URLRequestContextGetter* context);
+
// Initializes preferences, including a preference to track whether the
// Data Reduction Proxy is enabled.
void InitOnUIThread(PrefService* pref_service);
@@ -73,6 +76,8 @@ class DataReductionProxyIOData {
// Returns true if the Data Reduction Proxy is enabled and false otherwise.
bool IsEnabled() const;
+ DataReductionProxyConfig* config() const { return config_.get(); }
bengr 2015/02/03 21:51:58 Put return on new line.
jeremyim 2015/02/04 01:31:21 Done.
+
DataReductionProxyConfigurator* configurator() const {
return configurator_.get();
}
@@ -103,7 +108,7 @@ class DataReductionProxyIOData {
Client client_;
// Parameters including DNS names and allowable configurations.
- scoped_ptr<DataReductionProxyParams> params_;
+ scoped_ptr<DataReductionProxyConfig> config_;
// Tracker of compression statistics to be displayed to the user.
scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs_;

Powered by Google App Engine
This is Rietveld 408576698