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

Side by Side Diff: content/common/browser_plugin/browser_plugin_messages.h

Issue 12440005: Use gpu::Mailbox in IPCs instead of std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "content/common/browser_plugin/browser_plugin_message_enums.h" 13 #include "content/common/browser_plugin/browser_plugin_message_enums.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/content_param_traits.h" 15 #include "content/common/content_param_traits.h"
16 #include "content/public/common/common_param_traits.h" 16 #include "content/public/common/common_param_traits.h"
17 #include "gpu/command_buffer/common/mailbox.h"
17 #include "ipc/ipc_channel_handle.h" 18 #include "ipc/ipc_channel_handle.h"
18 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h" 20 #include "ipc/ipc_message_utils.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
22 #include "ui/gfx/point.h" 23 #include "ui/gfx/point.h"
23 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
24 #include "ui/gfx/size.h" 25 #include "ui/gfx/size.h"
25 #include "webkit/glue/webcursor.h" 26 #include "webkit/glue/webcursor.h"
26 #include "webkit/glue/webdropdata.h" 27 #include "webkit/glue/webdropdata.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 int /* instance_id*/, 201 int /* instance_id*/,
201 std::string /* src */) 202 std::string /* src */)
202 203
203 // Acknowledge that we presented a HW buffer and provide a sync point 204 // Acknowledge that we presented a HW buffer and provide a sync point
204 // to specify the location in the command stream when the compositor 205 // to specify the location in the command stream when the compositor
205 // is no longer using it. 206 // is no longer using it.
206 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK, 207 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_BuffersSwappedACK,
207 int /* instance_id */, 208 int /* instance_id */,
208 int /* route_id */, 209 int /* route_id */,
209 int /* gpu_host_id */, 210 int /* gpu_host_id */,
210 std::string /* mailbox_name */, 211 gpu::Mailbox /* mailbox_name */,
211 uint32 /* sync_point */) 212 uint32 /* sync_point */)
212 213
213 // When a BrowserPlugin has been removed from the embedder's DOM, it informs 214 // When a BrowserPlugin has been removed from the embedder's DOM, it informs
214 // the browser process to cleanup the guest. 215 // the browser process to cleanup the guest.
215 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, 216 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed,
216 int /* instance_id */) 217 int /* instance_id */)
217 218
218 // Tells the guest it has been shown or hidden. 219 // Tells the guest it has been shown or hidden.
219 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, 220 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility,
220 int /* instance_id */, 221 int /* instance_id */,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 int /* instance_id */, 378 int /* instance_id */,
378 std::string /* name */) 379 std::string /* name */)
379 380
380 // Guest renders into an FBO with textures provided by the embedder. 381 // Guest renders into an FBO with textures provided by the embedder.
381 // When HW accelerated buffers are swapped in the guest, the message 382 // When HW accelerated buffers are swapped in the guest, the message
382 // is forwarded to the embedder to notify it of a new texture 383 // is forwarded to the embedder to notify it of a new texture
383 // available for compositing. 384 // available for compositing.
384 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_BuffersSwapped, 385 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_BuffersSwapped,
385 int /* instance_id */, 386 int /* instance_id */,
386 gfx::Size /* size */, 387 gfx::Size /* size */,
387 std::string /* mailbox_name */, 388 gpu::Mailbox /* mailbox_name */,
388 int /* route_id */, 389 int /* route_id */,
389 int /* gpu_host_id */) 390 int /* gpu_host_id */)
390 391
391 // When the guest requests permission, the browser process forwards this 392 // When the guest requests permission, the browser process forwards this
392 // request to the embeddder through this message. 393 // request to the embeddder through this message.
393 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, 394 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission,
394 int /* instance_id */, 395 int /* instance_id */,
395 BrowserPluginPermissionType /* permission_type */, 396 BrowserPluginPermissionType /* permission_type */,
396 int /* request_id */, 397 int /* request_id */,
397 DictionaryValue /* request_info */) 398 DictionaryValue /* request_info */)
398 399
399 // Forwards a PointerLock Unlock request to the BrowserPlugin. 400 // Forwards a PointerLock Unlock request to the BrowserPlugin.
400 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_UnlockMouse, int /* instance_id */) 401 IPC_MESSAGE_ROUTED1(BrowserPluginMsg_UnlockMouse, int /* instance_id */)
401 402
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698