Index: content/common/view_messages.h |
diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
index 45b0c4b1cba7dc1ed302de40d064cbcea5abd60c..9529b327c1a926e81f915e959887b4b90d7208ae 100644 |
--- a/content/common/view_messages.h |
+++ b/content/common/view_messages.h |
@@ -1285,6 +1285,13 @@ IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
int /* request_id */, |
IPC::ChannelHandle /* handle */) |
+// Reply to ViewHostMsg_RequestPpapiBrokerPermission. |
+// Tells the renderer whether permission to access to PPAPI broker was granted |
+// or not. |
+IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerPermissionResult, |
+ int /* request_id */, |
+ bool /* result */) |
+ |
// Tells the renderer to empty its plugin list cache, optional reloading |
// pages containing plugins. |
IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, |
@@ -1824,6 +1831,15 @@ IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
int /* request_id */, |
FilePath /* path */) |
+// A renderer sends this to the browser process when it wants to access a PPAPI |
+// broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called |
+// for every connection. |
+// The browser will respond with ViewMsg_PpapiBrokerPermissionResult. |
+IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, |
+ int /* request_id */, |
+ GURL /* document_url */, |
+ FilePath /* plugin_path */) |
+ |
#if defined(USE_X11) |
// A renderer sends this when it needs a browser-side widget for |
// hosting a windowed plugin. id is the XID of the plugin window, for which |