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

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: Remove hanging request on garbage collection, yay! 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 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 9b9352eb22bc1d647831541749fb8d96d3d03307..4177332de9cd0a28a3e1b9f2df6e4f31beb47998 100644
--- a/content/common/browser_plugin_messages.h
+++ b/content/common/browser_plugin_messages.h
@@ -235,6 +235,16 @@ IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName,
int /* instance_id */,
std::string /* name */)
+// 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
@@ -362,3 +372,10 @@ IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped,
std::string /* mailbox_name */,
int /* route_id */,
int /* gpu_host_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 */)

Powered by Google App Engine
This is Rietveld 408576698