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

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

Issue 11093080: <webview>: First stab at implementing media permission request for guests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix file name in chrome_renderer.gypi 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
« no previous file with comments | « content/common/browser_plugin_message_enums.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
13 #include "content/common/browser_plugin_message_enums.h"
12 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
13 #include "content/common/content_param_traits.h" 15 #include "content/common/content_param_traits.h"
14 #include "content/public/common/common_param_traits.h" 16 #include "content/public/common/common_param_traits.h"
15 #include "ipc/ipc_channel_handle.h" 17 #include "ipc/ipc_channel_handle.h"
16 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
17 #include "ipc/ipc_message_utils.h" 19 #include "ipc/ipc_message_utils.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
20 #include "ui/gfx/point.h" 22 #include "ui/gfx/point.h"
21 #include "ui/gfx/rect.h" 23 #include "ui/gfx/rect.h"
22 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
23 #include "webkit/glue/webcursor.h" 25 #include "webkit/glue/webcursor.h"
24 #include "webkit/glue/webdropdata.h" 26 #include "webkit/glue/webdropdata.h"
25 27
26 #undef IPC_MESSAGE_EXPORT 28 #undef IPC_MESSAGE_EXPORT
27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
28 30
29 #define IPC_MESSAGE_START BrowserPluginMsgStart 31 #define IPC_MESSAGE_START BrowserPluginMsgStart
30 32
33
34 IPC_ENUM_TRAITS(BrowserPluginPermissionType)
31 IPC_ENUM_TRAITS(WebKit::WebDragStatus) 35 IPC_ENUM_TRAITS(WebKit::WebDragStatus)
32 36
33 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params) 37 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params)
34 IPC_STRUCT_MEMBER(bool, enable) 38 IPC_STRUCT_MEMBER(bool, enable)
35 IPC_STRUCT_MEMBER(gfx::Size, max_size) 39 IPC_STRUCT_MEMBER(gfx::Size, max_size)
36 IPC_STRUCT_MEMBER(gfx::Size, min_size) 40 IPC_STRUCT_MEMBER(gfx::Size, min_size)
37 IPC_STRUCT_END() 41 IPC_STRUCT_END()
38 42
39 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) 43 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
40 // The sequence number used to uniquely identify the damage buffer for the 44 // The sequence number used to uniquely identify the damage buffer for the
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, 233 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse,
230 int /* instance_id */, 234 int /* instance_id */,
231 int /* request_id */, 235 int /* request_id */,
232 gfx::Point /* position */) 236 gfx::Point /* position */)
233 237
234 // Sets the name of the guest window to the provided |name|. 238 // Sets the name of the guest window to the provided |name|.
235 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, 239 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName,
236 int /* instance_id */, 240 int /* instance_id */,
237 std::string /* name */) 241 std::string /* name */)
238 242
243 // Tells the guest that its request for an API permission has been allowed or
244 // denied.
245 // Note that |allow| = true does not readily mean that the guest will be granted
246 // permission, since a security check in the embedder might follow. For example
247 // for media access permission, the guest will be granted permission only if its
248 // embedder also has access.
249 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_RespondPermission,
250 int /* instance_id */,
251 BrowserPluginPermissionType /* permission_type */,
252 int /* request_id */,
253 bool /* allow */)
254
239 // ----------------------------------------------------------------------------- 255 // -----------------------------------------------------------------------------
240 // These messages are from the guest renderer to the browser process 256 // These messages are from the guest renderer to the browser process
241 257
242 // A embedder sends this message to the browser when it wants 258 // A embedder sends this message to the browser when it wants
243 // to resize a guest plugin container so that the guest is relaid out 259 // to resize a guest plugin container so that the guest is relaid out
244 // according to the new size. 260 // according to the new size.
245 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 261 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
246 int /* instance_id*/, 262 int /* instance_id*/,
247 BrowserPluginHostMsg_ResizeGuest_Params) 263 BrowserPluginHostMsg_ResizeGuest_Params)
248 264
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 // Guest renders into an FBO with textures provided by the embedder. 372 // Guest renders into an FBO with textures provided by the embedder.
357 // When HW accelerated buffers are swapped in the guest, the message 373 // When HW accelerated buffers are swapped in the guest, the message
358 // is forwarded to the embedder to notify it of a new texture 374 // is forwarded to the embedder to notify it of a new texture
359 // available for compositing. 375 // available for compositing.
360 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_BuffersSwapped, 376 IPC_MESSAGE_CONTROL5(BrowserPluginMsg_BuffersSwapped,
361 int /* instance_id */, 377 int /* instance_id */,
362 gfx::Size /* size */, 378 gfx::Size /* size */,
363 std::string /* mailbox_name */, 379 std::string /* mailbox_name */,
364 int /* route_id */, 380 int /* route_id */,
365 int /* gpu_host_id */) 381 int /* gpu_host_id */)
382
383 // When the guest requests permission, the browser process forwards this
384 // request to the embeddder through this message.
385 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission,
386 int /* instance_id */,
387 BrowserPluginPermissionType /* permission_type */,
388 int /* request_id */,
389 DictionaryValue /* request_info */)
OLDNEW
« no previous file with comments | « content/common/browser_plugin_message_enums.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698