Index: base/prefs/public/pref_change_registrar.h |
diff --git a/base/prefs/public/pref_change_registrar.h b/base/prefs/public/pref_change_registrar.h |
index a7e1eab4fd5d1a303ce7469a0a6f4a53e5908187..f3abd9869191056aedecb8a731f499c94414f521 100644 |
--- a/base/prefs/public/pref_change_registrar.h |
+++ b/base/prefs/public/pref_change_registrar.h |
@@ -11,12 +11,9 @@ |
#include "base/basictypes.h" |
#include "base/prefs/base_prefs_export.h" |
+class PrefObserver; |
class PrefServiceBase; |
-namespace content { |
-class NotificationObserver; |
-} |
- |
// Automatically manages the registration of one or more pref change observers |
// with a PrefStore. Functions much like NotificationRegistrar, but specifically |
// manages observers of preference changes. When the Registrar is destroyed, |
@@ -34,13 +31,11 @@ class BASE_PREFS_EXPORT PrefChangeRegistrar { |
// object. All registered observers will be automatically unregistered |
// when the registrar's destructor is called unless the observer has been |
// explicitly removed by a call to Remove beforehand. |
- void Add(const char* path, |
- content::NotificationObserver* obs); |
+ void Add(const char* path, PrefObserver* obs); |
// Removes a preference observer that has previously been added with a call to |
// Add. |
- void Remove(const char* path, |
- content::NotificationObserver* obs); |
+ void Remove(const char* path, PrefObserver* obs); |
// Removes all observers that have been previously added with a call to Add. |
void RemoveAll(); |
@@ -55,8 +50,7 @@ class BASE_PREFS_EXPORT PrefChangeRegistrar { |
bool IsManaged(); |
private: |
- typedef std::pair<std::string, content::NotificationObserver*> |
- ObserverRegistration; |
+ typedef std::pair<std::string, PrefObserver*> ObserverRegistration; |
std::set<ObserverRegistration> observers_; |
PrefServiceBase* service_; |