diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 22:21:43 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 22:21:43 +0000 |
commit | 0aa477bd3cd906e880891fd2e9f4739a53270a7f (patch) | |
tree | f78ab46e2bd5aca2812755d3240fd8cf4e83c8f5 /chrome/common | |
parent | 1d437b64e1aaf11827962de62694bcb806265d00 (diff) | |
download | chromium_src-0aa477bd3cd906e880891fd2e9f4739a53270a7f.zip chromium_src-0aa477bd3cd906e880891fd2e9f4739a53270a7f.tar.gz chromium_src-0aa477bd3cd906e880891fd2e9f4739a53270a7f.tar.bz2 |
Initial rev at a message passing API for extensions. So far, only passing
messages to the extension process is supported.
Review URL: http://codereview.chromium.org/48090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages_internal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index bd13315..d9206d1 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -511,6 +511,12 @@ IPC_BEGIN_MESSAGES(View) // Notification that a move or resize renderer's containing window has // started. IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) + + // Send a message to an extension process. channel_id is a handle that can + // be used for sending a response. + IPC_MESSAGE_ROUTED2(ViewMsg_HandleExtensionMessage, + std::string /* message */, + int /* channel_id */) IPC_END_MESSAGES(View) @@ -1231,4 +1237,17 @@ IPC_BEGIN_MESSAGES(ViewHost) // Notification when new feeds have been discovered on the page. IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateFeedList, ViewHostMsg_UpdateFeedList_Params) + + // Get a 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_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, + std::string /* extension_id */, + int /* channel_id */) + + // Send a message to an extension process. The handle is the value returned + // by ViewHostMsg_OpenChannelToExtension. + IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, + int /* channel_id */, + std::string /* message */) IPC_END_MESSAGES(ViewHost) |