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

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

Issue 2060933002: Let Flash join and be controlled by media session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_to_contents
Patch Set: modified when to add/remove player to/from MediaSession Created 4 years, 6 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
OLDNEW
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 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 // (Pepper 3D, WebGL) are explicitly blocked. 1157 // (Pepper 3D, WebGL) are explicitly blocked.
1158 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, 1158 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked,
1159 int /* render_frame_id */, 1159 int /* render_frame_id */,
1160 GURL /* top_origin_url */, 1160 GURL /* top_origin_url */,
1161 content::ThreeDAPIType /* requester */, 1161 content::ThreeDAPIType /* requester */,
1162 bool /* blocked */) 1162 bool /* blocked */)
1163 1163
1164 #if defined(ENABLE_PLUGINS) 1164 #if defined(ENABLE_PLUGINS)
1165 // Notification sent from a renderer to the browser that a Pepper plugin 1165 // Notification sent from a renderer to the browser that a Pepper plugin
1166 // instance is created in the DOM. 1166 // instance is created in the DOM.
1167 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceCreated) 1167 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated,
1168 int32_t /* pp_instance */)
1168 1169
1169 // Notification sent from a renderer to the browser that a Pepper plugin 1170 // Notification sent from a renderer to the browser that a Pepper plugin
1170 // instance is deleted from the DOM. 1171 // instance is deleted from the DOM.
1171 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceDeleted) 1172 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted,
1173 int32_t /* pp_instance */)
1172 1174
1173 // Sent to the browser when the renderer detects it is blocked on a pepper 1175 // Sent to the browser when the renderer detects it is blocked on a pepper
1174 // plugin message for too long. This is also sent when it becomes unhung 1176 // plugin message for too long. This is also sent when it becomes unhung
1175 // (according to the value of is_hung). The browser can give the user the 1177 // (according to the value of is_hung). The browser can give the user the
1176 // option of killing the plugin. 1178 // option of killing the plugin.
1177 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, 1179 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung,
1178 int /* plugin_child_id */, 1180 int /* plugin_child_id */,
1179 base::FilePath /* path */, 1181 base::FilePath /* path */,
1180 bool /* is_hung */) 1182 bool /* is_hung */)
1181 1183
1182 // Sent by the renderer process to indicate that a plugin instance has crashed. 1184 // Sent by the renderer process to indicate that a plugin instance has crashed.
1183 // Note: |plugin_pid| should not be trusted. The corresponding process has 1185 // Note: |plugin_pid| should not be trusted. The corresponding process has
1184 // probably died. Moreover, the ID may have been reused by a new process. Any 1186 // probably died. Moreover, the ID may have been reused by a new process. Any
1185 // usage other than displaying it in a prompt to the user is very likely to be 1187 // usage other than displaying it in a prompt to the user is very likely to be
1186 // wrong. 1188 // wrong.
1187 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed, 1189 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed,
1188 base::FilePath /* plugin_path */, 1190 base::FilePath /* plugin_path */,
1189 base::ProcessId /* plugin_pid */) 1191 base::ProcessId /* plugin_pid */)
1190 1192
1193 // Notification sent from a renderer to the browser that a Pepper plugin
1194 // instance has started playback.
1195 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStartsPlayback,
1196 int32_t /* pp_instance */)
1197
1198 // Notification sent from a renderer to the browser that a Pepper plugin
1199 // instance has stopped playback.
1200 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStopsPlayback,
1201 int32_t /* pp_instance */)
1202
1191 // Used to get the list of plugins 1203 // Used to get the list of plugins
1192 IPC_SYNC_MESSAGE_CONTROL1_1(FrameHostMsg_GetPlugins, 1204 IPC_SYNC_MESSAGE_CONTROL1_1(FrameHostMsg_GetPlugins,
1193 bool /* refresh*/, 1205 bool /* refresh*/,
1194 std::vector<content::WebPluginInfo> /* plugins */) 1206 std::vector<content::WebPluginInfo> /* plugins */)
1195 1207
1196 // Return information about a plugin for the given URL and MIME 1208 // Return information about a plugin for the given URL and MIME
1197 // type. If there is no matching plugin, |found| is false. 1209 // type. If there is no matching plugin, |found| is false.
1198 // |actual_mime_type| is the actual mime type supported by the 1210 // |actual_mime_type| is the actual mime type supported by the
1199 // found plugin. 1211 // found plugin.
1200 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo, 1212 IPC_SYNC_MESSAGE_CONTROL4_3(FrameHostMsg_GetPluginInfo,
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 // nearest find result in the sending frame. 1551 // nearest find result in the sending frame.
1540 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1552 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1541 int /* nfr_request_id */, 1553 int /* nfr_request_id */,
1542 float /* distance */) 1554 float /* distance */)
1543 #endif 1555 #endif
1544 1556
1545 // Adding a new message? Stick to the sort order above: first platform 1557 // Adding a new message? Stick to the sort order above: first platform
1546 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1558 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1547 // platform independent FrameHostMsg, then ifdefs for platform specific 1559 // platform independent FrameHostMsg, then ifdefs for platform specific
1548 // FrameHostMsg. 1560 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698