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_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS
TICS_PREFS_H_ | 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS
TICS_PREFS_H_ |
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS
TICS_PREFS_H_ | 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STATIS
TICS_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Gets an int64, stored as a string, in a ListPref at the specified | 90 // Gets an int64, stored as a string, in a ListPref at the specified |
91 // index. | 91 // index. |
92 int64 GetListPrefInt64Value(const base::ListValue& list_update, size_t index); | 92 int64 GetListPrefInt64Value(const base::ListValue& list_update, size_t index); |
93 | 93 |
94 PrefService* pref_service_; | 94 PrefService* pref_service_; |
95 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 95 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
96 const base::TimeDelta delay_; | 96 const base::TimeDelta delay_; |
97 bool delayed_task_posted_; | 97 bool delayed_task_posted_; |
98 DataReductionProxyPrefMap pref_map_; | 98 DataReductionProxyPrefMap pref_map_; |
99 DataReductionProxyListPrefMap list_pref_map_; | 99 DataReductionProxyListPrefMap list_pref_map_; |
100 base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_; | |
101 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; | 100 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; |
102 base::ThreadChecker thread_checker_; | 101 base::ThreadChecker thread_checker_; |
103 | 102 |
| 103 base::WeakPtrFactory<DataReductionProxyStatisticsPrefs> weak_factory_; |
| 104 |
104 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs); | 105 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyStatisticsPrefs); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace data_reduction_proxy | 108 } // namespace data_reduction_proxy |
108 | 109 |
109 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STA
TISTICS_PREFS_H_ | 110 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_STA
TISTICS_PREFS_H_ |
OLD | NEW |