| 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 CHROME_BROWSER_PREFS_PREF_NOTIFIER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_NOTIFIER_IMPL_H_ |
| 6 #define CHROME_BROWSER_PREFS_PREF_NOTIFIER_IMPL_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_NOTIFIER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "base/prefs/pref_notifier.h" |
| 12 #include "base/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
| 13 #include "chrome/browser/prefs/pref_notifier.h" | |
| 14 | 14 |
| 15 class PrefService; | 15 class PrefService; |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class NotificationObserver; | 18 class NotificationObserver; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // The PrefNotifier implementation used by the PrefService. | 21 // The PrefNotifier implementation used by the PrefService. |
| 22 class PrefNotifierImpl : public PrefNotifier, | 22 class PrefNotifierImpl : public PrefNotifier, |
| 23 public base::NonThreadSafe { | 23 public base::NonThreadSafe { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 // Weak reference; the notifier is owned by the PrefService. | 55 // Weak reference; the notifier is owned by the PrefService. |
| 56 PrefService* pref_service_; | 56 PrefService* pref_service_; |
| 57 | 57 |
| 58 PrefObserverMap pref_observers_; | 58 PrefObserverMap pref_observers_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl); | 60 DISALLOW_COPY_AND_ASSIGN(PrefNotifierImpl); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_PREFS_PREF_NOTIFIER_IMPL_H_ | 63 #endif // CHROME_BROWSER_PREFS_PREF_NOTIFIER_IMPL_H_ |
| OLD | NEW |