| Index: components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
|
| diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
|
| index a4938139ac76cceee57d898b5a26e1970cc70c64..f974b66590c8595087f40682d142e6128f840737 100644
|
| --- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
|
| +++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings.h
|
| @@ -16,7 +16,6 @@
|
| #include "base/threading/thread_checker.h"
|
| #include "components/data_reduction_proxy/browser/data_reduction_proxy_configurator.h"
|
| #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
|
| -#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h"
|
| #include "net/base/net_util.h"
|
| #include "net/base/network_change_notifier.h"
|
| #include "net/url_request/url_fetcher_delegate.h"
|
| @@ -98,10 +97,6 @@ class DataReductionProxySettings
|
| return params_.get();
|
| }
|
|
|
| - DataReductionProxyUsageStats* usage_stats() const {
|
| - return usage_stats_;
|
| - }
|
| -
|
| // Initializes the data reduction proxy with profile and local state prefs,
|
| // and a |UrlRequestContextGetter| for canary probes. The caller must ensure
|
| // that all parameters remain alive for the lifetime of the
|
| @@ -165,15 +160,14 @@ class DataReductionProxySettings
|
| int64* received_content_length,
|
| int64* last_update_time);
|
|
|
| + // Records that the data reduction proxy is unreachable or not.
|
| + void SetUnreachable(bool unreachable);
|
| +
|
| // Returns whether the data reduction proxy is unreachable. Returns true
|
| // if no request has successfully completed through proxy, even though atleast
|
| // some of them should have.
|
| bool IsDataReductionProxyUnreachable();
|
|
|
| - // Set the data reduction proxy usage stats.
|
| - void SetDataReductionProxyUsageStats(
|
| - DataReductionProxyUsageStats* usage_stats);
|
| -
|
| // Returns an vector containing the aggregate received HTTP content in the
|
| // last |kNumDaysInHistory| days.
|
| ContentLengthList GetDailyReceivedContentLengths();
|
| @@ -304,6 +298,7 @@ class DataReductionProxySettings
|
| bool restricted_by_carrier_;
|
| bool enabled_by_user_;
|
| bool disabled_on_vpn_;
|
| + bool unreachable_;
|
|
|
| scoped_ptr<net::URLFetcher> fetcher_;
|
| scoped_ptr<net::URLFetcher> warmup_fetcher_;
|
| @@ -323,7 +318,6 @@ class DataReductionProxySettings
|
| base::ThreadChecker thread_checker_;
|
|
|
| scoped_ptr<DataReductionProxyParams> params_;
|
| - DataReductionProxyUsageStats* usage_stats_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings);
|
| };
|
|
|