diff options
Diffstat (limited to 'chrome/common/notification_registrar.h')
-rw-r--r-- | chrome/common/notification_registrar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/notification_registrar.h b/chrome/common/notification_registrar.h index ef21ff2..7f6956a 100644 --- a/chrome/common/notification_registrar.h +++ b/chrome/common/notification_registrar.h @@ -8,6 +8,7 @@ #include <vector> #include "base/basictypes.h" +#include "chrome/browser/chrome_thread.h" #include "chrome/common/notification_observer.h" // Aids in registering for notifications and ensures that all registered @@ -39,6 +40,8 @@ class NotificationRegistrar { bool IsEmpty() const; private: + void CheckCalledOnValidWellKnownThread(); + struct Record; // We keep registered notifications in a simple vector. This means we'll do @@ -50,6 +53,9 @@ class NotificationRegistrar { // Lists all notifications we're currently registered for. RecordVector registered_; + // The thread creating this object. + ChromeThread::ID thread_id_; + DISALLOW_COPY_AND_ASSIGN(NotificationRegistrar); }; |