Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3364)

Unified Diff: chrome/common/notification_registrar.h

Issue 449044: Adding instrument to NotificationRegistrar to check... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_thread.cc ('k') | chrome/common/notification_registrar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/notification_registrar.h
===================================================================
--- chrome/common/notification_registrar.h (revision 33330)
+++ chrome/common/notification_registrar.h (working copy)
@@ -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 @@
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 @@
// Lists all notifications we're currently registered for.
RecordVector registered_;
+ // The thread creating this object.
+ ChromeThread::ID thread_id_;
+
DISALLOW_COPY_AND_ASSIGN(NotificationRegistrar);
};
« no previous file with comments | « chrome/browser/chrome_thread.cc ('k') | chrome/common/notification_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698