From 1f70f0ca51d1c61d3a775507b2b69dcdf60e77df Mon Sep 17 00:00:00 2001 From: "mpcomplete@google.com" Date: Thu, 18 Jun 2009 22:56:58 +0000 Subject: Send port-closed notification when a frame with ports unloads. Also add onLoad and onUnload chrome Event to our bindings, so we can add listeners to these events without needing a DOM. These don't hook into the window "unload" event, so we no longer prevent Chrome's sudden termination of tabs on shutdown. BUG=12686 TEST=no Review URL: http://codereview.chromium.org/125280 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18765 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index bd3c059..e0ba76e 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1401,6 +1401,11 @@ IPC_BEGIN_MESSAGES(ViewHost) int /* port_id */, std::string /* message */) + // Send a message to an extension process. The handle is the value returned + // by ViewHostMsg_OpenChannelToExtension. + IPC_MESSAGE_CONTROL1(ViewHostMsg_ExtensionCloseChannel, + int /* port_id */) + // Message to show a popup menu using native cocoa controls (Mac only). IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, ViewHostMsg_ShowPopup_Params) -- cgit v1.1