| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 // (Pepper 3D, WebGL) are explicitly blocked. | 1185 // (Pepper 3D, WebGL) are explicitly blocked. |
| 1186 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, | 1186 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, |
| 1187 int /* render_frame_id */, | 1187 int /* render_frame_id */, |
| 1188 GURL /* top_origin_url */, | 1188 GURL /* top_origin_url */, |
| 1189 content::ThreeDAPIType /* requester */, | 1189 content::ThreeDAPIType /* requester */, |
| 1190 bool /* blocked */) | 1190 bool /* blocked */) |
| 1191 | 1191 |
| 1192 #if defined(ENABLE_PLUGINS) | 1192 #if defined(ENABLE_PLUGINS) |
| 1193 // Notification sent from a renderer to the browser that a Pepper plugin | 1193 // Notification sent from a renderer to the browser that a Pepper plugin |
| 1194 // instance is created in the DOM. | 1194 // instance is created in the DOM. |
| 1195 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceCreated) | 1195 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated, |
| 1196 int32_t /* pp_instance */) |
| 1196 | 1197 |
| 1197 // Notification sent from a renderer to the browser that a Pepper plugin | 1198 // Notification sent from a renderer to the browser that a Pepper plugin |
| 1198 // instance is deleted from the DOM. | 1199 // instance is deleted from the DOM. |
| 1199 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceDeleted) | 1200 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted, |
| 1201 int32_t /* pp_instance */) |
| 1200 | 1202 |
| 1201 // Sent to the browser when the renderer detects it is blocked on a pepper | 1203 // Sent to the browser when the renderer detects it is blocked on a pepper |
| 1202 // plugin message for too long. This is also sent when it becomes unhung | 1204 // plugin message for too long. This is also sent when it becomes unhung |
| 1203 // (according to the value of is_hung). The browser can give the user the | 1205 // (according to the value of is_hung). The browser can give the user the |
| 1204 // option of killing the plugin. | 1206 // option of killing the plugin. |
| 1205 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, | 1207 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, |
| 1206 int /* plugin_child_id */, | 1208 int /* plugin_child_id */, |
| 1207 base::FilePath /* path */, | 1209 base::FilePath /* path */, |
| 1208 bool /* is_hung */) | 1210 bool /* is_hung */) |
| 1209 | 1211 |
| 1210 // Sent by the renderer process to indicate that a plugin instance has crashed. | 1212 // Sent by the renderer process to indicate that a plugin instance has crashed. |
| 1211 // Note: |plugin_pid| should not be trusted. The corresponding process has | 1213 // Note: |plugin_pid| should not be trusted. The corresponding process has |
| 1212 // probably died. Moreover, the ID may have been reused by a new process. Any | 1214 // probably died. Moreover, the ID may have been reused by a new process. Any |
| 1213 // usage other than displaying it in a prompt to the user is very likely to be | 1215 // usage other than displaying it in a prompt to the user is very likely to be |
| 1214 // wrong. | 1216 // wrong. |
| 1215 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed, | 1217 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed, |
| 1216 base::FilePath /* plugin_path */, | 1218 base::FilePath /* plugin_path */, |
| 1217 base::ProcessId /* plugin_pid */) | 1219 base::ProcessId /* plugin_pid */) |
| 1218 | 1220 |
| 1221 // Notification sent from a renderer to the browser that a Pepper plugin |
| 1222 // instance has started playback. |
| 1223 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStartsPlayback, |
| 1224 int32_t /* pp_instance */) |
| 1225 |
| 1226 // Notification sent from a renderer to the browser that a Pepper plugin |
| 1227 // instance has stopped playback. |
| 1228 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStopsPlayback, |
| 1229 int32_t /* pp_instance */) |
| 1230 |
| 1219 // Used to get the list of plugins | 1231 // Used to get the list of plugins |
| 1220 IPC_SYNC_MESSAGE_CONTROL1_1(FrameHostMsg_GetPlugins, | 1232 IPC_SYNC_MESSAGE_CONTROL1_1(FrameHostMsg_GetPlugins, |
| 1221 bool /* refresh*/, | 1233 bool /* refresh*/, |
| 1222 std::vector<content::WebPluginInfo> /* plugins */) | 1234 std::vector<content::WebPluginInfo> /* plugins */) |
| 1223 | 1235 |
| 1224 // Return information about a plugin for the given URL and MIME | 1236 // Return information about a plugin for the given URL and MIME |
| 1225 // type. If there is no matching plugin, |found| is false. | 1237 // type. If there is no matching plugin, |found| is false. |
| 1226 // |actual_mime_type| is the actual mime type supported by the | 1238 // |actual_mime_type| is the actual mime type supported by the |
| 1227 // found plugin. | 1239 // found plugin. |
| 1228 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, | 1240 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 // nearest find result in the sending frame. | 1579 // nearest find result in the sending frame. |
| 1568 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1580 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
| 1569 int /* nfr_request_id */, | 1581 int /* nfr_request_id */, |
| 1570 float /* distance */) | 1582 float /* distance */) |
| 1571 #endif | 1583 #endif |
| 1572 | 1584 |
| 1573 // Adding a new message? Stick to the sort order above: first platform | 1585 // Adding a new message? Stick to the sort order above: first platform |
| 1574 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1586 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1575 // platform independent FrameHostMsg, then ifdefs for platform specific | 1587 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1576 // FrameHostMsg. | 1588 // FrameHostMsg. |
| OLD | NEW |