diff options
Diffstat (limited to 'chrome/common/notification_registrar.h')
-rw-r--r-- | chrome/common/notification_registrar.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/chrome/common/notification_registrar.h b/chrome/common/notification_registrar.h index 25e46b2..c79d732 100644 --- a/chrome/common/notification_registrar.h +++ b/chrome/common/notification_registrar.h @@ -8,7 +8,7 @@ #include <vector> #include "base/basictypes.h" -#include "chrome/common/notification_service.h" +#include "chrome/common/notification_observer.h" // Aids in registering for notifications and ensures that all registered // notifications are unregistered when the class is destroyed. @@ -36,17 +36,7 @@ class NotificationRegistrar { void RemoveAll(); private: - struct Record { - bool operator==(const Record& other) const { - return observer == other.observer && - type == other.type && - source == other.source; - } - - NotificationObserver* observer; - NotificationType type; - NotificationSource source; - }; + struct Record; // We keep registered notifications in a simple vector. This means we'll do // brute-force searches when removing them individually, but individual |