diff options
Diffstat (limited to 'chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h')
-rw-r--r-- | chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h b/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h index ea4bcb767e4..b329f5f1cb3 100644 --- a/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h +++ b/chromium/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h @@ -17,7 +17,6 @@ #include "base/threading/thread_checker.h" #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h" #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_service_observer.h" -#include "components/data_reduction_proxy/core/common/data_savings_recorder.h" #include "components/prefs/pref_member.h" #include "url/gurl.h" @@ -73,20 +72,14 @@ enum DataReductionSettingsEnabledAction { // Central point for configuring the data reduction proxy. // This object lives on the UI thread and all of its methods are expected to // be called from there. -class DataReductionProxySettings : public DataReductionProxyServiceObserver, - public DataSavingsRecorder { +class DataReductionProxySettings : public DataReductionProxyServiceObserver { public: - typedef base::Callback<bool(const std::string&, const std::string&)> - SyntheticFieldTrialRegistrationCallback; + using SyntheticFieldTrialRegistrationCallback = + base::Callback<bool(base::StringPiece, base::StringPiece)>; DataReductionProxySettings(); virtual ~DataReductionProxySettings(); - // DataSavingsRecorder implementation: - bool UpdateDataSavings(const std::string& data_usage_host, - int64_t data_used, - int64_t original_size) override; - // Initializes the Data Reduction Proxy with the name of the preference that // controls enabling it, profile prefs and a |DataReductionProxyIOData|. The // caller must ensure that all parameters remain alive for the lifetime of @@ -97,8 +90,6 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver, DataReductionProxyIOData* io_data, std::unique_ptr<DataReductionProxyService> data_reduction_proxy_service); - base::WeakPtr<DataReductionProxyCompressionStats> compression_stats(); - // Sets the |register_synthetic_field_trial_| callback and runs to register // the DataReductionProxyEnabled and the DataReductionProxyLoFiEnabled // synthetic field trial. @@ -146,6 +137,9 @@ class DataReductionProxySettings : public DataReductionProxyServiceObserver, // daily original and received content lengths. int64_t GetDataReductionLastUpdateTime(); + // Clears all data saving statistics. + void ClearDataSavingStatistics(); + // Returns the difference between the total original size of all HTTP content // received from the network and the actual size of the HTTP content received. int64_t GetTotalHttpContentLengthSaved(); |