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

Unified 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: Handle multiple listeners based on our discussion, requires 2 webkit changes. Created 8 years 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
diff --git a/content/common/browser_plugin_messages.h b/content/common/browser_plugin_messages.h
index 8c43f7009ce3dcfbb9c428275d18107a1d938e43..09e3a9e25ff3242d8fd2d5ca924aecfa7eec1412 100644
--- a/content/common/browser_plugin_messages.h
+++ b/content/common/browser_plugin_messages.h
@@ -14,8 +14,8 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_message_utils.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
@@ -231,6 +231,16 @@ IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_PluginAtPositionResponse,
int /* request_id */,
gfx::Point /* position */)
+// Tells the guest that its request for media permission has been allowed or
+// denied.
+// Note that |allow| = true does not readily mean that the guest will be granted
+// permission, since a security check in the embedder will follow. The guest
+// will be granted permission only if its embedder also has access to media.
+IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess,
+ int /* instance_id */,
+ int /* request_id */,
+ bool /* allow */)
+
// -----------------------------------------------------------------------------
// These messages are from the guest renderer to the browser process
@@ -305,6 +315,13 @@ IPC_MESSAGE_ROUTED2(BrowserPluginMsg_GuestResponsive,
int /* instance_id */,
int /* process_id */)
+// When the guest requests media access, the browser process forwards this
+// request to the embeddder through this message.
+IPC_MESSAGE_ROUTED3(BrowserPluginMsg_RequestMediaAccess,
+ int /* instance_id */,
+ int /* request_id */,
+ GURL /* security_origin */)
+
// When the user tabs to the end of the tab stops of a guest, the browser
// process informs the embedder to tab out of the browser plugin.
IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AdvanceFocus,

Powered by Google App Engine
This is Rietveld 408576698