diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 19:32:43 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 19:32:43 +0000 |
commit | dfcb62a173898e182e2f10ca635deb753977b9f8 (patch) | |
tree | 39d4ca8b82cfc9f39f1726d4b0ad061cb141c516 /chrome/common | |
parent | 851c567a756e96913098ac03d84fb9ea5761558d (diff) | |
download | chromium_src-dfcb62a173898e182e2f10ca635deb753977b9f8.zip chromium_src-dfcb62a173898e182e2f10ca635deb753977b9f8.tar.gz chromium_src-dfcb62a173898e182e2f10ca635deb753977b9f8.tar.bz2 |
Add a port disconnect event for when one side of an extension message port
goes away.
Combine the various ExtensionMessageService IPC message into a single "Invoke"
message.
BUG=12686
TEST=no
Review URL: http://codereview.chromium.org/126234
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages_internal.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 7de2db7..594d553 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -545,23 +545,11 @@ IPC_BEGIN_MESSAGES(View) std::string /* response */, std::string /* error */) - // Tell the extension process about a new channel that has been opened from a - // renderer. source_port_id identifies the port that the extension can - // respond to. tab_json is a JSON value for the tab that opened the - // connection, if any. - IPC_MESSAGE_CONTROL2(ViewMsg_ExtensionHandleConnect, - int /* source_port_id */, - std::string /* tab_json */) - - // Send a javascript message to a renderer from the given port. - IPC_MESSAGE_CONTROL2(ViewMsg_ExtensionHandleMessage, - std::string /* message */, - int /* source_port_id */) - - // Route a browser event to all extension renderers within this process. - IPC_MESSAGE_CONTROL2(ViewMsg_ExtensionHandleEvent, - std::string /* event_name */, - std::string /* event_data */) + // Call a javascript function in every registered context in this process. + // |args| is a list of primitive Value types that are passed to the function. + IPC_MESSAGE_CONTROL2(ViewMsg_ExtensionMessageInvoke, + std::string /* function_name */, + ListValue /* args */) // Tell the renderer process all known extension function names. IPC_MESSAGE_CONTROL1(ViewMsg_Extension_SetFunctionNames, |