OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_
PREFS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_
PREFS_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_
PREFS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_STATISTICS_
PREFS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // |to_list|. | 80 // |to_list|. |
81 void TransferList(const base::ListValue& from_list, | 81 void TransferList(const base::ListValue& from_list, |
82 base::ListValue* to_list); | 82 base::ListValue* to_list); |
83 | 83 |
84 // Gets an int64, stored as a string, in a ListPref at the specified | 84 // Gets an int64, stored as a string, in a ListPref at the specified |
85 // index. | 85 // index. |
86 int64 GetListPrefInt64Value(const base::ListValue& list_update, size_t index); | 86 int64 GetListPrefInt64Value(const base::ListValue& list_update, size_t index); |
87 | 87 |
88 PrefService* pref_service_; | 88 PrefService* pref_service_; |
89 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 89 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
90 base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_; | |
91 const base::TimeDelta delay_; | 90 const base::TimeDelta delay_; |
92 bool delayed_task_posted_; | 91 bool delayed_task_posted_; |
93 DataReductionProxyPrefMap pref_map_; | 92 DataReductionProxyPrefMap pref_map_; |
94 DataReductionProxyListPrefMap list_pref_map_; | 93 DataReductionProxyListPrefMap list_pref_map_; |
| 94 base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs); | 96 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace data_reduction_proxy | 99 } // namespace data_reduction_proxy |
100 | 100 |
101 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_STATISTI
CS_PREFS_H_ | 101 #endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_STATISTI
CS_PREFS_H_ |
OLD | NEW |