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

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: Implement first allow/deny wins, still requires preventDefault impl + now tests pass. 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 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"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // plugin instace id and the coordinates (local to the plugin). 227 // plugin instace id and the coordinates (local to the plugin).
228 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse, 228 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse,
229 int /* instance_id */, 229 int /* instance_id */,
230 int /* request_id */, 230 int /* request_id */,
231 gfx::Point /* position */) 231 gfx::Point /* position */)
232 232
233 // Sets the name of the guest window to the provided |name|. 233 // Sets the name of the guest window to the provided |name|.
234 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, 234 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName,
235 int /* instance_id */, 235 int /* instance_id */,
236 std::string /* name */) 236 std::string /* name */)
237 // Tells the guest that its request for media permission has been allowed or
238 // denied.
239 // Note that |allow| = true does not readily mean that the guest will be granted
240 // permission, since a security check in the embedder will follow. The guest
241 // will be granted permission only if its embedder also has access to media.
242 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess,
243 int /* instance_id */,
244 int /* request_id */,
245 bool /* allow */)
237 246
238 // ----------------------------------------------------------------------------- 247 // -----------------------------------------------------------------------------
239 // These messages are from the guest renderer to the browser process 248 // These messages are from the guest renderer to the browser process
240 249
241 // A embedder sends this message to the browser when it wants 250 // A embedder sends this message to the browser when it wants
242 // to resize a guest plugin container so that the guest is relaid out 251 // to resize a guest plugin container so that the guest is relaid out
243 // according to the new size. 252 // according to the new size.
244 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 253 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
245 int /* instance_id*/, 254 int /* instance_id*/,
246 BrowserPluginHostMsg_ResizeGuest_Params) 255 BrowserPluginHostMsg_ResizeGuest_Params)
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Guest renders into an FBO with textures provided by the embedder. 364 // Guest renders into an FBO with textures provided by the embedder.
356 // When HW accelerated buffers are swapped in the guest, the message 365 // When HW accelerated buffers are swapped in the guest, the message
357 // is forwarded to the embedder to notify it of a new texture 366 // is forwarded to the embedder to notify it of a new texture
358 // available for compositing. 367 // available for compositing.
359 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, 368 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped,
360 int /* instance_id */, 369 int /* instance_id */,
361 gfx::Size /* size */, 370 gfx::Size /* size */,
362 std::string /* mailbox_name */, 371 std::string /* mailbox_name */,
363 int /* route_id */, 372 int /* route_id */,
364 int /* gpu_host_id */) 373 int /* gpu_host_id */)
374
375 // When the guest requests media access, the browser process forwards this
376 // request to the embeddder through this message.
377 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_RequestMediaAccess,
378 int /* instance_id */,
379 int /* request_id */,
380 GURL /* security_origin */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698