Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(961)

Unified Diff: content/common/browser_plugin_messages.h

Issue 12207144: Apply merge from @fsamuel. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/browser_plugin_messages.h
===================================================================
--- content/common/browser_plugin_messages.h (revision 182101)
+++ content/common/browser_plugin_messages.h (working copy)
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/process.h"
+#include "base/shared_memory.h"
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/public/common/common_param_traits.h"
@@ -36,19 +37,13 @@
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
- // An identifier to the new buffer to use to transport damage to the embedder
- // renderer process.
- IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id)
-#if defined(OS_MACOSX)
- // On OSX, a handle to the new buffer is used to map the transport dib since
- // we don't let browser manage the dib.
- IPC_STRUCT_MEMBER(TransportDIB::Handle, damage_buffer_handle)
-#endif
-#if defined(OS_WIN)
- // The size of the damage buffer because this information is not available
- // on Windows.
- IPC_STRUCT_MEMBER(int, damage_buffer_size)
-#endif
+ // The sequence number used to uniquely identify the damage buffer for the
+ // current container size.
+ IPC_STRUCT_MEMBER(uint32, damage_buffer_sequence_id)
+ // The handle to use to map the damage buffer in the browser process.
+ IPC_STRUCT_MEMBER(base::SharedMemoryHandle, damage_buffer_handle)
+ // The size of the damage buffer.
+ IPC_STRUCT_MEMBER(size_t, damage_buffer_size)
// The new size of the guest view area.
IPC_STRUCT_MEMBER(gfx::Size, view_size)
// Indicates the scale factor of the embedder WebView.
@@ -87,13 +82,8 @@
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
- // The bitmap to be painted into the view at the locations specified by
- // update_rects.
-#if defined(OS_MACOSX)
- IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_identifier)
-#else
- IPC_STRUCT_MEMBER(TransportDIB::Handle, damage_buffer_identifier)
-#endif
+ // The sequence number of the damage buffer used by the browser process.
+ IPC_STRUCT_MEMBER(uint32, damage_buffer_sequence_id)
// The position and size of the bitmap.
IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
« no previous file with comments | « content/browser/browser_plugin/test_browser_plugin_guest.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698