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

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: 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 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..b0337943ce21909aa1b37ef032b2620324a394b6 100644
--- a/content/common/browser_plugin_messages.h
+++ b/content/common/browser_plugin_messages.h
@@ -235,6 +235,17 @@ IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName,
int /* instance_id */,
std::string /* name */)
+// Tells the guest that its request for an API 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.
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.
+IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_AllowPermissionAccess,
+ int /* instance_id */,
+ std::string /* permission_type */,
+ int /* request_id */,
+ bool /* allow */)
+
// -----------------------------------------------------------------------------
// These messages are from the guest renderer to the browser process
@@ -362,3 +373,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