summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 20:38:56 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 20:38:56 +0000
commit2933580fcac85dbd0ad6eb5ccb5fe88fef40a128 (patch)
treed79b615ee353f0f6e90668e00aae824894853f04 /chrome/common
parentcd7b299fd6053afcd625ce36f0e51f94c83b182c (diff)
downloadchromium_src-2933580fcac85dbd0ad6eb5ccb5fe88fef40a128.zip
chromium_src-2933580fcac85dbd0ad6eb5ccb5fe88fef40a128.tar.gz
chromium_src-2933580fcac85dbd0ad6eb5ccb5fe88fef40a128.tar.bz2
Add an optional channel name to the extension message connect event.
Also changed the way port IDs work internally to reduce confusion. Each end of the port has its own ID, not the ID of its opposite end. BUG=13706 TEST=no Review URL: http://codereview.chromium.org/155381 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/render_messages_internal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index ee3d154..31670ba 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1403,12 +1403,14 @@ IPC_BEGIN_MESSAGES(ViewHost)
IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
IPC::Message /* message */)
- // Get a port handle to a currently-running extension process for the
- // extension with the given ID. If no such extension is found, -1 is
- // returned. The handle can be used for sending messages to the extension.
- IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_OpenChannelToExtension,
+ // Open a channel to all listening contexts owned by the extension with
+ // the given ID. This always returns a valid port ID which can be used for
+ // sending messages. If an error occurred, the opener will be notified
+ // asynchronously.
+ IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_OpenChannelToExtension,
int /* routing_id */,
std::string /* extension_id */,
+ std::string /* channel_name */,
int /* port_id */)
// Get a port handle to the given tab's process. The handle can be used for