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_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: Plugin can be destroyed before we get Weak Callback, fixed. 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 237
238 // Tells the guest that its request for an API permission has been allowed or
239 // denied.
240 // Note that |allow| = true does not readily mean that the guest will be granted
241 // permission, since a security check in the embedder will follow. The guest
242 // will be granted permission only if its embedder also has access to media.
Charlie Reis 2013/02/11 22:20:56 I can't tell if this is specific to media or not.
lazyboy 2013/02/12 05:03:45 Updated comment. this is generic now.
243 IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_AllowPermissionAccess,
244 int /* instance_id */,
245 std::string /* permission_type */,
246 int /* request_id */,
247 bool /* allow */)
248
238 // ----------------------------------------------------------------------------- 249 // -----------------------------------------------------------------------------
239 // These messages are from the guest renderer to the browser process 250 // These messages are from the guest renderer to the browser process
240 251
241 // A embedder sends this message to the browser when it wants 252 // 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 253 // to resize a guest plugin container so that the guest is relaid out
243 // according to the new size. 254 // according to the new size.
244 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 255 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
245 int /* instance_id*/, 256 int /* instance_id*/,
246 BrowserPluginHostMsg_ResizeGuest_Params) 257 BrowserPluginHostMsg_ResizeGuest_Params)
247 258
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Guest renders into an FBO with textures provided by the embedder. 366 // Guest renders into an FBO with textures provided by the embedder.
356 // When HW accelerated buffers are swapped in the guest, the message 367 // When HW accelerated buffers are swapped in the guest, the message
357 // is forwarded to the embedder to notify it of a new texture 368 // is forwarded to the embedder to notify it of a new texture
358 // available for compositing. 369 // available for compositing.
359 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped, 370 IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped,
360 int /* instance_id */, 371 int /* instance_id */,
361 gfx::Size /* size */, 372 gfx::Size /* size */,
362 std::string /* mailbox_name */, 373 std::string /* mailbox_name */,
363 int /* route_id */, 374 int /* route_id */,
364 int /* gpu_host_id */) 375 int /* gpu_host_id */)
376
377 // When the guest requests media access, the browser process forwards this
378 // request to the embeddder through this message.
379 IPC_MESSAGE_ROUTED3(BrowserPluginMsg_RequestMediaAccess,
380 int /* instance_id */,
381 int /* request_id */,
382 GURL /* security_origin */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698