summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_event_router.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_event_router.h')
-rw-r--r--chrome/browser/extensions/extension_event_router.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_event_router.h b/chrome/browser/extensions/extension_event_router.h
index 4ebae0c..2e5597b 100644
--- a/chrome/browser/extensions/extension_event_router.h
+++ b/chrome/browser/extensions/extension_event_router.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
+#include "ipc/ipc_message.h"
class GURL;
class Extension;
@@ -22,11 +23,13 @@ class RenderProcessHost;
class ExtensionEventRouter : public NotificationObserver {
public:
- // Returns true if the given extension can see events and data from another
- // sub-profile (incognito to original profile, or vice versa).
- static bool CanCrossIncognito(Profile* profile,
- const std::string& extension_id);
- static bool CanCrossIncognito(Profile* profile, const Extension* extension);
+ // Sends an event via ipc_sender to the given extension. Can be called on
+ // any thread.
+ static void DispatchEvent(IPC::Message::Sender* ipc_sender,
+ const std::string& extension_id,
+ const std::string& event_name,
+ const std::string& event_args,
+ const GURL& event_url);
explicit ExtensionEventRouter(Profile* profile);
virtual ~ExtensionEventRouter();