summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_message_service.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-09 18:13:27 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-09 18:13:27 +0000
commitea4d0790da2db4aae00e07af25feffd7e3857377 (patch)
tree44af49f6bd1432124069d2bba095ac49f9fc2af3 /chrome/browser/extensions/extension_message_service.h
parent76624fdeda4c8409a6bfd8a5f48de00dbceb0760 (diff)
downloadchromium_src-ea4d0790da2db4aae00e07af25feffd7e3857377.zip
chromium_src-ea4d0790da2db4aae00e07af25feffd7e3857377.tar.gz
chromium_src-ea4d0790da2db4aae00e07af25feffd7e3857377.tar.bz2
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
Diffstat (limited to 'chrome/browser/extensions/extension_message_service.h')
-rw-r--r--chrome/browser/extensions/extension_message_service.h12
1 files changed, 9 insertions, 3 deletions
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,