From ae849ea693102dd66d5f01d9ad6799e0bde070d0 Mon Sep 17 00:00:00 2001 From: "kkania@chromium.org" Date: Wed, 20 Oct 2010 18:00:36 +0000 Subject: On Windows, create a new TransportDIB::Handle struct which includes the file mapping HANDLE and the source process ID. Duplicating the handle for the remote process is done in TransportDIB::Map, instead of in various #ifdefs scattered across the code. Also on windows, remove the struct for the TransportDIB::Id which contained both the sequence number and the HANDLE and replace it with just the sequence number. Fix ThumbnailGenerator by mapping the TransportDIB on Windows and adding a method to duplicate the file mapping handle before sending across the channel. Also, add a ScopedHandle and fix some handle leaks. BUG=none TEST=none Review URL: http://codereview.chromium.org/3834003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63232 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/common/render_messages_internal.h') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 75eacdf..70edb54 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1276,8 +1276,9 @@ IPC_BEGIN_MESSAGES(ViewHost) // Sent to create, update and destroy video layers. IPC_MESSAGE_ROUTED1(ViewHostMsg_CreateVideo, gfx::Size /* size */) - IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateVideo, - TransportDIB::Id /* bitmap */, + IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateVideo, + TransportDIB::Id /* bitmap_id */, + TransportDIB::Handle /* bitmap_handle */, gfx::Rect /* bitmap_rect */) IPC_MESSAGE_ROUTED0(ViewHostMsg_DestroyVideo) -- cgit v1.1