diff options
Diffstat (limited to 'chrome/common/notification_registrar.cc')
-rw-r--r-- | chrome/common/notification_registrar.cc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/chrome/common/notification_registrar.cc b/chrome/common/notification_registrar.cc index aaa5b9e..b9ea3d7 100644 --- a/chrome/common/notification_registrar.cc +++ b/chrome/common/notification_registrar.cc @@ -2,9 +2,26 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "chrome/common/notification_registrar.h" + #include <algorithm> -#include "chrome/common/notification_registrar.h" +#include "base/logging.h" +#include "chrome/common/notification_service.h" + +struct NotificationRegistrar::Record { + bool operator==(const Record& other) const; + + NotificationObserver* observer; + NotificationType type; + NotificationSource source; +}; + +bool NotificationRegistrar::Record::operator==(const Record& other) const { + return observer == other.observer && + type == other.type && + source == other.source; +} NotificationRegistrar::NotificationRegistrar() { } |