Chromium Code Reviews| Index: chrome/browser/extensions/event_router.h |
| diff --git a/chrome/browser/extensions/event_router.h b/chrome/browser/extensions/event_router.h |
| index 9df75ea05a77b19e9bd58743ce7177d2aeef4a87..1c480e5a82848ec30a4d7ad6f5c8666a401bc0e3 100644 |
| --- a/chrome/browser/extensions/event_router.h |
| +++ b/chrome/browser/extensions/event_router.h |
| @@ -31,6 +31,7 @@ class RenderProcessHost; |
| } |
| namespace extensions { |
| +class ActivityLog; |
| class Extension; |
| class ExtensionHost; |
| class ExtensionPrefs; |
| @@ -62,6 +63,7 @@ class EventRouter : public content::NotificationObserver, |
| // Sends an event via ipc_sender to the given extension. Can be called on any |
| // thread. |
| static void DispatchEvent(IPC::Sender* ipc_sender, |
| + Profile* profile, |
| const std::string& extension_id, |
| const std::string& event_name, |
| scoped_ptr<base::ListValue> event_args, |
| @@ -149,9 +151,17 @@ class EventRouter : public content::NotificationObserver, |
| typedef std::pair<const content::BrowserContext*, std::string> |
| EventDispatchIdentifier; |
| + // Records an event notification in the extension activity log. Can be |
| + // called from any thread. |
| + static void LogExtensionEventMessage(Profile* profile, |
| + const std::string& extension_id, |
| + const std::string& event_name, |
| + scoped_ptr<ListValue> event_args); |
| + |
| // TODO(gdk): Document this. |
| static void DispatchExtensionMessage( |
| IPC::Sender* ipc_sender, |
| + Profile* profile, |
| const std::string& extension_id, |
| const std::string& event_name, |
| base::ListValue* event_args, |
| @@ -226,6 +236,8 @@ class EventRouter : public content::NotificationObserver, |
| typedef base::hash_map<std::string, Observer*> ObserverMap; |
| ObserverMap observers_; |
| + ActivityLog* activity_logger_; |
|
Eric Dingle
2013/01/24 16:16:34
For consistency, this should be named activity_log
mvrable
2013/01/24 18:12:31
Done.
|
| + |
| // True if we should dispatch the event signalling that Chrome was updated |
| // upon loading an extension. |
| bool dispatch_chrome_updated_event_; |