| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
|
| index 28712eed7ae74536dcde8dc722db209253c87552..7da1858ef63517d71f4d1cfea652e00714d19c8a 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h
|
| @@ -6,10 +6,8 @@
|
| #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_NETWORK_DELEGATE_H_
|
|
|
| #include "base/basictypes.h"
|
| -#include "base/gtest_prod_util.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/memory/weak_ptr.h"
|
| #include "base/values.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
|
| #include "net/base/layered_network_delegate.h"
|
| @@ -70,7 +68,7 @@
|
| // report UMA.
|
| void InitStatisticsPrefsAndUMA(
|
| scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
|
| - const base::WeakPtr<DataReductionProxyStatisticsPrefs>& statistics_prefs,
|
| + DataReductionProxyStatisticsPrefs* statistics_prefs,
|
| BooleanPrefMember* data_reduction_proxy_enabled,
|
| DataReductionProxyUsageStats* usage_stats);
|
|
|
| @@ -85,8 +83,6 @@
|
| base::Value* SessionNetworkStatsInfoToValue() const;
|
|
|
| private:
|
| - FRIEND_TEST_ALL_PREFIXES(DataReductionProxyNetworkDelegateTest, TotalLengths);
|
| -
|
| // Called as the proxy is being resolved for |url|. Allows the delegate to
|
| // override the proxy resolution decision made by ProxyService. The delegate
|
| // may override the decision by modifying the ProxyInfo |result|.
|
| @@ -123,13 +119,6 @@
|
| int64 original_content_length,
|
| DataReductionProxyRequestType request_type);
|
|
|
| - // Records daily data savings statistics to prefs and reports data savings
|
| - // UMA.
|
| - void UpdateContentLengthPrefs(int received_content_length,
|
| - int original_content_length,
|
| - bool data_reduction_proxy_enabled,
|
| - DataReductionProxyRequestType request_type);
|
| -
|
| scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
|
|
|
| // Total size of all content (excluding headers) that has been received
|
| @@ -151,8 +140,7 @@
|
| DataReductionProxyAuthRequestHandler*
|
| data_reduction_proxy_auth_request_handler_;
|
|
|
| - base::WeakPtr<DataReductionProxyStatisticsPrefs>
|
| - data_reduction_proxy_statistics_prefs_;
|
| + DataReductionProxyStatisticsPrefs* data_reduction_proxy_statistics_prefs_;
|
|
|
| const DataReductionProxyConfigurator* configurator_;
|
|
|
|
|