OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_PREF_NOTIFIER_H_ | 5 #ifndef CHROME_BROWSER_PREF_NOTIFIER_H_ |
6 #define CHROME_BROWSER_PREF_NOTIFIER_H_ | 6 #define CHROME_BROWSER_PREF_NOTIFIER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
13 #include "base/non_thread_safe.h" | 13 #include "base/non_thread_safe.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "chrome/common/notification_observer.h" |
15 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
16 | 17 |
17 class NotificationObserver; | 18 class NotificationObserver; |
18 class PrefService; | 19 class PrefService; |
19 class PrefValueStore; | 20 class PrefValueStore; |
20 class Value; | 21 class Value; |
21 | 22 |
22 // Registers observers for particular preferences and sends notifications when | 23 // Registers observers for particular preferences and sends notifications when |
23 // preference values or sources (i.e., which preference layer controls the | 24 // preference values or sources (i.e., which preference layer controls the |
24 // preference) change. | 25 // preference) change. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 103 |
103 // NotificationObserver methods: | 104 // NotificationObserver methods: |
104 virtual void Observe(NotificationType type, | 105 virtual void Observe(NotificationType type, |
105 const NotificationSource& source, | 106 const NotificationSource& source, |
106 const NotificationDetails& details); | 107 const NotificationDetails& details); |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(PrefNotifier); | 109 DISALLOW_COPY_AND_ASSIGN(PrefNotifier); |
109 }; | 110 }; |
110 | 111 |
111 #endif // CHROME_BROWSER_PREF_NOTIFIER_H_ | 112 #endif // CHROME_BROWSER_PREF_NOTIFIER_H_ |
OLD | NEW |