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

Side by Side Diff: content/common/view_messages.h

Issue 10854040: Add hooks to content to request permission to connect to the PPAPI broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 // window.navigator.onLine should be updated for all WebViews. 1278 // window.navigator.onLine should be updated for all WebViews.
1279 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, 1279 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged,
1280 bool /* online */) 1280 bool /* online */)
1281 1281
1282 // Reply to ViewHostMsg_OpenChannelToPpapiBroker 1282 // Reply to ViewHostMsg_OpenChannelToPpapiBroker
1283 // Tells the renderer that the channel to the broker has been created. 1283 // Tells the renderer that the channel to the broker has been created.
1284 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, 1284 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
1285 int /* request_id */, 1285 int /* request_id */,
1286 IPC::ChannelHandle /* handle */) 1286 IPC::ChannelHandle /* handle */)
1287 1287
1288 // Reply to ViewHostMsg_RequestPpapiBrokerPermission.
1289 // Tells the renderer whether permission to access to PPAPI broker was granted
1290 // or not.
1291 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerPermissionResult,
1292 int /* request_id */,
1293 bool /* result */)
1294
1288 // Tells the renderer to empty its plugin list cache, optional reloading 1295 // Tells the renderer to empty its plugin list cache, optional reloading
1289 // pages containing plugins. 1296 // pages containing plugins.
1290 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 1297 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
1291 bool /* reload_pages */) 1298 bool /* reload_pages */)
1292 1299
1293 // Sent to the renderer when a popup window should no longer count against 1300 // Sent to the renderer when a popup window should no longer count against
1294 // the current popup count (either because it's not a popup or because it was 1301 // the current popup count (either because it's not a popup or because it was
1295 // a generated by a user action). 1302 // a generated by a user action).
1296 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) 1303 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount)
1297 1304
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 // A renderer sends this to the browser process when it wants to 1824 // A renderer sends this to the browser process when it wants to
1818 // create a ppapi broker. The browser will create the broker process 1825 // create a ppapi broker. The browser will create the broker process
1819 // if necessary, and will return a handle to the channel on success. 1826 // if necessary, and will return a handle to the channel on success.
1820 // On error an empty string is returned. 1827 // On error an empty string is returned.
1821 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. 1828 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated.
1822 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, 1829 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker,
1823 int /* routing_id */, 1830 int /* routing_id */,
1824 int /* request_id */, 1831 int /* request_id */,
1825 FilePath /* path */) 1832 FilePath /* path */)
1826 1833
1834 // A renderer sends this to the browser process when it wants to access a PPAPI
1835 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called
1836 // for every connection.
1837 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult.
1838 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission,
1839 int /* request_id */,
1840 GURL /* document_url */,
1841 FilePath /* plugin_path */)
1842
1827 #if defined(USE_X11) 1843 #if defined(USE_X11)
1828 // A renderer sends this when it needs a browser-side widget for 1844 // A renderer sends this when it needs a browser-side widget for
1829 // hosting a windowed plugin. id is the XID of the plugin window, for which 1845 // hosting a windowed plugin. id is the XID of the plugin window, for which
1830 // the container is created. 1846 // the container is created.
1831 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, 1847 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer,
1832 gfx::PluginWindowHandle /* id */) 1848 gfx::PluginWindowHandle /* id */)
1833 1849
1834 // Destroy a plugin container previously created using CreatePluginContainer. 1850 // Destroy a plugin container previously created using CreatePluginContainer.
1835 // id is the XID of the plugin window corresponding to the container that is 1851 // id is the XID of the plugin window corresponding to the container that is
1836 // to be destroyed. 1852 // to be destroyed.
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 // (according to the value of is_hung). The browser can give the user the 2201 // (according to the value of is_hung). The browser can give the user the
2186 // option of killing the plugin. 2202 // option of killing the plugin.
2187 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, 2203 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung,
2188 int /* plugin_child_id */, 2204 int /* plugin_child_id */,
2189 FilePath /* path */, 2205 FilePath /* path */,
2190 bool /* is_hung */) 2206 bool /* is_hung */)
2191 2207
2192 // Screen was rotated. Dispatched to the onorientationchange javascript API. 2208 // Screen was rotated. Dispatched to the onorientationchange javascript API.
2193 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 2209 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
2194 int /* orientation */) 2210 int /* orientation */)
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698