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

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

Issue 2065513004: Expose flash playback status and volume control to content renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_focus_manager
Patch Set: fixed nits for bbudge 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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 // (Pepper 3D, WebGL) are explicitly blocked. 1149 // (Pepper 3D, WebGL) are explicitly blocked.
1150 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked, 1150 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_Are3DAPIsBlocked,
1151 int /* render_frame_id */, 1151 int /* render_frame_id */,
1152 GURL /* top_origin_url */, 1152 GURL /* top_origin_url */,
1153 content::ThreeDAPIType /* requester */, 1153 content::ThreeDAPIType /* requester */,
1154 bool /* blocked */) 1154 bool /* blocked */)
1155 1155
1156 #if defined(ENABLE_PLUGINS) 1156 #if defined(ENABLE_PLUGINS)
1157 // Notification sent from a renderer to the browser that a Pepper plugin 1157 // Notification sent from a renderer to the browser that a Pepper plugin
1158 // instance is created in the DOM. 1158 // instance is created in the DOM.
1159 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceCreated) 1159 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceCreated,
1160 int32_t /* instance */)
1160 1161
1161 // Notification sent from a renderer to the browser that a Pepper plugin 1162 // Notification sent from a renderer to the browser that a Pepper plugin
1162 // instance is deleted from the DOM. 1163 // instance is deleted from the DOM.
1163 IPC_MESSAGE_ROUTED0(FrameHostMsg_PepperInstanceDeleted) 1164 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperInstanceDeleted,
1165 int32_t /* instance */)
1164 1166
1165 // Sent to the browser when the renderer detects it is blocked on a pepper 1167 // Sent to the browser when the renderer detects it is blocked on a pepper
1166 // plugin message for too long. This is also sent when it becomes unhung 1168 // plugin message for too long. This is also sent when it becomes unhung
1167 // (according to the value of is_hung). The browser can give the user the 1169 // (according to the value of is_hung). The browser can give the user the
1168 // option of killing the plugin. 1170 // option of killing the plugin.
1169 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, 1171 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung,
1170 int /* plugin_child_id */, 1172 int /* plugin_child_id */,
1171 base::FilePath /* path */, 1173 base::FilePath /* path */,
1172 bool /* is_hung */) 1174 bool /* is_hung */)
1173 1175
1176 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStartsPlayback,
1177 int32_t /* instance */)
1178
1179 IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStopsPlayback,
1180 int32_t /* instance */)
1181
1174 // Sent by the renderer process to indicate that a plugin instance has crashed. 1182 // Sent by the renderer process to indicate that a plugin instance has crashed.
1175 // Note: |plugin_pid| should not be trusted. The corresponding process has 1183 // Note: |plugin_pid| should not be trusted. The corresponding process has
1176 // probably died. Moreover, the ID may have been reused by a new process. Any 1184 // probably died. Moreover, the ID may have been reused by a new process. Any
1177 // usage other than displaying it in a prompt to the user is very likely to be 1185 // usage other than displaying it in a prompt to the user is very likely to be
1178 // wrong. 1186 // wrong.
1179 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed, 1187 IPC_MESSAGE_ROUTED2(FrameHostMsg_PluginCrashed,
1180 base::FilePath /* plugin_path */, 1188 base::FilePath /* plugin_path */,
1181 base::ProcessId /* plugin_pid */) 1189 base::ProcessId /* plugin_pid */)
1182 1190
1183 // Used to get the list of plugins 1191 // Used to get the list of plugins
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 std::vector<gfx::RectF> /* rects */, 1535 std::vector<gfx::RectF> /* rects */,
1528 gfx::RectF /* active_rect */) 1536 gfx::RectF /* active_rect */)
1529 1537
1530 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the 1538 // Response to FrameMsg_GetNearestFindResult. |distance| is the distance to the
1531 // nearest find result in the sending frame. 1539 // nearest find result in the sending frame.
1532 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, 1540 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply,
1533 int /* nfr_request_id */, 1541 int /* nfr_request_id */,
1534 float /* distance */) 1542 float /* distance */)
1535 #endif 1543 #endif
1536 1544
1545 #if defined(ENABLE_PLUGINS)
1546 IPC_MESSAGE_ROUTED2(FrameMsg_SetPepperVolume,
1547 int32_t,
dcheng 2016/06/14 20:00:32 Can you comment on what these fields mean? I assum
Zhiqiang Zhang (Slow) 2016/06/20 19:11:54 Done. Also added comments for other messages, and
1548 double)
1549 #endif // defined(ENABLE_PLUGINS)
1550
1537 // Adding a new message? Stick to the sort order above: first platform 1551 // Adding a new message? Stick to the sort order above: first platform
1538 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1552 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1539 // platform independent FrameHostMsg, then ifdefs for platform specific 1553 // platform independent FrameHostMsg, then ifdefs for platform specific
1540 // FrameHostMsg. 1554 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698