From ea4d0790da2db4aae00e07af25feffd7e3857377 Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Fri, 9 Oct 2009 18:13:27 +0000 Subject: Implement chrome.extension.connectExternal and fix various API inconsistencies. BUG=23583 BUG=17910 TEST=no Review URL: http://codereview.chromium.org/262016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28565 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_message_service.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '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 10c579f..eb66bb6 100644 --- a/chrome/browser/extensions/extension_message_service.h +++ b/chrome/browser/extensions/extension_message_service.h @@ -114,7 +114,9 @@ class ExtensionMessageService // an optional identifier for use by extension developers. // This runs on the IO thread so that it can be used in a synchronous IPC // message. - int OpenChannelToExtension(int routing_id, const std::string& extension_id, + int OpenChannelToExtension(int routing_id, + const std::string& source_extension_id, + const std::string& target_extension_id, const std::string& channel_name, ResourceMessageFilter* source); @@ -146,7 +148,9 @@ class ExtensionMessageService // opened. void OpenChannelToExtensionOnUIThread( int source_process_id, int source_routing_id, int receiver_port_id, - const std::string& extension_id, const std::string& channel_name); + const std::string& source_extension_id, + const std::string& target_extension_id, + const std::string& channel_name); void OpenChannelToTabOnUIThread( int source_process_id, int source_routing_id, int receiver_port_id, @@ -157,7 +161,9 @@ class ExtensionMessageService bool OpenChannelOnUIThreadImpl( IPC::Message::Sender* source, TabContents* source_contents, const MessagePort& receiver, int receiver_port_id, - const std::string& extension_id, const std::string& channel_name); + const std::string& source_extension_id, + const std::string& target_extension_id, + const std::string& channel_name); // NotificationObserver interface. void Observe(NotificationType type, -- cgit v1.1