summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_message_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_message_service.h')
-rw-r--r--chrome/browser/extensions/extension_message_service.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_message_service.h b/chrome/browser/extensions/extension_message_service.h
index 7d7540e..c205bb9 100644
--- a/chrome/browser/extensions/extension_message_service.h
+++ b/chrome/browser/extensions/extension_message_service.h
@@ -16,6 +16,7 @@
#include "chrome/browser/extensions/extension_devtools_manager.h"
#include "ipc/ipc_message.h"
+class GURL;
class MessageLoop;
class Profile;
class RenderProcessHost;
@@ -80,10 +81,13 @@ class ExtensionMessageService
// Sends a message from a renderer to the given port.
void PostMessageFromRenderer(int port_id, const std::string& message);
- // Send an event to every registered extension renderer.
+ // Send an event to every registered extension renderer. If
+ // |has_incognito_data| is true, the event is only sent to extension with the
+ // permission to access incognito data. If |event_url| is not empty, the
+ // event is only sent to extension with host permissions for this url.
virtual void DispatchEventToRenderers(
const std::string& event_name, const std::string& event_args,
- bool has_incognito_data);
+ 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