OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 BASE_PREFS_PREF_NOTIFIER_IMPL_H_ | 5 #ifndef BASE_PREFS_PREF_NOTIFIER_IMPL_H_ |
6 #define BASE_PREFS_PREF_NOTIFIER_IMPL_H_ | 6 #define BASE_PREFS_PREF_NOTIFIER_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 14 #include "base/macros.h" |
14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
15 #include "base/prefs/base_prefs_export.h" | 16 #include "base/prefs/base_prefs_export.h" |
16 #include "base/prefs/pref_notifier.h" | 17 #include "base/prefs/pref_notifier.h" |
17 #include "base/prefs/pref_observer.h" | 18 #include "base/prefs/pref_observer.h" |
18 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
19 | 20 |
20 class PrefService; | 21 class PrefService; |
21 | 22 |
22 // The PrefNotifier implementation used by the PrefService. | 23 // The PrefNotifier implementation used by the PrefService. |
23 class BASE_PREFS_EXPORT PrefNotifierImpl | 24 class BASE_PREFS_EXPORT PrefNotifierImpl |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 65 |
65 PrefObserverMap pref_observers_; | 66 PrefObserverMap pref_observers_; |
66 PrefInitObserverList init_observers_; | 67 PrefInitObserverList init_observers_; |
67 | 68 |
68 base::ThreadChecker thread_checker_; | 69 base::ThreadChecker thread_checker_; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl); | 71 DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl); |
71 }; | 72 }; |
72 | 73 |
73 #endif // BASE_PREFS_PREF_NOTIFIER_IMPL_H_ | 74 #endif // BASE_PREFS_PREF_NOTIFIER_IMPL_H_ |
OLD | NEW |