Index: content/common/view_messages.h |
diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
index 042bff4bc234168d4947d1d18f3df3e170077388..5b5aabbfaefcdfe3df5b7176c70f48cf5b9eacd3 100644 |
--- a/content/common/view_messages.h |
+++ b/content/common/view_messages.h |
@@ -1281,6 +1281,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, |
@@ -1819,6 +1826,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 |