diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 14:59:32 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 14:59:32 +0000 |
commit | c6619189d9d7176f62754fce548cdcedf8831bcf (patch) | |
tree | bfec95efed25eadfa1bd3e4f09e9cda686e09cc0 /chrome/common | |
parent | c07e97c914b3defcbf02445a650f01aa57ec04aa (diff) | |
download | chromium_src-c6619189d9d7176f62754fce548cdcedf8831bcf.zip chromium_src-c6619189d9d7176f62754fce548cdcedf8831bcf.tar.gz chromium_src-c6619189d9d7176f62754fce548cdcedf8831bcf.tar.bz2 |
FormatErrorMessage() functions are now publicly available from ExtensionErrorUtils.
ExtensionTabsModule implements a bunch of error_messages.
Extension Calls now always deliver a response to the calling context and route error messages if any to the window.console.error log.
Review URL: http://codereview.chromium.org/113105
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages_internal.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 0cf0905..1966f9e 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -528,10 +528,12 @@ IPC_BEGIN_MESSAGES(View) // started. IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) - // The browser sends this message when an extension API has a response. - IPC_MESSAGE_ROUTED2(ViewMsg_ExtensionResponse, - int /* callback id */, - std::string /* response */) + // The browser sends this message in response to all extension api calls. + IPC_MESSAGE_ROUTED4(ViewMsg_ExtensionResponse, + int /* request_id */, + bool /* success */, + 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 @@ -1300,11 +1302,12 @@ IPC_BEGIN_MESSAGES(ViewHost) 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, + // request. The browser will always respond with a ViewMsg_ExtensionResponse. + IPC_MESSAGE_ROUTED4(ViewHostMsg_ExtensionRequest, std::string /* name */, std::string /* argument */, - int /* callback id */) + int /* callback id */, + bool /* has_callback */) // Notify the browser that this renderer added a listener to an event. IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionAddListener, |