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