| OLD | NEW |
| 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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 // window.navigator.onLine should be updated for all WebViews. | 1274 // window.navigator.onLine should be updated for all WebViews. |
| 1275 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 1275 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, |
| 1276 bool /* online */) | 1276 bool /* online */) |
| 1277 | 1277 |
| 1278 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 1278 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
| 1279 // Tells the renderer that the channel to the broker has been created. | 1279 // Tells the renderer that the channel to the broker has been created. |
| 1280 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 1280 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
| 1281 int /* request_id */, | 1281 int /* request_id */, |
| 1282 IPC::ChannelHandle /* handle */) | 1282 IPC::ChannelHandle /* handle */) |
| 1283 | 1283 |
| 1284 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. |
| 1285 // Tells the renderer whether permission to access to PPAPI broker was granted |
| 1286 // or not. |
| 1287 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerPermissionResult, |
| 1288 int /* request_id */, |
| 1289 bool /* result */) |
| 1290 |
| 1284 // Tells the renderer to empty its plugin list cache, optional reloading | 1291 // Tells the renderer to empty its plugin list cache, optional reloading |
| 1285 // pages containing plugins. | 1292 // pages containing plugins. |
| 1286 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, | 1293 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, |
| 1287 bool /* reload_pages */) | 1294 bool /* reload_pages */) |
| 1288 | 1295 |
| 1289 // Sent to the renderer when a popup window should no longer count against | 1296 // Sent to the renderer when a popup window should no longer count against |
| 1290 // the current popup count (either because it's not a popup or because it was | 1297 // the current popup count (either because it's not a popup or because it was |
| 1291 // a generated by a user action). | 1298 // a generated by a user action). |
| 1292 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) | 1299 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount) |
| 1293 | 1300 |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 // A renderer sends this to the browser process when it wants to | 1819 // A renderer sends this to the browser process when it wants to |
| 1813 // create a ppapi broker. The browser will create the broker process | 1820 // create a ppapi broker. The browser will create the broker process |
| 1814 // if necessary, and will return a handle to the channel on success. | 1821 // if necessary, and will return a handle to the channel on success. |
| 1815 // On error an empty string is returned. | 1822 // On error an empty string is returned. |
| 1816 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1823 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
| 1817 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1824 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
| 1818 int /* routing_id */, | 1825 int /* routing_id */, |
| 1819 int /* request_id */, | 1826 int /* request_id */, |
| 1820 FilePath /* path */) | 1827 FilePath /* path */) |
| 1821 | 1828 |
| 1829 // A renderer sends this to the browser process when it wants to access a PPAPI |
| 1830 // broker. In contrast to ViewHostMsg_OpenChannelToPpapiBroker, this is called |
| 1831 // for every connection. |
| 1832 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. |
| 1833 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, |
| 1834 int /* request_id */, |
| 1835 GURL /* document_url */, |
| 1836 FilePath /* plugin_path */) |
| 1837 |
| 1822 #if defined(USE_X11) | 1838 #if defined(USE_X11) |
| 1823 // A renderer sends this when it needs a browser-side widget for | 1839 // A renderer sends this when it needs a browser-side widget for |
| 1824 // hosting a windowed plugin. id is the XID of the plugin window, for which | 1840 // hosting a windowed plugin. id is the XID of the plugin window, for which |
| 1825 // the container is created. | 1841 // the container is created. |
| 1826 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, | 1842 IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_CreatePluginContainer, |
| 1827 gfx::PluginWindowHandle /* id */) | 1843 gfx::PluginWindowHandle /* id */) |
| 1828 | 1844 |
| 1829 // Destroy a plugin container previously created using CreatePluginContainer. | 1845 // Destroy a plugin container previously created using CreatePluginContainer. |
| 1830 // id is the XID of the plugin window corresponding to the container that is | 1846 // id is the XID of the plugin window corresponding to the container that is |
| 1831 // to be destroyed. | 1847 // to be destroyed. |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 // (according to the value of is_hung). The browser can give the user the | 2196 // (according to the value of is_hung). The browser can give the user the |
| 2181 // option of killing the plugin. | 2197 // option of killing the plugin. |
| 2182 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2198 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
| 2183 int /* plugin_child_id */, | 2199 int /* plugin_child_id */, |
| 2184 FilePath /* path */, | 2200 FilePath /* path */, |
| 2185 bool /* is_hung */) | 2201 bool /* is_hung */) |
| 2186 | 2202 |
| 2187 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2203 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
| 2188 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2204 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
| 2189 int /* orientation */) | 2205 int /* orientation */) |
| OLD | NEW |