diff options
Diffstat (limited to 'extensions/renderer/messaging_bindings.h')
-rw-r--r-- | extensions/renderer/messaging_bindings.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/extensions/renderer/messaging_bindings.h b/extensions/renderer/messaging_bindings.h index 721b434..422dcae 100644 --- a/extensions/renderer/messaging_bindings.h +++ b/extensions/renderer/messaging_bindings.h @@ -9,6 +9,8 @@ #include "extensions/renderer/script_context_set.h" +struct ExtensionMsg_ExternalConnectionInfo; + namespace base { class DictionaryValue; } @@ -25,6 +27,7 @@ namespace extensions { class Dispatcher; struct Message; class ObjectBackedNativeHandler; +class ScriptContextSet; // Manually implements JavaScript bindings for extension messaging. // @@ -38,29 +41,27 @@ class MessagingBindings { ScriptContext* context); // Dispatches the onConnect content script messaging event to some contexts - // in |contexts|. If |restrict_to_render_view| is specified, only contexts in - // that render view will receive the message. - static void DispatchOnConnect(const ScriptContextSet::ContextSet& contexts, + // in |context_set|. If |restrict_to_render_view| is specified, only contexts + // in that render view will receive the message. + static void DispatchOnConnect(const ScriptContextSet& context_set, int target_port_id, const std::string& channel_name, const base::DictionaryValue& source_tab, - const std::string& source_extension_id, - const std::string& target_extension_id, - const GURL& source_url, + const ExtensionMsg_ExternalConnectionInfo& info, const std::string& tls_channel_id, content::RenderView* restrict_to_render_view); // Delivers a message sent using content script messaging to some of the // contexts in |bindings_context_set|. If |restrict_to_render_view| is // specified, only contexts in that render view will receive the message. - static void DeliverMessage(const ScriptContextSet::ContextSet& context_set, + static void DeliverMessage(const ScriptContextSet& context_set, int target_port_id, const Message& message, content::RenderView* restrict_to_render_view); // Dispatches the onDisconnect event in response to the channel being closed. static void DispatchOnDisconnect( - const ScriptContextSet::ContextSet& context_set, + const ScriptContextSet& context_set, int port_id, const std::string& error_message, content::RenderView* restrict_to_render_view); |