diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 09:18:27 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 09:18:27 +0000 |
commit | 309d7a28aa6c938f60ac7a543ab4a73827d29562 (patch) | |
tree | a806e83ff1533242c190a736519dbd31d43fb1e6 /chrome/common | |
parent | cb2c560e5c5761329e614aeeaeb6ccb5dcfc1987 (diff) | |
download | chromium_src-309d7a28aa6c938f60ac7a543ab4a73827d29562.zip chromium_src-309d7a28aa6c938f60ac7a543ab4a73827d29562.tar.gz chromium_src-309d7a28aa6c938f60ac7a543ab4a73827d29562.tar.bz2 |
Add basic infrastructure for sending async browser API request and receiving results.
Review URL: http://codereview.chromium.org/42262
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages_internal.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 577bde2..150bdbe 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -512,8 +512,13 @@ IPC_BEGIN_MESSAGES(View) // 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. + // The browser sends this message when an extension API has a response. + IPC_MESSAGE_ROUTED2(ViewMsg_ExtensionResponse, + int /* callback id */, + std::string /* response */) + + // Relay a message sent from a renderer 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 */) @@ -1197,6 +1202,13 @@ IPC_BEGIN_MESSAGES(ViewHost) double /* left_channel */, double /* right_channel */) + // A renderer sends this message when an extension process starts an API + // request. If callback id is -1, no response will be sent. + IPC_MESSAGE_ROUTED3(ViewHostMsg_ExtensionRequest, + std::string /* name */, + std::string /* argument */, + int /* callback id */) + #if defined(OS_MACOSX) // On OSX, we cannot allocated shared memory from within the sandbox, so // this call exists for the renderer to ask the browser to allocate memory |