diff options
Diffstat (limited to 'chrome/browser/extensions/extension_io_event_router.h')
-rw-r--r-- | chrome/browser/extensions/extension_io_event_router.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_io_event_router.h b/chrome/browser/extensions/extension_io_event_router.h index eae207b..765b04d 100644 --- a/chrome/browser/extensions/extension_io_event_router.h +++ b/chrome/browser/extensions/extension_io_event_router.h @@ -10,6 +10,7 @@ #include "base/ref_counted.h" +class GURL; class Profile; // For now, this just forwards events from the IO thread to the @@ -29,11 +30,22 @@ class ExtensionIOEventRouter const std::string& event_name, const std::string& event_args) const; + // Same as above, except the event is sent to all extensions that have + // sufficient permissions. + void DispatchEventToRenderers(const std::string& event_name, + const std::string& event_args, + const GURL& event_url) const; + private: void DispatchEventOnUIThread(const std::string& extension_id, const std::string& event_name, const std::string& event_args) const; + void DispatchEventToRenderersOnUIThread( + const std::string& event_name, + const std::string& event_args, + const GURL& event_url) const; + Profile* profile_; DISALLOW_COPY_AND_ASSIGN(ExtensionIOEventRouter); |