diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:16:56 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:16:56 +0000 |
commit | bfd04a62ce610d7bb61dbb78811dccbed23589b7 (patch) | |
tree | 70bb228c0f00ba1c12c584efd569daccf96b4026 /chrome/common/notification_registrar.h | |
parent | a814d863440f0a154a7299f2d8b440f405c7700e (diff) | |
download | chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.zip chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.gz chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.bz2 |
Remove most header file dependencies on the notification type list. It is
really painful to add more types, since lots of headers include the
notification service to derive from the notification observer. This splits that
out, so much less of the project should end up including notification_types.h
---Paths modified but not in any changelist:
Review URL: http://codereview.chromium.org/19744
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9020 0039d316-1c4b-4281-b951-d872f2087c98
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 |