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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 IPC::PlatformFileForTransit /* file descriptor */, | 1149 IPC::PlatformFileForTransit /* file descriptor */, |
1150 int /* message_id */) | 1150 int /* message_id */) |
1151 | 1151 |
1152 // Tells the renderer that the network state has changed and that | 1152 // Tells the renderer that the network state has changed and that |
1153 // window.navigator.onLine should be updated for all WebViews. | 1153 // window.navigator.onLine should be updated for all WebViews. |
1154 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, | 1154 IPC_MESSAGE_CONTROL1(ViewMsg_NetworkStateChanged, |
1155 bool /* online */) | 1155 bool /* online */) |
1156 | 1156 |
1157 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 1157 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
1158 // Tells the renderer that the channel to the broker has been created. | 1158 // Tells the renderer that the channel to the broker has been created. |
1159 IPC_MESSAGE_ROUTED3(ViewMsg_PpapiBrokerChannelCreated, | 1159 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
1160 int /* request_id */, | 1160 int /* request_id */, |
1161 base::ProcessHandle /* broker_process_handle */, | |
1162 IPC::ChannelHandle /* handle */) | 1161 IPC::ChannelHandle /* handle */) |
1163 | 1162 |
1164 // Tells the renderer to empty its plugin list cache, optional reloading | 1163 // Tells the renderer to empty its plugin list cache, optional reloading |
1165 // pages containing plugins. | 1164 // pages containing plugins. |
1166 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, | 1165 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, |
1167 bool /* reload_pages */) | 1166 bool /* reload_pages */) |
1168 | 1167 |
1169 // Sent to the renderer when a popup window should no longer count against | 1168 // Sent to the renderer when a popup window should no longer count against |
1170 // the current popup count (either because it's not a popup or because it was | 1169 // the current popup count (either because it's not a popup or because it was |
1171 // a generated by a user action). | 1170 // a generated by a user action). |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 // A renderer sends this to the browser process when it wants to create a ppapi | 1662 // A renderer sends this to the browser process when it wants to create a ppapi |
1664 // plugin. The browser will create the plugin process if necessary, and will | 1663 // plugin. The browser will create the plugin process if necessary, and will |
1665 // return a handle to the channel on success. | 1664 // return a handle to the channel on success. |
1666 // | 1665 // |
1667 // The plugin_child_id is the ChildProcessHost ID assigned in the browser | 1666 // The plugin_child_id is the ChildProcessHost ID assigned in the browser |
1668 // process. This ID is valid only in the context of the browser process and is | 1667 // process. This ID is valid only in the context of the browser process and is |
1669 // used to identify the proper process when the renderer notifies it that the | 1668 // used to identify the proper process when the renderer notifies it that the |
1670 // plugin is hung. | 1669 // plugin is hung. |
1671 // | 1670 // |
1672 // On error an empty string and null handles are returned. | 1671 // On error an empty string and null handles are returned. |
1673 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_OpenChannelToPepperPlugin, | 1672 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
1674 FilePath /* path */, | 1673 FilePath /* path */, |
1675 base::ProcessHandle /* plugin_process_handle */, | |
1676 IPC::ChannelHandle /* handle to channel */, | 1674 IPC::ChannelHandle /* handle to channel */, |
1677 int /* plugin_child_id */) | 1675 int /* plugin_child_id */) |
1678 | 1676 |
1679 // A renderer sends this to the browser process when it wants to | 1677 // A renderer sends this to the browser process when it wants to |
1680 // create a ppapi broker. The browser will create the broker process | 1678 // create a ppapi broker. The browser will create the broker process |
1681 // if necessary, and will return a handle to the channel on success. | 1679 // if necessary, and will return a handle to the channel on success. |
1682 // On error an empty string is returned. | 1680 // On error an empty string is returned. |
1683 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. | 1681 // The browser will respond with ViewMsg_PpapiBrokerChannelCreated. |
1684 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, | 1682 IPC_MESSAGE_CONTROL3(ViewHostMsg_OpenChannelToPpapiBroker, |
1685 int /* routing_id */, | 1683 int /* routing_id */, |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2028 int /* automation_id */) | 2026 int /* automation_id */) |
2029 | 2027 |
2030 // Sent to the browser when the renderer detects it is blocked on a pepper | 2028 // Sent to the browser when the renderer detects it is blocked on a pepper |
2031 // plugin message for too long. This is also sent when it becomes unhung | 2029 // plugin message for too long. This is also sent when it becomes unhung |
2032 // (according to the value of is_hung). The browser can give the user the | 2030 // (according to the value of is_hung). The browser can give the user the |
2033 // option of killing the plugin. | 2031 // option of killing the plugin. |
2034 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2032 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
2035 int /* plugin_child_id */, | 2033 int /* plugin_child_id */, |
2036 FilePath /* path */, | 2034 FilePath /* path */, |
2037 bool /* is_hung */) | 2035 bool /* is_hung */) |
OLD | NEW |