Index: chrome/browser/extensions/extension_message_service.h |
diff --git a/chrome/browser/extensions/extension_message_service.h b/chrome/browser/extensions/extension_message_service.h |
index bf499482f8d7f6a63020e21d8ea871887d17558b..fa8978660e0f7bbdfa8d72a5fd7ea94d540f1069 100644 |
--- a/chrome/browser/extensions/extension_message_service.h |
+++ b/chrome/browser/extensions/extension_message_service.h |
@@ -62,6 +62,10 @@ class ExtensionMessageService |
struct MessageChannel; |
struct MessagePort; |
+ // Returns the event name for an event that is extension-specific. |
+ static std::string GetPerExtensionEventName(const std::string& event_name, |
+ const std::string& extension_id); |
+ |
// --- UI thread only: |
explicit ExtensionMessageService(Profile* profile); |
@@ -92,6 +96,13 @@ class ExtensionMessageService |
const std::string& event_name, const std::string& event_args, |
bool has_incognito_data, const GURL& event_url); |
+ // Same as above, except use the extension-specific naming scheme for the |
+ // event. This is used by events that are per-extension. |
+ void DispatchEventToExtension( |
+ const std::string& extension_id, |
+ const std::string& event_name, const std::string& event_args, |
+ bool has_incognito_data, const GURL& event_url); |
+ |
// Given an extension ID, opens a channel between the given |
// automation "port" or DevTools service and that extension. the |
// channel will be open to the extension process hosting the |