Chromium Code Reviews| 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 */) |