| Index: content/common/browser_plugin_messages.h
|
| diff --git a/content/common/browser_plugin_messages.h b/content/common/browser_plugin_messages.h
|
| index bd9c98787106d5679c8f3e80d4c356dbc5c93e2a..b48ca9d0f8b1d36a2e1cc676bb1c966324638b06 100644
|
| --- a/content/common/browser_plugin_messages.h
|
| +++ b/content/common/browser_plugin_messages.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/process.h"
|
| #include "base/shared_memory.h"
|
| +#include "base/values.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/content_param_traits.h"
|
| #include "content/public/common/common_param_traits.h"
|
| @@ -236,6 +237,18 @@ 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 might follow. For example
|
| +// for media access permission, the guest will be granted permission only if its
|
| +// embedder also has access.
|
| +IPC_MESSAGE_ROUTED4(BrowserPluginHostMsg_AllowPermission,
|
| + int /* instance_id */,
|
| + std::string /* permission_type */,
|
| + int /* request_id */,
|
| + bool /* allow */)
|
| +
|
| // -----------------------------------------------------------------------------
|
| // These messages are from the guest renderer to the browser process
|
|
|
| @@ -363,3 +376,11 @@ IPC_MESSAGE_ROUTED5(BrowserPluginMsg_BuffersSwapped,
|
| std::string /* mailbox_name */,
|
| int /* route_id */,
|
| int /* gpu_host_id */)
|
| +
|
| +// When the guest requests permission, the browser process forwards this
|
| +// request to the embeddder through this message.
|
| +IPC_MESSAGE_ROUTED4(BrowserPluginMsg_RequestPermission,
|
| + int /* instance_id */,
|
| + std::string /* permission_type */,
|
| + int /* request_id */,
|
| + DictionaryValue /* request_info */)
|
|
|