blob: 2090d36a883f6dd333fcc34b2b7207c7f1b82a8c [file] [log] [blame]
[email protected]c80a0ba2012-01-13 00:02:291// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]c2932f5e2010-11-03 03:22:332// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]631179b2011-03-14 22:26:205// Multiply-included message header, no traditional include guard.
[email protected]7a90b852013-12-28 17:54:276#include <map>
[email protected]c2932f5e2010-11-03 03:22:337#include <string>
8#include <vector>
9
10#include "base/basictypes.h"
[email protected]57999812013-02-24 05:40:5211#include "base/files/file_path.h"
[email protected]8299b712013-07-17 19:55:2312#include "base/memory/shared_memory.h"
[email protected]15756592013-07-25 14:17:5313#include "base/process/process.h"
[email protected]896d161f2013-06-11 22:52:2414#include "base/strings/string16.h"
[email protected]5d84d012010-12-02 17:17:2115#include "base/sync_socket.h"
[email protected]631179b2011-03-14 22:26:2016#include "gpu/command_buffer/common/command_buffer.h"
[email protected]dfb0d06f32014-05-30 22:45:5617#include "gpu/command_buffer/common/mailbox.h"
[email protected]631179b2011-03-14 22:26:2018#include "gpu/ipc/gpu_command_buffer_traits.h"
19#include "ipc/ipc_channel_handle.h"
20#include "ipc/ipc_message_macros.h"
[email protected]c2932f5e2010-11-03 03:22:3321#include "ipc/ipc_message_utils.h"
[email protected]5d84d012010-12-02 17:17:2122#include "ipc/ipc_platform_file.h"
[email protected]0fa46e82011-08-09 07:31:4923#include "ppapi/c/dev/pp_video_capture_dev.h"
[email protected]e8f07ac2012-01-03 17:43:3624#include "ppapi/c/dev/pp_video_dev.h"
[email protected]725056b72013-03-16 09:57:5125#include "ppapi/c/dev/ppb_truetype_font_dev.h"
[email protected]32938de2012-10-19 18:42:3226#include "ppapi/c/dev/ppb_url_util_dev.h"
[email protected]3890cfff2012-02-29 07:54:1827#include "ppapi/c/dev/ppp_printing_dev.h"
[email protected]19d2b012010-11-08 16:32:1828#include "ppapi/c/pp_bool.h"
[email protected]dfb0d06f32014-05-30 22:45:5629#include "ppapi/c/pp_codecs.h"
[email protected]ea505a9d2011-07-07 18:34:4030#include "ppapi/c/pp_file_info.h"
[email protected]c2932f5e2010-11-03 03:22:3331#include "ppapi/c/pp_instance.h"
32#include "ppapi/c/pp_module.h"
[email protected]9b7cc082011-04-20 20:25:5533#include "ppapi/c/pp_point.h"
34#include "ppapi/c/pp_rect.h"
[email protected]c2932f5e2010-11-03 03:22:3335#include "ppapi/c/pp_resource.h"
[email protected]9b7cc082011-04-20 20:25:5536#include "ppapi/c/pp_size.h"
[email protected]3b98ced72012-03-09 02:08:3337#include "ppapi/c/pp_time.h"
[email protected]77b55502012-11-08 22:20:2038#include "ppapi/c/ppb_audio_config.h"
[email protected]c44620b2014-06-16 14:20:2639#include "ppapi/c/ppb_compositor_layer.h"
[email protected]38f61e8f2013-05-11 19:23:3840#include "ppapi/c/ppb_image_data.h"
[email protected]b838eea2013-06-22 22:17:2241#include "ppapi/c/ppb_tcp_socket.h"
[email protected]d33b11a2013-08-07 09:57:2842#include "ppapi/c/ppb_text_input_controller.h"
[email protected]8de13292013-06-24 06:04:3943#include "ppapi/c/ppb_udp_socket.h"
[email protected]23de87452012-10-12 07:03:0944#include "ppapi/c/private/pp_content_decryptor.h"
[email protected]cb65f132012-10-09 17:06:0945#include "ppapi/c/private/pp_private_font_charset.h"
[email protected]ea628e32012-08-02 21:50:1646#include "ppapi/c/private/ppb_flash.h"
[email protected]24931102012-03-15 01:21:2747#include "ppapi/c/private/ppb_host_resolver_private.h"
[email protected]435945742013-11-08 06:31:1148#include "ppapi/c/private/ppb_isolated_file_system_private.h"
[email protected]24931102012-03-15 01:21:2749#include "ppapi/c/private/ppb_net_address_private.h"
[email protected]f5869d8be2013-04-06 00:33:1050#include "ppapi/c/private/ppb_pdf.h"
[email protected]ce97d7452013-06-07 19:02:0951#include "ppapi/c/private/ppb_talk_private.h"
[email protected]8299b712013-07-17 19:55:2352#include "ppapi/c/private/ppp_flash_browser_operations.h"
[email protected]6a685372013-02-12 12:50:4653#include "ppapi/proxy/host_resolver_private_resource.h"
[email protected]07d0a6bf2013-09-17 04:15:1054#include "ppapi/proxy/network_list_resource.h"
[email protected]c2932f5e2010-11-03 03:22:3355#include "ppapi/proxy/ppapi_param_traits.h"
[email protected]f0a04c42011-08-26 22:43:2056#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]077ecfd42012-06-21 21:46:2657#include "ppapi/proxy/resource_message_params.h"
[email protected]7358d572011-02-15 18:44:4058#include "ppapi/proxy/serialized_flash_menu.h"
[email protected]eb5960da2013-01-16 23:23:5359#include "ppapi/proxy/serialized_handle.h"
[email protected]fb35dcf2010-11-14 17:08:0060#include "ppapi/proxy/serialized_structs.h"
[email protected]cb65f132012-10-09 17:06:0961#include "ppapi/proxy/serialized_var.h"
[email protected]c44620b2014-06-16 14:20:2662#include "ppapi/shared_impl/compositor_layer_data.h"
[email protected]0c92b0d2012-12-08 00:46:2363#include "ppapi/shared_impl/dir_contents.h"
[email protected]540d6af42014-01-28 21:19:0364#include "ppapi/shared_impl/file_growth.h"
[email protected]0c92b0d2012-12-08 00:46:2365#include "ppapi/shared_impl/file_path.h"
[email protected]dc000e82013-06-26 04:10:4166#include "ppapi/shared_impl/file_ref_create_info.h"
[email protected]5e19b8b2014-06-03 13:36:4267#include "ppapi/shared_impl/media_stream_audio_track_shared.h"
[email protected]61ebd74e2014-02-26 00:44:0568#include "ppapi/shared_impl/media_stream_video_track_shared.h"
[email protected]73af6332014-02-06 23:28:1069#include "ppapi/shared_impl/ppapi_nacl_plugin_args.h"
[email protected]208aad792011-05-26 19:05:2870#include "ppapi/shared_impl/ppapi_preferences.h"
[email protected]dca65e12012-01-21 07:54:1771#include "ppapi/shared_impl/ppb_device_ref_shared.h"
[email protected]9a578392011-12-07 18:59:2772#include "ppapi/shared_impl/ppb_input_event_shared.h"
[email protected]92576792013-09-20 15:29:1373#include "ppapi/shared_impl/ppb_tcp_socket_shared.h"
[email protected]e8f07ac2012-01-03 17:43:3674#include "ppapi/shared_impl/ppb_view_shared.h"
[email protected]ee4dd682012-06-12 15:49:3375#include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
[email protected]de2895262012-04-04 17:15:4876#include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
[email protected]64a61fc2013-06-19 13:30:5977#include "ppapi/shared_impl/socket_option_data.h"
[email protected]7b2f7292012-09-19 19:52:1278#include "ppapi/shared_impl/url_request_info_data.h"
[email protected]844fecb2012-11-16 20:11:0679#include "ppapi/shared_impl/url_response_info_data.h"
[email protected]8062ab262014-05-27 16:56:4380#include "ui/events/ipc/latency_info_param_traits.h"
[email protected]19d2b012010-11-08 16:32:1881
[email protected]f0a04c42011-08-26 22:43:2082#undef IPC_MESSAGE_EXPORT
83#define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
84
[email protected]631179b2011-03-14 22:26:2085#define IPC_MESSAGE_START PpapiMsgStart
[email protected]c2932f5e2010-11-03 03:22:3386
[email protected]92576792013-09-20 15:29:1387IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
88 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
[email protected]77b55502012-11-08 22:20:2089IPC_ENUM_TRAITS(PP_AudioSampleRate)
[email protected]c44620b2014-06-16 14:20:2690IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST)
[email protected]dca65e12012-01-21 07:54:1791IPC_ENUM_TRAITS(PP_DeviceType_Dev)
[email protected]23de87452012-10-12 07:03:0992IPC_ENUM_TRAITS(PP_DecryptorStreamType)
[email protected]0dbea5f2014-06-07 08:54:2593IPC_ENUM_TRAITS(PP_SessionType)
94IPC_ENUM_TRAITS(PP_CdmExceptionCode)
[email protected]11c6a7f12013-11-12 02:29:1995IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED)
96IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER)
[email protected]1a559442012-05-27 07:18:4697IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
98IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
[email protected]ea628e32012-08-02 21:50:1699IPC_ENUM_TRAITS(PP_FlashSetting)
[email protected]38f61e8f2013-05-11 19:23:38100IPC_ENUM_TRAITS(PP_ImageDataFormat)
[email protected]493d14212011-07-07 15:38:48101IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
[email protected]24931102012-03-15 01:21:27102IPC_ENUM_TRAITS(PP_InputEvent_Type)
[email protected]435945742013-11-08 06:31:11103IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
[email protected]c54d9902013-11-20 13:44:37104 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
[email protected]ddecdae2013-06-24 23:17:46105IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private,
106 PP_NETADDRESSFAMILY_PRIVATE_IPV6)
[email protected]86fbad282013-09-22 06:34:03107IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP)
108IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR)
[email protected]772a74622012-06-14 21:15:50109IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
110IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
111IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
[email protected]cb65f132012-10-09 17:06:09112IPC_ENUM_TRAITS(PP_PrivateFontCharset)
[email protected]f5869d8be2013-04-06 00:33:10113IPC_ENUM_TRAITS(PP_ResourceImage)
114IPC_ENUM_TRAITS(PP_ResourceString)
[email protected]ce97d7452013-06-07 19:02:09115IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1)
116IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission,
117 PP_TALKPERMISSION_NUM_PERMISSIONS - 1)
[email protected]b838eea2013-06-22 22:17:22118IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option,
[email protected]5c2f03992013-09-23 19:22:46119 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE)
[email protected]2daba2f32011-09-29 04:23:09120IPC_ENUM_TRAITS(PP_TextInput_Type)
[email protected]725056b72013-03-16 09:57:51121IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev)
122IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev)
123IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
124IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
125IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev)
[email protected]8de13292013-06-24 06:04:39126IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
[email protected]64a61fc2013-06-19 13:30:59127 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE)
[email protected]7ace8ad2011-08-06 03:23:58128IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev)
[email protected]24931102012-03-15 01:21:27129IPC_ENUM_TRAITS(PP_VideoDecoder_Profile)
[email protected]61ebd74e2014-02-26 00:44:05130IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
[email protected]dfb0d06f32014-05-30 22:45:56131IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
[email protected]493d14212011-07-07 15:38:48132
[email protected]9b7cc082011-04-20 20:25:55133IPC_STRUCT_TRAITS_BEGIN(PP_Point)
134 IPC_STRUCT_TRAITS_MEMBER(x)
135 IPC_STRUCT_TRAITS_MEMBER(y)
136IPC_STRUCT_TRAITS_END()
137
[email protected]493d14212011-07-07 15:38:48138IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
139 IPC_STRUCT_TRAITS_MEMBER(x)
140 IPC_STRUCT_TRAITS_MEMBER(y)
141IPC_STRUCT_TRAITS_END()
142
[email protected]9b7cc082011-04-20 20:25:55143IPC_STRUCT_TRAITS_BEGIN(PP_Size)
144 IPC_STRUCT_TRAITS_MEMBER(height)
145 IPC_STRUCT_TRAITS_MEMBER(width)
146IPC_STRUCT_TRAITS_END()
147
[email protected]c44620b2014-06-16 14:20:26148IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize)
149 IPC_STRUCT_TRAITS_MEMBER(height)
150 IPC_STRUCT_TRAITS_MEMBER(width)
151IPC_STRUCT_TRAITS_END()
152
[email protected]9b7cc082011-04-20 20:25:55153IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
154 IPC_STRUCT_TRAITS_MEMBER(point)
155 IPC_STRUCT_TRAITS_MEMBER(size)
156IPC_STRUCT_TRAITS_END()
157
[email protected]c44620b2014-06-16 14:20:26158IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect)
159 IPC_STRUCT_TRAITS_MEMBER(point)
160 IPC_STRUCT_TRAITS_MEMBER(size)
161IPC_STRUCT_TRAITS_END()
162
[email protected]38f61e8f2013-05-11 19:23:38163IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc)
164 IPC_STRUCT_TRAITS_MEMBER(format)
165 IPC_STRUCT_TRAITS_MEMBER(size)
166 IPC_STRUCT_TRAITS_MEMBER(stride)
167IPC_STRUCT_TRAITS_END()
168
[email protected]7ace8ad2011-08-06 03:23:58169IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
170 IPC_STRUCT_TRAITS_MEMBER(id)
171 IPC_STRUCT_TRAITS_MEMBER(size)
172 IPC_STRUCT_TRAITS_MEMBER(texture_id)
173IPC_STRUCT_TRAITS_END()
174
175IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
176 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
177 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
178IPC_STRUCT_TRAITS_END()
179
[email protected]3890cfff2012-02-29 07:54:18180IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
181 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
182 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
183IPC_STRUCT_TRAITS_END()
184
[email protected]0fa46e82011-08-09 07:31:49185IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
186 IPC_STRUCT_TRAITS_MEMBER(width)
187 IPC_STRUCT_TRAITS_MEMBER(height)
188 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
189IPC_STRUCT_TRAITS_END()
190
[email protected]24931102012-03-15 01:21:27191IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
192 IPC_STRUCT_TRAITS_MEMBER(family)
193 IPC_STRUCT_TRAITS_MEMBER(flags)
194IPC_STRUCT_TRAITS_END()
195
[email protected]772a74622012-06-14 21:15:50196IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev)
197 IPC_STRUCT_TRAITS_MEMBER(printable_area)
198 IPC_STRUCT_TRAITS_MEMBER(content_area)
199 IPC_STRUCT_TRAITS_MEMBER(paper_size)
200 IPC_STRUCT_TRAITS_MEMBER(dpi)
201 IPC_STRUCT_TRAITS_MEMBER(orientation)
202 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
203 IPC_STRUCT_TRAITS_MEMBER(grayscale)
204 IPC_STRUCT_TRAITS_MEMBER(format)
205IPC_STRUCT_TRAITS_END()
206
[email protected]32938de2012-10-19 18:42:32207IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
208 IPC_STRUCT_TRAITS_MEMBER(begin)
209 IPC_STRUCT_TRAITS_MEMBER(len)
210IPC_STRUCT_TRAITS_END()
211
212IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
213 IPC_STRUCT_TRAITS_MEMBER(scheme)
214 IPC_STRUCT_TRAITS_MEMBER(username)
215 IPC_STRUCT_TRAITS_MEMBER(password)
216 IPC_STRUCT_TRAITS_MEMBER(host)
217 IPC_STRUCT_TRAITS_MEMBER(port)
218 IPC_STRUCT_TRAITS_MEMBER(path)
219 IPC_STRUCT_TRAITS_MEMBER(query)
220 IPC_STRUCT_TRAITS_MEMBER(ref)
221IPC_STRUCT_TRAITS_END()
222
[email protected]11c6a7f12013-11-12 02:29:19223IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo)
224 IPC_STRUCT_TRAITS_MEMBER(size)
225 IPC_STRUCT_TRAITS_MEMBER(type)
226 IPC_STRUCT_TRAITS_MEMBER(system_type)
227 IPC_STRUCT_TRAITS_MEMBER(creation_time)
228 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
229 IPC_STRUCT_TRAITS_MEMBER(last_modified_time)
230IPC_STRUCT_TRAITS_END()
231
[email protected]540d6af42014-01-28 21:19:03232IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth)
233 IPC_STRUCT_TRAITS_MEMBER(max_written_offset)
234 IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount)
235IPC_STRUCT_TRAITS_END()
236
[email protected]c44620b2014-06-16 14:20:26237IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData)
238 IPC_STRUCT_TRAITS_MEMBER(common)
239 IPC_STRUCT_TRAITS_MEMBER(color)
240 IPC_STRUCT_TRAITS_MEMBER(texture)
241 IPC_STRUCT_TRAITS_MEMBER(image)
242IPC_STRUCT_TRAITS_END()
243
244IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::LayerCommon)
245 IPC_STRUCT_TRAITS_MEMBER(size)
246 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
247 IPC_STRUCT_TRAITS_MEMBER(transform)
248 IPC_STRUCT_TRAITS_MEMBER(blend_mode)
249 IPC_STRUCT_TRAITS_MEMBER(opacity)
250 IPC_STRUCT_TRAITS_MEMBER(resource_id)
251IPC_STRUCT_TRAITS_END()
252
253IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ColorLayer)
254 IPC_STRUCT_TRAITS_MEMBER(red)
255 IPC_STRUCT_TRAITS_MEMBER(green)
256 IPC_STRUCT_TRAITS_MEMBER(blue)
257 IPC_STRUCT_TRAITS_MEMBER(alpha)
258IPC_STRUCT_TRAITS_END()
259
260IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ImageLayer)
261 IPC_STRUCT_TRAITS_MEMBER(resource)
262 IPC_STRUCT_TRAITS_MEMBER(source_rect)
263IPC_STRUCT_TRAITS_END()
264
265IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::TextureLayer)
266 IPC_STRUCT_TRAITS_MEMBER(mailbox)
267 IPC_STRUCT_TRAITS_MEMBER(sync_point)
268 IPC_STRUCT_TRAITS_MEMBER(source_rect)
269 IPC_STRUCT_TRAITS_MEMBER(premult_alpha)
270IPC_STRUCT_TRAITS_END()
271
[email protected]dca65e12012-01-21 07:54:17272IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
273 IPC_STRUCT_TRAITS_MEMBER(type)
274 IPC_STRUCT_TRAITS_MEMBER(name)
275 IPC_STRUCT_TRAITS_MEMBER(id)
276IPC_STRUCT_TRAITS_END()
277
[email protected]0c92b0d2012-12-08 00:46:23278IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
279 IPC_STRUCT_TRAITS_MEMBER(name)
280 IPC_STRUCT_TRAITS_MEMBER(is_dir)
281IPC_STRUCT_TRAITS_END()
282
[email protected]c6420f082013-09-18 22:42:41283IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRefCreateInfo)
[email protected]d1967ed2013-06-18 01:10:21284 IPC_STRUCT_TRAITS_MEMBER(file_system_type)
285 IPC_STRUCT_TRAITS_MEMBER(internal_path)
[email protected]d1967ed2013-06-18 01:10:21286 IPC_STRUCT_TRAITS_MEMBER(display_name)
[email protected]c6420f082013-09-18 22:42:41287 IPC_STRUCT_TRAITS_MEMBER(browser_pending_host_resource_id)
288 IPC_STRUCT_TRAITS_MEMBER(renderer_pending_host_resource_id)
[email protected]d1967ed2013-06-18 01:10:21289 IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource)
290IPC_STRUCT_TRAITS_END()
291
[email protected]ee4dd682012-06-12 15:49:33292IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
293 IPC_STRUCT_TRAITS_MEMBER(site)
294 IPC_STRUCT_TRAITS_MEMBER(permission)
295IPC_STRUCT_TRAITS_END()
296
[email protected]5e19b8b2014-06-03 13:36:42297IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamAudioTrackShared::Attributes)
298 IPC_STRUCT_TRAITS_MEMBER(buffers)
[email protected]e6b863c6e2014-07-31 12:54:12299 IPC_STRUCT_TRAITS_MEMBER(duration)
[email protected]5e19b8b2014-06-03 13:36:42300IPC_STRUCT_TRAITS_END()
301
[email protected]61ebd74e2014-02-26 00:44:05302IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamVideoTrackShared::Attributes)
303 IPC_STRUCT_TRAITS_MEMBER(buffers)
304 IPC_STRUCT_TRAITS_MEMBER(width)
305 IPC_STRUCT_TRAITS_MEMBER(height)
306 IPC_STRUCT_TRAITS_MEMBER(format)
307IPC_STRUCT_TRAITS_END()
308
[email protected]e8f07ac2012-01-03 17:43:36309IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
310 IPC_STRUCT_TRAITS_MEMBER(rect)
311 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
312 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
313 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
[email protected]0cd5b9df2012-06-28 19:33:33314 IPC_STRUCT_TRAITS_MEMBER(device_scale)
315 IPC_STRUCT_TRAITS_MEMBER(css_scale)
[email protected]5015a072014-06-19 01:48:14316 IPC_STRUCT_TRAITS_MEMBER(scroll_offset)
[email protected]e8f07ac2012-01-03 17:43:36317IPC_STRUCT_TRAITS_END()
318
[email protected]cdf4e912012-06-21 23:15:10319IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint)
320 IPC_STRUCT_TRAITS_MEMBER(id)
321 IPC_STRUCT_TRAITS_MEMBER(position)
322 IPC_STRUCT_TRAITS_MEMBER(radius)
323 IPC_STRUCT_TRAITS_MEMBER(rotation_angle)
324 IPC_STRUCT_TRAITS_MEMBER(pressure)
325IPC_STRUCT_TRAITS_END()
326
[email protected]4d2efd22011-08-18 21:58:02327IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
[email protected]966d1e12012-05-18 07:20:32328 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
329 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
330 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
331 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
[email protected]208aad792011-05-26 19:05:28332 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
333 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
[email protected]6b4dcb072012-06-18 22:26:51334 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
[email protected]e0d8c422012-06-04 22:57:19335 IPC_STRUCT_TRAITS_MEMBER(is_3d_supported)
336 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported)
[email protected]4abba3b42013-02-12 03:45:54337 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_baseline_supported)
[email protected]6013c792014-03-07 00:18:33338 IPC_STRUCT_TRAITS_MEMBER(is_accelerated_video_decode_enabled)
[email protected]208aad792011-05-26 19:05:28339IPC_STRUCT_TRAITS_END()
340
[email protected]4d2efd22011-08-18 21:58:02341IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
[email protected]493d14212011-07-07 15:38:48342 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
343 IPC_STRUCT_TRAITS_MEMBER(event_type)
344 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
345 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
346 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
347 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
348 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
[email protected]80473262011-08-31 17:15:18349 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
[email protected]493d14212011-07-07 15:38:48350 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
351 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
352 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
353 IPC_STRUCT_TRAITS_MEMBER(key_code)
[email protected]f0287d32013-09-14 11:50:27354 IPC_STRUCT_TRAITS_MEMBER(code)
[email protected]493d14212011-07-07 15:38:48355 IPC_STRUCT_TRAITS_MEMBER(character_text)
[email protected]2daba2f32011-09-29 04:23:09356 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
357 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
358 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
359 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
[email protected]cdf4e912012-06-21 23:15:10360 IPC_STRUCT_TRAITS_MEMBER(touches)
361 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
362 IPC_STRUCT_TRAITS_MEMBER(target_touches)
[email protected]8062ab262014-05-27 16:56:43363 IPC_STRUCT_TRAITS_MEMBER(latency_info)
[email protected]493d14212011-07-07 15:38:48364IPC_STRUCT_TRAITS_END()
365
[email protected]24931102012-03-15 01:21:27366IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
367 IPC_STRUCT_TRAITS_MEMBER(host)
368 IPC_STRUCT_TRAITS_MEMBER(port)
369IPC_STRUCT_TRAITS_END()
370
[email protected]7b2f7292012-09-19 19:52:12371IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData)
[email protected]6f75c952011-08-26 04:51:07372 IPC_STRUCT_TRAITS_MEMBER(url)
373 IPC_STRUCT_TRAITS_MEMBER(method)
374 IPC_STRUCT_TRAITS_MEMBER(headers)
375 IPC_STRUCT_TRAITS_MEMBER(stream_to_file)
376 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
377 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
378 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
379 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
380 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
381 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
382 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
383 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
384 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
385 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
386 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
[email protected]c094eaf2012-07-10 16:09:01387 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
388 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
[email protected]6f75c952011-08-26 04:51:07389 IPC_STRUCT_TRAITS_MEMBER(body)
390IPC_STRUCT_TRAITS_END()
391
[email protected]7b2f7292012-09-19 19:52:12392IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
[email protected]6f75c952011-08-26 04:51:07393 IPC_STRUCT_TRAITS_MEMBER(is_file)
394 IPC_STRUCT_TRAITS_MEMBER(data)
[email protected]c6420f082013-09-18 22:42:41395 IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource)
[email protected]6f75c952011-08-26 04:51:07396 IPC_STRUCT_TRAITS_MEMBER(start_offset)
397 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
398 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
399IPC_STRUCT_TRAITS_END()
400
[email protected]844fecb2012-11-16 20:11:06401IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
402 IPC_STRUCT_TRAITS_MEMBER(url)
403 IPC_STRUCT_TRAITS_MEMBER(headers)
404 IPC_STRUCT_TRAITS_MEMBER(status_code)
405 IPC_STRUCT_TRAITS_MEMBER(status_text)
406 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
407 IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref)
408IPC_STRUCT_TRAITS_END()
409
[email protected]07d0a6bf2013-09-17 04:15:10410IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo)
[email protected]5b9b80e2012-03-20 20:19:39411 IPC_STRUCT_TRAITS_MEMBER(name)
412 IPC_STRUCT_TRAITS_MEMBER(type)
413 IPC_STRUCT_TRAITS_MEMBER(state)
414 IPC_STRUCT_TRAITS_MEMBER(addresses)
415 IPC_STRUCT_TRAITS_MEMBER(display_name)
416 IPC_STRUCT_TRAITS_MEMBER(mtu)
417IPC_STRUCT_TRAITS_END()
[email protected]e5aeef02012-08-17 00:18:43418
[email protected]73af6332014-02-06 23:28:10419// Only whitelisted switches passed through PpapiNaClPluginArgs.
[email protected]ac07ec52013-04-22 17:32:45420// The list of switches can be found in:
[email protected]73af6332014-02-06 23:28:10421// components/nacl/browser/nacl_process_host.cc
422IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
[email protected]ac07ec52013-04-22 17:32:45423 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
424 IPC_STRUCT_TRAITS_MEMBER(permissions)
[email protected]6da661c5a2014-03-26 18:28:30425 IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds)
[email protected]ac07ec52013-04-22 17:32:45426 IPC_STRUCT_TRAITS_MEMBER(switch_names)
427 IPC_STRUCT_TRAITS_MEMBER(switch_values)
428IPC_STRUCT_TRAITS_END()
429
[email protected]e8f578d2012-09-17 19:27:10430#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e8f578d2012-09-17 19:27:10431
[email protected]e5aeef02012-08-17 00:18:43432IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
433 IPC_STRUCT_TRAITS_MEMBER(resource)
434 IPC_STRUCT_TRAITS_MEMBER(handle)
435 IPC_STRUCT_TRAITS_MEMBER(size)
436IPC_STRUCT_TRAITS_END()
437
[email protected]667591d2012-09-04 21:30:12438#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]5b9b80e2012-03-20 20:19:39439
[email protected]eb415bf0e2011-04-14 02:45:42440// These are from the browser to the plugin.
[email protected]631179b2011-03-14 22:26:20441// Loads the given plugin.
[email protected]84350ef2013-12-19 17:10:50442IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
[email protected]d30a36f2013-02-07 04:16:26443 base::FilePath /* path */,
[email protected]84350ef2013-12-19 17:10:50444 ppapi::PpapiPermissions /* permissions */)
[email protected]631179b2011-03-14 22:26:20445
446// Creates a channel to talk to a renderer. The plugin will respond with
447// PpapiHostMsg_ChannelCreated.
[email protected]108fd342013-01-04 20:46:54448IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel,
449 base::ProcessId /* renderer_pid */,
450 int /* renderer_child_id */,
[email protected]bc2eeb42012-05-02 22:35:53451 bool /* incognito */)
[email protected]631179b2011-03-14 22:26:20452
[email protected]73af6332014-02-06 23:28:10453// Initializes the IPC dispatchers in the NaCl plugin.
454IPC_MESSAGE_CONTROL1(PpapiMsg_InitializeNaClDispatcher,
455 ppapi::PpapiNaClPluginArgs /* args */)
[email protected]8510d282012-08-30 19:47:38456
[email protected]029bd942013-01-22 08:30:33457// Instructs the plugin process to crash.
458IPC_MESSAGE_CONTROL0(PpapiMsg_Crash)
459
460// Instructs the plugin process to hang.
461IPC_MESSAGE_CONTROL0(PpapiMsg_Hang)
462
[email protected]631179b2011-03-14 22:26:20463// Each plugin may be referenced by multiple renderers. We need the instance
464// IDs to be unique within a plugin, despite coming from different renderers,
465// and unique within a renderer, despite going to different plugins. This means
466// that neither the renderer nor the plugin can generate instance IDs without
467// consulting the other.
468//
469// We resolve this by having the renderer generate a unique instance ID inside
470// its process. It then asks the plugin to reserve that ID by sending this sync
471// message. If the plugin has not yet seen this ID, it will remember it as used
472// (to prevent a race condition if another renderer tries to then use the same
473// instance), and set usable as true.
474//
475// If the plugin has already seen the instance ID, it will set usable as false
476// and the renderer must retry a new instance ID.
477IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
478 PP_Instance /* instance */,
479 bool /* usable */)
480
[email protected]208aad792011-05-26 19:05:28481// Passes the WebKit preferences to the plugin.
482IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
[email protected]4d2efd22011-08-18 21:58:02483 ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28484
[email protected]631179b2011-03-14 22:26:20485// Sent in both directions to see if the other side supports the given
486// interface.
487IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
488 std::string /* interface_name */,
489 bool /* result */)
490
[email protected]ea441832014-02-05 15:34:21491IPC_MESSAGE_CONTROL1(PpapiHostMsg_LogInterfaceUsage,
492 int /* interface_hash */)
493
[email protected]246fc492012-08-27 20:28:18494#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49495// Network state notification from the browser for implementing
496// PPP_NetworkState_Dev.
497IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
498 bool /* online */)
499
[email protected]951ef0b2012-07-27 22:46:53500// Requests a list of sites that have data stored from the plugin. The plugin
501// process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
502// for Flash.
503IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
504 uint32 /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26505 base::FilePath /* plugin_data_path */)
[email protected]951ef0b2012-07-27 22:46:53506IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
507 uint32 /* request_id */,
508 std::vector<std::string> /* sites */)
509
[email protected]1bf0fb22012-04-12 21:44:16510// Instructs the plugin to clear data for the given site & time. The plugin
511// process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
512// for Flash.
[email protected]951ef0b2012-07-27 22:46:53513IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
514 uint32 /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26515 base::FilePath /* plugin_data_path */,
[email protected]1bf0fb22012-04-12 21:44:16516 std::string /* site */,
517 uint64 /* flags */,
518 uint64 /* max_age */)
[email protected]951ef0b2012-07-27 22:46:53519IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
520 uint32 /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16521 bool /* success */)
[email protected]2b657fd2011-04-18 16:00:47522
[email protected]1a559442012-05-27 07:18:46523IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
524 uint32 /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26525 base::FilePath /* plugin_data_path */)
[email protected]1a559442012-05-27 07:18:46526IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
527 uint32 /* request_id */,
528 bool /* success */)
529
[email protected]ee4dd682012-06-12 15:49:33530IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
531 uint32 /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26532 base::FilePath /* plugin_data_path */,
[email protected]ee4dd682012-06-12 15:49:33533 PP_Flash_BrowserOperations_SettingType /* setting_type */)
534IPC_MESSAGE_CONTROL4(
535 PpapiHostMsg_GetPermissionSettingsResult,
536 uint32 /* request_id */,
537 bool /* success */,
538 PP_Flash_BrowserOperations_Permission /* default_permission */,
539 ppapi::FlashSiteSettings /* sites */)
540
541IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
542 uint32 /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26543 base::FilePath /* plugin_data_path */,
[email protected]ee4dd682012-06-12 15:49:33544 PP_Flash_BrowserOperations_SettingType /* setting_type */,
545 PP_Flash_BrowserOperations_Permission /* permission */,
546 bool /* clear_site_specific */)
547IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
548 uint32 /* request_id */,
549 bool /* success */)
550
551IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
552 uint32 /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26553 base::FilePath /* plugin_data_path */,
[email protected]ee4dd682012-06-12 15:49:33554 PP_Flash_BrowserOperations_SettingType /* setting_type */,
555 ppapi::FlashSiteSettings /* sites */)
556IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
557 uint32 /* request_id */,
558 bool /* success */)
559
[email protected]1bf0fb22012-04-12 21:44:16560// Broker Process.
[email protected]6990e5d2011-09-30 18:10:57561IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
[email protected]2b657fd2011-04-18 16:00:47562 PP_Instance /* instance */,
[email protected]6990e5d2011-09-30 18:10:57563 IPC::PlatformFileForTransit /* handle */,
564 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18565#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]2b657fd2011-04-18 16:00:47566
[email protected]631179b2011-03-14 22:26:20567// PPB_Audio.
568
569// Notifies the result of the audio stream create call. This is called in
570// both error cases and in the normal success case. These cases are
571// differentiated by the result code, which is one of the standard PPAPI
572// result codes.
573//
574// The handler of this message should always close all of the handles passed
575// in, since some could be valid even in the error case.
[email protected]246fc492012-08-27 20:28:18576IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
[email protected]be0a84b2011-08-13 04:18:44577 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20578 int32_t /* result_code (will be != PP_OK on failure) */,
[email protected]246fc492012-08-27 20:28:18579 ppapi::proxy::SerializedHandle /* socket_handle */,
580 ppapi::proxy::SerializedHandle /* handle */)
[email protected]631179b2011-03-14 22:26:20581
[email protected]eeb4e4a2011-07-19 16:22:06582// PPB_Graphics3D.
583IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
[email protected]be0a84b2011-08-13 04:18:44584 ppapi::HostResource /* graphics_3d */,
[email protected]eeb4e4a2011-07-19 16:22:06585 int32_t /* pp_error */)
586
[email protected]c42835772012-08-22 18:22:13587// PPB_ImageData.
588IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
589 ppapi::HostResource /* old_image_data */)
590
[email protected]0f41c012011-10-21 19:49:20591// PPB_Instance.
592IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
593 PP_Instance /* instance */,
594 int32_t /* result */)
595
[email protected]631179b2011-03-14 22:26:20596// PPP_Class.
597IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
598 int64 /* ppp_class */,
599 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02600 ppapi::proxy::SerializedVar /* property */,
601 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20602 bool /* result */)
603IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
604 int64 /* ppp_class */,
605 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02606 ppapi::proxy::SerializedVar /* method */,
607 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20608 bool /* result */)
609IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
610 int64 /* ppp_class */,
611 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02612 ppapi::proxy::SerializedVar /* property */,
613 ppapi::proxy::SerializedVar /* out_exception */,
614 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20615IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
616 int64 /* ppp_class */,
617 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02618 std::vector<ppapi::proxy::SerializedVar> /* props */,
619 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20620IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
621 int64 /* ppp_class */,
622 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02623 ppapi::proxy::SerializedVar /* name */,
624 ppapi::proxy::SerializedVar /* value */,
625 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20626IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
627 int64 /* ppp_class */,
628 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02629 ppapi::proxy::SerializedVar /* property */,
630 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20631IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
632 int64 /* ppp_class */,
633 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02634 ppapi::proxy::SerializedVar /* method_name */,
635 std::vector<ppapi::proxy::SerializedVar> /* args */,
636 ppapi::proxy::SerializedVar /* out_exception */,
637 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20638IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
639 int64 /* ppp_class */,
640 int64 /* object */,
[email protected]4d2efd22011-08-18 21:58:02641 std::vector<ppapi::proxy::SerializedVar> /* args */,
642 ppapi::proxy::SerializedVar /* out_exception */,
643 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20644IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
645 int64 /* ppp_class */,
646 int64 /* object */)
647
[email protected]8c3bd1d2011-04-12 20:01:42648// PPP_Graphics3D_Dev.
649IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
650 PP_Instance /* instance */)
651
[email protected]493d14212011-07-07 15:38:48652// PPP_InputEvent.
653IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
654 PP_Instance /* instance */,
655 ppapi::InputEventData /* data */)
656IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
657 PP_Instance /* instance */,
658 ppapi::InputEventData /* data */,
659 PP_Bool /* result */)
660
[email protected]631179b2011-03-14 22:26:20661// PPP_Instance.
662IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
663 PP_Instance /* instance */,
664 std::vector<std::string> /* argn */,
665 std::vector<std::string> /* argv */,
666 PP_Bool /* result */)
[email protected]5e5d0b02011-04-04 19:32:07667IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
668 PP_Instance /* instance */)
[email protected]e8f07ac2012-01-03 17:43:36669IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
[email protected]631179b2011-03-14 22:26:20670 PP_Instance /* instance */,
[email protected]e8f07ac2012-01-03 17:43:36671 ppapi::ViewData /* new_data */,
[email protected]06e0a342011-09-27 04:24:30672 PP_Bool /* flash_fullscreen */)
[email protected]631179b2011-03-14 22:26:20673IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
674 PP_Instance /* instance */,
675 PP_Bool /* has_focus */)
[email protected]47cb253f2013-05-16 01:50:40676IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad,
677 PP_Instance /* instance */,
678 int /* pending_loader_host_id */,
679 ppapi::URLResponseInfoData /* response */)
[email protected]631179b2011-03-14 22:26:20680
[email protected]e87640bd2014-06-18 16:44:00681// PPP_Messaging and PPP_MessageHandler.
[email protected]b20df1c2011-08-03 14:38:24682IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
683 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02684 ppapi::proxy::SerializedVar /* message */)
[email protected]e87640bd2014-06-18 16:44:00685IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPMessageHandler_HandleBlockingMessage,
686 PP_Instance /* instance */,
687 ppapi::proxy::SerializedVar /* message */,
688 ppapi::proxy::SerializedVar /* result */,
[email protected]b2c1c332014-06-26 06:08:40689 bool /* was_handled */)
[email protected]b20df1c2011-08-03 14:38:24690
[email protected]1314f5f2011-10-16 02:26:56691// PPP_MouseLock.
[email protected]18d871f2011-09-08 16:56:34692IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
693 PP_Instance /* instance */)
694
[email protected]ec158402014-02-06 11:40:25695// PPP_Pdf
696IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate,
697 PP_Instance /* instance */,
698 bool /* clockwise */)
699
[email protected]54ea9ff2014-03-20 00:27:54700// Find
701IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind,
702 PP_Instance /* instance */,
703 std::string /* text */)
704IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult,
705 PP_Instance /* instance */,
706 PP_Bool /* forward */)
707IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind,
708 PP_Instance /* instance */)
709
710IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_SetPluginToHandleFindRequests,
711 PP_Instance /* instance */)
712IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_NumberOfFindResultsChanged,
713 PP_Instance /* instance */,
714 int32_t /* total */,
715 PP_Bool /* final_result */)
716IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SelectFindResultChanged,
717 PP_Instance /* instance */,
718 int32_t /* index */)
[email protected]fb0115f6c2014-03-30 17:21:08719IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTickmarks,
720 PP_Instance /* instance */,
721 std::vector<PP_Rect> /* tickmarks */)
[email protected]54ea9ff2014-03-20 00:27:54722
[email protected]3890cfff2012-02-29 07:54:18723// PPP_Printing
724IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
725 PP_Instance /* instance */,
726 uint32_t /* result */)
727IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
728 PP_Instance /* instance */,
729 std::string /* settings_string */,
730 int32_t /* result */)
731IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
732 PP_Instance /* instance */,
733 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
734 ppapi::HostResource /* result */)
735IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
736 PP_Instance /* instance */)
737IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
738 PP_Instance /* instance */,
739 bool /* result */)
740
[email protected]3c8c74c2012-03-15 07:34:52741// PPP_TextInput.
742IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
743 PP_Instance /* instance */,
744 uint32_t /* desired_number_of_characters */)
745
[email protected]246fc492012-08-27 20:28:18746#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49747// PPB_Broker.
748IPC_MESSAGE_ROUTED3(
749 PpapiMsg_PPBBroker_ConnectComplete,
750 ppapi::HostResource /* broker */,
751 IPC::PlatformFileForTransit /* handle */,
752 int32_t /* result */)
753
[email protected]e5aeef02012-08-17 00:18:43754// PPP_ContentDecryptor_Dev
[email protected]dc45e792013-11-14 01:34:24755IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize,
[email protected]e5aeef02012-08-17 00:18:43756 PP_Instance /* instance */,
[email protected]dc45e792013-11-14 01:34:24757 ppapi::proxy::SerializedVar /* key_system, String */)
[email protected]0dbea5f2014-06-07 08:54:25758IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession,
[email protected]38a995d92013-09-20 06:34:51759 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:25760 uint32_t /* promise_id */,
761 ppapi::proxy::SerializedVar /* init_data_type, String */,
762 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */,
763 PP_SessionType /* session_type */)
[email protected]bef807322014-02-12 19:09:32764IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession,
765 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:25766 uint32_t /* promise_id */,
[email protected]bef807322014-02-12 19:09:32767 ppapi::proxy::SerializedVar /* web_session_id, String */)
[email protected]0dbea5f2014-06-07 08:54:25768IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession,
[email protected]e5aeef02012-08-17 00:18:43769 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:25770 uint32_t /* promise_id */,
771 ppapi::proxy::SerializedVar /* web_session_id, String */,
[email protected]da34aa72013-11-30 05:24:47772 ppapi::proxy::SerializedVar /* response, ArrayBuffer */)
[email protected]0dbea5f2014-06-07 08:54:25773IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ReleaseSession,
[email protected]e5aeef02012-08-17 00:18:43774 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:25775 uint32_t /* promise_id */,
776 ppapi::proxy::SerializedVar /* web_session_id, String */)
[email protected]e5aeef02012-08-17 00:18:43777IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
778 PP_Instance /* instance */,
779 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
[email protected]98ad9782012-08-22 04:06:22780 std::string /* serialized_block_info */)
[email protected]e9d3a1022012-10-11 23:43:55781IPC_MESSAGE_ROUTED3(
[email protected]c999b3b72012-10-19 22:33:46782 PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder,
783 PP_Instance /* instance */,
784 std::string /* serialized_decoder_config */,
785 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */)
786IPC_MESSAGE_ROUTED3(
[email protected]e9d3a1022012-10-11 23:43:55787 PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder,
788 PP_Instance /* instance */,
789 std::string /* serialized_decoder_config */,
790 ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */)
[email protected]23de87452012-10-12 07:03:09791IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder,
792 PP_Instance /* instance */,
793 PP_DecryptorStreamType /* decoder_type */,
794 uint32_t /* request_id */)
795IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder,
796 PP_Instance /* instance */,
797 PP_DecryptorStreamType /* decoder_type */,
798 uint32_t /* request_id */)
[email protected]467434d2012-10-12 10:48:53799IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
[email protected]e5aeef02012-08-17 00:18:43800 PP_Instance /* instance */,
[email protected]467434d2012-10-12 10:48:53801 PP_DecryptorStreamType /* decoder_type */,
[email protected]98ad9782012-08-22 04:06:22802 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
803 std::string /* serialized_block_info */)
[email protected]6761d632012-04-18 17:54:49804
[email protected]6761d632012-04-18 17:54:49805// PPP_Instance_Private.
806IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
807 PP_Instance /* instance */,
808 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20809
[email protected]246fc492012-08-27 20:28:18810#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]7ace8ad2011-08-06 03:23:58811
[email protected]200c9182013-12-18 23:37:11812// Reports to the browser that a plugin has been active.
813IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive)
814
[email protected]631179b2011-03-14 22:26:20815// -----------------------------------------------------------------------------
816// These are from the plugin to the renderer.
817
818// Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
819// could not be established. This could be because the IPC could not be created
820// for some weird reason, but more likely that the plugin failed to load or
821// initialize properly.
822IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
823 IPC::ChannelHandle /* handle */)
824
[email protected]43fb4f82014-04-23 11:53:13825// Notify the renderer that the PPAPI channel gets ready in the plugin.
[email protected]b2c1c332014-06-26 06:08:40826IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete)
[email protected]43fb4f82014-04-23 11:53:13827
[email protected]ae5f7f82014-05-02 23:24:52828// Calls renderer to open a resource file for nacl_irt_open_resource().
829IPC_SYNC_MESSAGE_CONTROL1_1(PpapiHostMsg_OpenResource,
830 std::string /* key */,
831 ppapi::proxy::SerializedHandle /* fd */)
832
[email protected]a9b16dd2012-01-31 05:00:26833// Logs the given message to the console of all instances.
834IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
835 PP_Instance /* instance */,
836 int /* log_level */,
837 std::string /* source */,
838 std::string /* value */)
839
[email protected]631179b2011-03-14 22:26:20840// PPB_Audio.
[email protected]55cdf6052011-05-13 19:22:53841IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
[email protected]631179b2011-03-14 22:26:20842 PP_Instance /* instance_id */,
[email protected]55cdf6052011-05-13 19:22:53843 int32_t /* sample_rate */,
844 uint32_t /* sample_frame_count */,
[email protected]be0a84b2011-08-13 04:18:44845 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20846IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
[email protected]be0a84b2011-08-13 04:18:44847 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20848 bool /* play */)
849
[email protected]631179b2011-03-14 22:26:20850// PPB_Core.
851IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
[email protected]be0a84b2011-08-13 04:18:44852 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20853IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
[email protected]be0a84b2011-08-13 04:18:44854 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20855
[email protected]eeb4e4a2011-07-19 16:22:06856// PPB_Graphics3D.
[email protected]9ed07f82012-05-29 21:54:55857IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
[email protected]eeb4e4a2011-07-19 16:22:06858 PP_Instance /* instance */,
[email protected]9ed07f82012-05-29 21:54:55859 ppapi::HostResource /* share_context */,
[email protected]eeb4e4a2011-07-19 16:22:06860 std::vector<int32_t> /* attrib_list */,
[email protected]be0a84b2011-08-13 04:18:44861 ppapi::HostResource /* result */)
[email protected]503b3a22011-12-12 23:29:40862IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
[email protected]be0a84b2011-08-13 04:18:44863 ppapi::HostResource /* context */,
[email protected]503b3a22011-12-12 23:29:40864 int32 /* transfer_buffer_id */)
[email protected]7fe4198b2014-03-18 21:52:36865IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange,
[email protected]be0a84b2011-08-13 04:18:44866 ppapi::HostResource /* context */,
[email protected]7fe4198b2014-03-18 21:52:36867 int32 /* start */,
868 int32 /* end */,
869 gpu::CommandBuffer::State /* state */,
870 bool /* success */)
871IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange,
872 ppapi::HostResource /* context */,
873 int32 /* start */,
874 int32 /* end */,
[email protected]571b35e82012-05-19 00:04:35875 gpu::CommandBuffer::State /* state */,
876 bool /* success */)
[email protected]eeb4e4a2011-07-19 16:22:06877IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
[email protected]be0a84b2011-08-13 04:18:44878 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06879 int32 /* put_offset */)
[email protected]046fa1ac2014-04-01 09:06:43880IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44881 ppapi::HostResource /* context */,
[email protected]b31199e2012-12-12 00:48:29882 uint32 /* size */,
[email protected]046fa1ac2014-04-01 09:06:43883 int32 /* id */,
884 ppapi::proxy::SerializedHandle /* transfer_buffer */)
[email protected]eeb4e4a2011-07-19 16:22:06885IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:44886 ppapi::HostResource /* context */,
[email protected]eeb4e4a2011-07-19 16:22:06887 int32 /* id */)
[email protected]eeb4e4a2011-07-19 16:22:06888IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
[email protected]be0a84b2011-08-13 04:18:44889 ppapi::HostResource /* graphics_3d */)
[email protected]b096d032013-03-08 03:08:01890IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertSyncPoint,
891 ppapi::HostResource /* context */,
892 uint32 /* sync_point */)
[email protected]7035bc92014-07-01 00:27:22893IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertFutureSyncPoint,
894 ppapi::HostResource /* context */,
895 uint32 /* sync_point */)
896IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_RetireSyncPoint,
897 ppapi::HostResource /* context */,
898 uint32 /* sync_point */)
[email protected]eeb4e4a2011-07-19 16:22:06899
[email protected]2a1d6d912011-12-04 23:29:06900// PPB_ImageData.
[email protected]4e1b91e2013-06-12 00:18:13901IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform,
[email protected]2a1d6d912011-12-04 23:29:06902 PP_Instance /* instance */,
903 int32 /* format */,
904 PP_Size /* size */,
905 PP_Bool /* init_to_zero */,
906 ppapi::HostResource /* result_resource */,
[email protected]4e1b91e2013-06-12 00:18:13907 PP_ImageDataDesc /* image_data_desc */,
[email protected]2a1d6d912011-12-04 23:29:06908 ppapi::proxy::ImageHandle /* result */)
[email protected]4e1b91e2013-06-12 00:18:13909IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateSimple,
[email protected]16b7b272012-07-25 21:54:49910 PP_Instance /* instance */,
911 int32 /* format */,
912 PP_Size /* size */,
913 PP_Bool /* init_to_zero */,
914 ppapi::HostResource /* result_resource */,
[email protected]4e1b91e2013-06-12 00:18:13915 PP_ImageDataDesc /* image_data_desc */,
[email protected]246fc492012-08-27 20:28:18916 ppapi::proxy::SerializedHandle /* result */)
[email protected]2a1d6d912011-12-04 23:29:06917
[email protected]631179b2011-03-14 22:26:20918// PPB_Instance.
919IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
920 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02921 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20922IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
923 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02924 ppapi::proxy::SerializedVar /* result */)
[email protected]473ef7d2012-12-03 23:39:05925IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics,
926 PP_Instance /* instance */,
927 PP_Resource /* device */)
[email protected]c59ed5892012-02-18 01:10:19928IPC_SYNC_MESSAGE_ROUTED1_1(
929 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
930 PP_Instance /* instance */,
931 uint32_t /* result */)
932IPC_SYNC_MESSAGE_ROUTED1_1(
933 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
934 PP_Instance /* instance */,
935 uint32_t /* result */)
[email protected]631179b2011-03-14 22:26:20936IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
937 PP_Instance /* instance */,
938 PP_Bool /* result */)
939IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
940 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02941 ppapi::proxy::SerializedVar /* script */,
942 ppapi::proxy::SerializedVar /* out_exception */,
943 ppapi::proxy::SerializedVar /* result */)
[email protected]8d770e492011-10-11 04:54:31944IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
945 PP_Instance /* instance */,
946 ppapi::proxy::SerializedVar /* result */)
[email protected]06e0a342011-09-27 04:24:30947IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
948 PP_Instance /* instance */,
949 PP_Bool /* fullscreen */,
950 PP_Bool /* result */)
951IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
952 PP_Instance /* instance */,
953 PP_Bool /* result */,
954 PP_Size /* size */)
[email protected]493d14212011-07-07 15:38:48955IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
956 PP_Instance /* instance */,
957 bool /* is_filtering */,
958 uint32_t /* event_classes */)
959IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
960 PP_Instance /* instance */,
961 uint32_t /* event_classes */)
[email protected]8062ab262014-05-27 16:56:43962IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_StartTrackingLatency,
963 PP_Instance /* instance */)
[email protected]55a5a522011-07-06 22:52:40964IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
965 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02966 ppapi::proxy::SerializedVar /* message */)
[email protected]0f41c012011-10-21 19:49:20967IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
968 PP_Instance /* instance */)
[email protected]18d871f2011-09-08 16:56:34969IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
970 PP_Instance /* instance */)
[email protected]03460232011-10-10 17:23:57971IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
972 PP_Instance /* instance */,
973 ppapi::proxy::SerializedVar /* relative */,
974 ppapi::proxy::SerializedVar /* result */)
975IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
976 PP_Instance /* instance */,
977 ppapi::proxy::SerializedVar /* relative */,
978 PP_Bool /* result */)
979IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
980 PP_Instance /* active */,
981 PP_Instance /* target */,
982 PP_Bool /* result */)
[email protected]32938de2012-10-19 18:42:32983IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL,
[email protected]03460232011-10-10 17:23:57984 PP_Instance /* active */,
[email protected]32938de2012-10-19 18:42:32985 PP_URLComponents_Dev /* components */,
[email protected]03460232011-10-10 17:23:57986 ppapi::proxy::SerializedVar /* result */)
987IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
988 PP_Instance /* active */,
989 ppapi::proxy::SerializedVar /* result */)
[email protected]f5a14022013-09-07 15:47:40990IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginReferrerURL,
991 PP_Instance /* instance */,
992 ppapi::proxy::SerializedVar /* result */)
[email protected]33ec50562012-04-08 20:28:43993IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
994 PP_Instance /* instance */,
995 int32_t /* type */,
996 ppapi::HostResource /* custom_image */,
997 PP_Point /* hot_spot */)
[email protected]4c44183a2012-04-27 16:52:23998IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
[email protected]2daba2f32011-09-29 04:23:09999 PP_Instance /* instance */,
1000 PP_TextInput_Type /* type */)
[email protected]4c44183a2012-04-27 16:52:231001IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
[email protected]2daba2f32011-09-29 04:23:091002 PP_Instance /* instance */,
1003 PP_Rect /* caret */,
1004 PP_Rect /* bounding_box */)
[email protected]4c44183a2012-04-27 16:52:231005IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
[email protected]2daba2f32011-09-29 04:23:091006 PP_Instance /* instance */)
[email protected]4c44183a2012-04-27 16:52:231007IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
[email protected]3c8c74c2012-03-15 07:34:521008 PP_Instance /* instance */,
1009 std::string /* text */,
1010 uint32_t /* caret */,
1011 uint32_t /* anchor */)
[email protected]2daba2f32011-09-29 04:23:091012
[email protected]631179b2011-03-14 22:26:201013// PPB_Var.
[email protected]154eca12014-07-14 23:55:371014IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVar_AddRefObject,
1015 int64 /* object_id */)
[email protected]631179b2011-03-14 22:26:201016IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject,
1017 int64 /* object_id */)
[email protected]631179b2011-03-14 22:26:201018IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
[email protected]4d2efd22011-08-18 21:58:021019 ppapi::proxy::SerializedVar /* object */,
1020 ppapi::proxy::SerializedVar /* property */,
1021 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201022 PP_Bool /* result */)
1023IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
[email protected]4d2efd22011-08-18 21:58:021024 ppapi::proxy::SerializedVar /* object */,
1025 ppapi::proxy::SerializedVar /* method */,
1026 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201027 PP_Bool /* result */)
1028IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
[email protected]4d2efd22011-08-18 21:58:021029 ppapi::proxy::SerializedVar /* object */,
1030 ppapi::proxy::SerializedVar /* property */,
1031 ppapi::proxy::SerializedVar /* out_exception */,
1032 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201033IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
[email protected]4d2efd22011-08-18 21:58:021034 ppapi::proxy::SerializedVar /* object */,
1035 ppapi::proxy::SerializedVar /* property */,
1036 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201037 PP_Bool /* result */)
1038IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
[email protected]4d2efd22011-08-18 21:58:021039 ppapi::proxy::SerializedVar /* object */,
1040 std::vector<ppapi::proxy::SerializedVar> /* props */,
1041 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201042IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
[email protected]4d2efd22011-08-18 21:58:021043 ppapi::proxy::SerializedVar /* object */,
1044 ppapi::proxy::SerializedVar /* name */,
1045 ppapi::proxy::SerializedVar /* value */,
1046 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201047IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
[email protected]4d2efd22011-08-18 21:58:021048 ppapi::proxy::SerializedVar /* object */,
1049 ppapi::proxy::SerializedVar /* method_name */,
1050 std::vector<ppapi::proxy::SerializedVar> /* args */,
1051 ppapi::proxy::SerializedVar /* out_exception */,
1052 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201053IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
[email protected]4d2efd22011-08-18 21:58:021054 ppapi::proxy::SerializedVar /* object */,
1055 std::vector<ppapi::proxy::SerializedVar> /* args */,
1056 ppapi::proxy::SerializedVar /* out_exception */,
1057 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201058IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
[email protected]4d2efd22011-08-18 21:58:021059 ppapi::proxy::SerializedVar /* var */,
[email protected]631179b2011-03-14 22:26:201060 int64 /* object_class */,
1061 int64 /* object-data */,
1062 PP_Bool /* result */)
1063IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1064 PP_Instance /* instance */,
1065 int64 /* object_class */,
1066 int64 /* object_data */,
[email protected]4d2efd22011-08-18 21:58:021067 ppapi::proxy::SerializedVar /* result */)
[email protected]6239d342011-05-06 22:55:471068
[email protected]246fc492012-08-27 20:28:181069#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491070// PPB_Broker.
1071IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1072 PP_Instance /* instance */,
1073 ppapi::HostResource /* result_resource */)
1074IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1075 ppapi::HostResource /* broker */)
1076
1077// PPB_Buffer.
[email protected]246fc492012-08-27 20:28:181078IPC_SYNC_MESSAGE_ROUTED2_2(
1079 PpapiHostMsg_PPBBuffer_Create,
1080 PP_Instance /* instance */,
1081 uint32_t /* size */,
1082 ppapi::HostResource /* result_resource */,
1083 ppapi::proxy::SerializedHandle /* result_shm_handle */)
[email protected]6761d632012-04-18 17:54:491084
[email protected]e5aeef02012-08-17 00:18:431085// PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
[email protected]0dbea5f2014-06-07 08:54:251086IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved,
[email protected]e5aeef02012-08-17 00:18:431087 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:251088 uint32_t /* promise_id */)
1089IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession,
1090 PP_Instance /* instance */,
1091 uint32_t /* promise_id */,
[email protected]a267ff12013-12-10 07:25:541092 ppapi::proxy::SerializedVar /* web_session_id, String */)
[email protected]0dbea5f2014-06-07 08:54:251093IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected,
1094 PP_Instance /* instance */,
1095 uint32_t /* promise_id */,
1096 PP_CdmExceptionCode /* exception_code */,
1097 int32_t /* system_code */,
1098 ppapi::proxy::SerializedVar /* error_description, String */)
[email protected]da34aa72013-11-30 05:24:471099IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage,
[email protected]e5aeef02012-08-17 00:18:431100 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:251101 ppapi::proxy::SerializedVar /* web_session_id, String */,
[email protected]a6e4fbf2012-12-12 05:25:001102 ppapi::proxy::SerializedVar /* message, ArrayBuffer */,
[email protected]da34aa72013-11-30 05:24:471103 ppapi::proxy::SerializedVar /* destination_url, String */)
1104IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady,
1105 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:251106 ppapi::proxy::SerializedVar /* web_session_id, String */)
[email protected]da34aa72013-11-30 05:24:471107IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed,
1108 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:251109 ppapi::proxy::SerializedVar /* web_session_id, String */)
1110IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError,
[email protected]e5aeef02012-08-17 00:18:431111 PP_Instance /* instance */,
[email protected]0dbea5f2014-06-07 08:54:251112 ppapi::proxy::SerializedVar /* web_session_id, String */,
1113 PP_CdmExceptionCode /* exception_code */,
1114 int32_t /* system_code */,
1115 ppapi::proxy::SerializedVar /* error_description, String */)
[email protected]e5aeef02012-08-17 00:18:431116IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1117 PP_Instance /* instance */,
1118 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221119 std::string /* serialized_block_info */)
[email protected]c999b3b72012-10-19 22:33:461120IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone,
[email protected]e9d3a1022012-10-11 23:43:551121 PP_Instance /* instance */,
[email protected]c999b3b72012-10-19 22:33:461122 PP_DecryptorStreamType /* decoder_type */,
1123 uint32_t /* request_id */,
1124 PP_Bool /* success */)
[email protected]23de87452012-10-12 07:03:091125IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
1126 PP_Instance /* instance */,
1127 PP_DecryptorStreamType /* decoder_type */,
1128 uint32_t /* request_id */)
1129IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone,
1130 PP_Instance /* instance */,
1131 PP_DecryptorStreamType /* decoder_type */,
1132 uint32_t /* request_id */)
[email protected]e5aeef02012-08-17 00:18:431133IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1134 PP_Instance /* instance */,
1135 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221136 std::string /* serialized_block_info */)
[email protected]e5aeef02012-08-17 00:18:431137IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1138 PP_Instance /* instance */,
[email protected]c999b3b72012-10-19 22:33:461139 PP_Resource /* audio_frames, PPB_Buffer_Dev */,
[email protected]98ad9782012-08-22 04:06:221140 std::string /* serialized_block_info */)
[email protected]e8f578d2012-09-17 19:27:101141#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e5aeef02012-08-17 00:18:431142
[email protected]6761d632012-04-18 17:54:491143// PPB_Testing.
1144IPC_SYNC_MESSAGE_ROUTED3_1(
1145 PpapiHostMsg_PPBTesting_ReadImageData,
1146 ppapi::HostResource /* device_context_2d */,
1147 ppapi::HostResource /* image */,
1148 PP_Point /* top_left */,
1149 PP_Bool /* result */)
1150IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1151 PP_Instance /* instance */,
1152 uint32 /* result */)
[email protected]82ad9b9f2013-06-14 00:35:331153IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1154 PP_Instance /* instance */,
1155 ppapi::InputEventData /* input_event */)
[email protected]38f428f12013-04-19 14:46:051156IPC_SYNC_MESSAGE_ROUTED1_0(
1157 PpapiHostMsg_PPBTesting_SetMinimumArrayBufferSizeForShmem,
1158 uint32_t /* threshold */)
[email protected]6761d632012-04-18 17:54:491159
[email protected]667591d2012-09-04 21:30:121160#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]0fa46e82011-08-09 07:31:491161
[email protected]bf398e262014-03-26 19:22:241162// PPB_VideoDecoder_Dev.
1163// (Messages from plugin to renderer.)
[email protected]7ace8ad2011-08-06 03:23:581164IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1165 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441166 ppapi::HostResource /* context */,
[email protected]2ffc31a2011-09-01 03:18:281167 PP_VideoDecoder_Profile /* profile */,
[email protected]be0a84b2011-08-13 04:18:441168 ppapi::HostResource /* result */)
[email protected]7ace8ad2011-08-06 03:23:581169IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
[email protected]be0a84b2011-08-13 04:18:441170 ppapi::HostResource /* video_decoder */,
1171 ppapi::HostResource /* bitstream buffer */,
[email protected]7ace8ad2011-08-06 03:23:581172 int32 /* bitstream buffer id */,
[email protected]b31199e2012-12-12 00:48:291173 uint32 /* size of buffer */)
[email protected]7ace8ad2011-08-06 03:23:581174IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
[email protected]be0a84b2011-08-13 04:18:441175 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581176 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1177IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
[email protected]be0a84b2011-08-13 04:18:441178 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581179 int32_t /* picture buffer id */)
1180IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
[email protected]be0a84b2011-08-13 04:18:441181 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581182IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
[email protected]be0a84b2011-08-13 04:18:441183 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581184IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
[email protected]be0a84b2011-08-13 04:18:441185 ppapi::HostResource /* video_decoder */)
[email protected]339fbcff2012-02-29 16:10:321186
[email protected]bf398e262014-03-26 19:22:241187// PPB_VideoDecoder_Dev.
1188// (Messages from renderer to plugin to notify it to run callbacks.)
1189IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
1190 ppapi::HostResource /* video_decoder */,
1191 int32_t /* bitstream buffer id */,
1192 int32_t /* PP_CompletionCallback result */)
1193IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
1194 ppapi::HostResource /* video_decoder */,
1195 int32_t /* PP_CompletionCallback result */)
1196IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
1197 ppapi::HostResource /* video_decoder */,
1198 int32_t /* PP_CompletionCallback result */)
1199
1200// PPP_VideoDecoder_Dev.
1201IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
1202 ppapi::HostResource /* video_decoder */,
1203 uint32_t /* requested number of buffers */,
1204 PP_Size /* dimensions of buffers */,
1205 uint32_t /* texture_target */)
1206IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
1207 ppapi::HostResource /* video_decoder */,
1208 int32_t /* picture buffer id */)
1209IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
1210 ppapi::HostResource /* video_decoder */,
1211 PP_Picture_Dev /* output picture */)
1212IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
1213 ppapi::HostResource /* video_decoder */,
1214 PP_VideoDecodeError_Dev /* error */)
[email protected]667591d2012-09-04 21:30:121215#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321216
[email protected]de2895262012-04-04 17:15:481217// PPB_X509Certificate_Private
1218IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1219 std::vector<char> /* der */,
1220 bool /* succeeded */,
1221 ppapi::PPB_X509Certificate_Fields /* result */)
1222
[email protected]077ecfd42012-06-21 21:46:261223//-----------------------------------------------------------------------------
1224// Resource call/reply messages.
1225//
1226// These are the new-style resource implementations where the resource is only
1227// implemented in the proxy and "resource messages" are sent between this and a
1228// host object. Resource messages are a wrapper around some general routing
1229// information and a separate message of a type defined by the specific resource
1230// sending/receiving it. The extra paremeters allow the nested message to be
1231// routed automatically to the correct resource.
1232
1233// Notification that a resource has been created in the plugin. The nested
1234// message will be resource-type-specific.
1235IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1236 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1237 PP_Instance /* instance */,
1238 IPC::Message /* nested_msg */)
1239
1240// Notification that a resource has been destroyed in the plugin.
1241IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1242 PP_Resource /* resource */)
1243
[email protected]db70c132012-12-05 00:41:201244// Most resources are created by the plugin, which then sends a ResourceCreated
1245// message to create a corresponding ResourceHost in the renderer or browser
1246// host process. However, some resources are first created in the host and
1247// "pushed" or returned to the plugin.
1248//
1249// In this case, the host will create a "pending" ResourceHost object which
1250// is identified by an ID. The ID is sent to the plugin process and the
1251// PluginResource object is created. This message is sent from the plugin to
1252// the host process to connect the PluginResource and the pending ResourceHost
1253// (at which point, it's no longer pending).
1254IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost,
1255 PP_Resource /* resource */,
1256 int /* pending_host_id */)
1257
[email protected]077ecfd42012-06-21 21:46:261258// A resource call is a request from the plugin to the host. It may or may not
1259// require a reply, depending on the params. The nested message will be
1260// resource-type-specific.
1261IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1262 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1263 IPC::Message /* nested_msg */)
[email protected]0d586af2013-07-31 21:58:061264IPC_MESSAGE_CONTROL3(PpapiHostMsg_InProcessResourceCall,
1265 int /* routing_id */,
1266 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1267 IPC::Message /* nested_msg */)
[email protected]077ecfd42012-06-21 21:46:261268
1269// A resource reply is a response to a ResourceCall from a host to the
1270// plugin. The resource ID + sequence number in the params will correspond to
1271// that of the previous ResourceCall.
1272IPC_MESSAGE_CONTROL2(
1273 PpapiPluginMsg_ResourceReply,
1274 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1275 IPC::Message /* nested_msg */)
[email protected]0d586af2013-07-31 21:58:061276IPC_MESSAGE_ROUTED2(
1277 PpapiHostMsg_InProcessResourceReply,
1278 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1279 IPC::Message /* nested_msg */)
1280
[email protected]ff44fc12012-10-03 00:52:161281IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1282 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1283 IPC::Message /* nested_msg */,
1284 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1285 IPC::Message /* reply_msg */)
1286
[email protected]c5425572013-06-07 22:15:251287// This message is sent from the renderer to the browser when it wants to create
[email protected]67901072013-08-22 00:43:401288// ResourceHosts in the browser. It contains the process ID of the plugin and
[email protected]c5425572013-06-07 22:15:251289// the instance of the plugin for which to create the resource for. params
1290// contains the sequence number for the message to track the response.
[email protected]67901072013-08-22 00:43:401291// The nested messages are ResourceHost creation messages.
[email protected]44dc2362013-07-09 23:41:531292IPC_MESSAGE_CONTROL5(
[email protected]67901072013-08-22 00:43:401293 PpapiHostMsg_CreateResourceHostsFromHost,
[email protected]44dc2362013-07-09 23:41:531294 int /* routing_id */,
[email protected]c5425572013-06-07 22:15:251295 int /* child_process_id */,
1296 ppapi::proxy::ResourceMessageCallParams /* params */,
1297 PP_Instance /* instance */,
[email protected]67901072013-08-22 00:43:401298 std::vector<IPC::Message> /* nested_msgs */)
[email protected]c5425572013-06-07 22:15:251299
[email protected]67901072013-08-22 00:43:401300// This message is sent from the browser to the renderer when it has created
1301// ResourceHosts for the renderer. It contains the sequence number that was sent
1302// in the request and the IDs of the pending ResourceHosts which were created in
1303// the browser. These IDs are only useful for the plugin which can attach to the
1304// ResourceHosts in the browser.
[email protected]44dc2362013-07-09 23:41:531305IPC_MESSAGE_ROUTED2(
[email protected]67901072013-08-22 00:43:401306 PpapiHostMsg_CreateResourceHostsFromHostReply,
[email protected]c5425572013-06-07 22:15:251307 int32_t /* sequence */,
[email protected]67901072013-08-22 00:43:401308 std::vector<int> /* pending_host_ids */)
[email protected]c5425572013-06-07 22:15:251309
[email protected]eccf80312012-07-14 15:43:421310//-----------------------------------------------------------------------------
1311// Messages for resources using call/reply above.
1312
[email protected]83d12c8d2012-12-10 19:28:461313// Broker ----------------------------------------------------------------------
1314IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1315
1316// Queries whether the plugin has permission to connect to the Pepper broker.
1317// The response is contained in the error value of the
1318// ResourceMessageReplyParams in the reply message.
1319IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
1320
[email protected]45649492014-01-24 20:49:341321// UMA
1322IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_Create)
1323IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomTimes,
1324 std::string /* name */,
1325 int64_t /* sample */,
1326 int64_t /* min */,
1327 int64_t /* max */,
1328 uint32_t /* bucket_count */)
1329IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomCounts,
1330 std::string /* name */,
1331 int32_t /* sample */,
1332 int32_t /* min */,
1333 int32_t /* max */,
1334 uint32_t /* bucket_count */)
1335IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration,
1336 std::string /* name */,
1337 int32_t /* sample */,
1338 int32_t /* boundary_value */)
[email protected]b2c1c332014-06-26 06:08:401339IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled)
1340IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply)
[email protected]45649492014-01-24 20:49:341341
[email protected]c44620b2014-06-16 14:20:261342// Compositor
1343IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create)
1344IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers,
1345 std::vector<ppapi::CompositorLayerData> /* layers */,
1346 bool /* reset */)
1347IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply)
1348IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource,
1349 int32_t /* id */,
1350 uint32_t /* sync_point */,
1351 bool /* is_lost */)
1352
[email protected]eccf80312012-07-14 15:43:421353// File chooser.
1354IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1355IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1356 bool /* save_as */,
1357 bool /* open_multiple */,
1358 std::string /* suggested_file_name */,
1359 std::vector<std::string> /* accept_mime_types */)
1360IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
[email protected]c6420f082013-09-18 22:42:411361 std::vector<ppapi::FileRefCreateInfo> /* files */)
[email protected]f5118812012-08-24 19:54:301362
[email protected]c77144722013-01-19 04:16:361363// FileIO
1364IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1365IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1366 PP_Resource /* file_ref_resource */,
1367 int32_t /* open_flags */)
[email protected]7a90b852013-12-28 17:54:271368IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply,
1369 PP_Resource /* quota_file_system */,
[email protected]540d6af42014-01-28 21:19:031370 int64_t /* file_size */)
[email protected]7a90b852013-12-28 17:54:271371IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close,
[email protected]540d6af42014-01-28 21:19:031372 ppapi::FileGrowth /* file_growth */)
[email protected]c77144722013-01-19 04:16:361373IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1374 PP_Time /* last_access_time */,
1375 PP_Time /* last_modified_time */)
[email protected]c77144722013-01-19 04:16:361376IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1377 int64_t /* length */)
1378IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
[email protected]8f96cef2013-04-01 16:51:131379IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1380IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
[email protected]c77144722013-01-19 04:16:361381IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1382
[email protected]d1967ed2013-06-18 01:10:211383// FileRef
[email protected]7d634392013-07-22 21:03:211384// Creates a FileRef to a path on an external file system. This message may
1385// only be sent from the renderer.
[email protected]2e0ec622014-04-11 07:18:321386IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS,
[email protected]7d634392013-07-22 21:03:211387 base::FilePath /* external_path */)
1388
[email protected]2e0ec622014-04-11 07:18:321389// Creates a FileRef to a path on a file system that uses fileapi.
1390// This message may be sent from the renderer or the plugin.
1391IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI,
[email protected]d1967ed2013-06-18 01:10:211392 PP_Resource /* file_system */,
1393 std::string /* internal_path */)
1394
1395// Requests that the browser create a directory at the location indicated by
1396// the FileRef.
1397IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_MakeDirectory,
[email protected]491af3c2014-01-10 11:34:121398 int32_t /* make_directory_flags */)
[email protected]d1967ed2013-06-18 01:10:211399IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_MakeDirectoryReply)
1400
1401// Requests that the browser update the last accessed and last modified times
1402// at the location indicated by the FileRef.
1403IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_Touch,
1404 PP_Time /* last_accessed */,
1405 PP_Time /* last_modified */)
1406IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_TouchReply)
1407
1408// Requests that the browser delete a file or directory at the location
1409// indicated by the FileRef.
1410IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Delete)
1411IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_DeleteReply)
1412
1413// Requests that the browser rename a file or directory at the location
1414// indicated by the FileRef.
1415IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_Rename,
1416 PP_Resource /* new_file_ref */)
1417IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_RenameReply)
1418
1419// Requests that the browser retrieve metadata information for a file or
1420// directory at the location indicated by the FileRef.
1421IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Query)
1422IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_QueryReply,
1423 PP_FileInfo /* file_info */)
1424
1425// Requests that the browser retrieve then entries in a directory at the
1426// location indicated by the FileRef.
1427IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries)
1428
[email protected]c6420f082013-09-18 22:42:411429// FileRefCreateInfo does not provide file type information, so two
[email protected]d1967ed2013-06-18 01:10:211430// corresponding vectors are returned.
1431IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply,
[email protected]c6420f082013-09-18 22:42:411432 std::vector<ppapi::FileRefCreateInfo> /* files */,
[email protected]d1967ed2013-06-18 01:10:211433 std::vector<PP_FileType> /* file_types */)
1434
1435// Requests that the browser reply with the absolute path to the indicated
1436// file.
1437IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_GetAbsolutePath)
1438IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_GetAbsolutePathReply,
1439 std::string /* absolute_path */)
1440
[email protected]ef9225f2013-04-12 20:28:141441// FileSystem
1442IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create,
1443 PP_FileSystemType /* type */)
1444IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open,
1445 int64_t /* expected_size */)
1446IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply)
[email protected]435945742013-11-08 06:31:111447IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_InitIsolatedFileSystem,
1448 std::string /* fsid */,
1449 PP_IsolatedFileSystemType_Private /* type */)
[email protected]d6e3c792013-08-26 19:30:271450IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_InitIsolatedFileSystemReply)
[email protected]17d69d82013-10-31 10:59:031451// Passed from renderer to browser. Creates an already-open file system with a
1452// given |root_url| and |file_system_type|.
1453IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer,
1454 std::string /* root_url */,
1455 PP_FileSystemType /* file_system_type */)
1456// Nested within a ResourceVar for file systems being passed from the renderer
1457// to the plugin. Creates an already-open file system resource on the plugin,
1458// linked to the existing resource host given in the ResourceVar.
1459IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost,
1460 PP_FileSystemType /* file_system_type */)
[email protected]7a90b852013-12-28 17:54:271461IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota,
1462 int64_t /* amount */,
[email protected]540d6af42014-01-28 21:19:031463 ppapi::FileGrowthMap /* file_growths */)
[email protected]7a90b852013-12-28 17:54:271464IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply,
1465 int64_t /* amount */,
[email protected]540d6af42014-01-28 21:19:031466 ppapi::FileSizeMap /* file_sizes */)
[email protected]ef9225f2013-04-12 20:28:141467
[email protected]f5118812012-08-24 19:54:301468// Gamepad.
1469IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
[email protected]00c0d042012-09-10 07:06:391470
1471// Requests that the gamepad host send the shared memory handle to the plugin
1472// process.
[email protected]f5118812012-08-24 19:54:301473IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
[email protected]00c0d042012-09-10 07:06:391474
1475// Reply to a RequestMemory call. This supplies the shared memory handle. The
1476// actual handle is passed in the ReplyParams struct.
1477IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1478
[email protected]08e65c12012-11-29 18:53:291479
1480// Graphics2D, plugin -> host
1481IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create,
1482 PP_Size /* size */,
1483 PP_Bool /* is_always_opaque */)
1484IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData,
1485 ppapi::HostResource /* image_data */,
1486 PP_Point /* top_left */,
1487 bool /* src_rect_specified */,
1488 PP_Rect /* src_rect */)
1489IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll,
1490 bool /* clip_specified */,
1491 PP_Rect /* clip */,
1492 PP_Point /* amount */)
1493IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents,
1494 ppapi::HostResource /* image_data */)
[email protected]bd51beb2014-04-03 00:39:471495IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale,
[email protected]08e65c12012-11-29 18:53:291496 float /* scale */)
1497
1498// Graphics2D, plugin -> host -> plugin
[email protected]8062ab262014-05-27 16:56:431499IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Flush,
1500 std::vector<ui::LatencyInfo> /* latency_info */)
[email protected]08e65c12012-11-29 18:53:291501IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1502
1503IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1504 PP_Resource /* image */,
1505 PP_Point /* top_left */)
1506IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1507
[email protected]435945742013-11-08 06:31:111508// IsolatedFileSystem
1509IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create)
1510IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen,
1511 PP_IsolatedFileSystemType_Private /* type */)
1512IPC_MESSAGE_CONTROL1(PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply,
1513 std::string /* fsid */)
1514
[email protected]03bf382f2014-01-16 05:49:501515// MediaStream -----------------------------------------------------------------
[email protected]2b7a6d32014-02-06 02:50:231516IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamAudioTrack_CreateFromPendingHost,
1517 std::string /* track_id */)
[email protected]5e19b8b2014-06-03 13:36:421518IPC_MESSAGE_CONTROL1(
1519 PpapiHostMsg_MediaStreamAudioTrack_Configure,
1520 ppapi::MediaStreamAudioTrackShared::Attributes /* attributes */)
1521IPC_MESSAGE_CONTROL0(PpapiPluginMsg_MediaStreamAudioTrack_ConfigureReply)
[email protected]03bf382f2014-01-16 05:49:501522IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_CreateFromPendingHost,
1523 std::string /* track_id */)
[email protected]5294ec92014-05-05 23:36:521524IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamVideoTrack_Create)
[email protected]61ebd74e2014-02-26 00:44:051525IPC_MESSAGE_CONTROL1(
1526 PpapiHostMsg_MediaStreamVideoTrack_Configure,
1527 ppapi::MediaStreamVideoTrackShared::Attributes /* attributes */)
[email protected]5294ec92014-05-05 23:36:521528IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_ConfigureReply,
1529 std::string /* track_id */)
[email protected]2b7a6d32014-02-06 02:50:231530
[email protected]a2c5dcd2014-02-08 03:20:151531// Message for init buffers. It also takes a shared memory handle which is put
1532// in the outer ResourceReplyMessage.
[email protected]5294ec92014-05-05 23:36:521533IPC_MESSAGE_CONTROL3(PpapiPluginMsg_MediaStreamTrack_InitBuffers,
[email protected]a2c5dcd2014-02-08 03:20:151534 int32_t /* number_of_buffers */,
[email protected]5294ec92014-05-05 23:36:521535 int32_t /* buffer_size */,
1536 bool /* readonly */)
[email protected]a2c5dcd2014-02-08 03:20:151537IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffer,
[email protected]b2c1c332014-06-26 06:08:401538 int32_t /* index */)
[email protected]a2c5dcd2014-02-08 03:20:151539IPC_MESSAGE_CONTROL1(PpapiHostMsg_MediaStreamTrack_EnqueueBuffer,
[email protected]b2c1c332014-06-26 06:08:401540 int32_t /* index */)
[email protected]5294ec92014-05-05 23:36:521541IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffers,
[email protected]b2c1c332014-06-26 06:08:401542 std::vector<int32_t> /* indices */)
[email protected]03bf382f2014-01-16 05:49:501543IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamTrack_Close)
1544
[email protected]07d0a6bf2013-09-17 04:15:101545// NetworkMonitor.
1546IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create)
1547IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList,
1548 ppapi::proxy::SerializedNetworkList /* network_list */)
1549IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden)
1550
[email protected]226dea42013-06-24 21:05:361551// NetworkProxy ----------------------------------------------------------------
1552IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create)
1553
1554// Query the browser for the proxy server to use for the given URL.
1555IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL,
1556 std::string /* url */)
1557
1558// Reply message for GetProxyForURL containing the proxy server.
1559IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply,
1560 std::string /* proxy */)
1561
[email protected]725056b72013-03-16 09:57:511562// TrueTypeFont.
1563IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create)
1564IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies)
1565IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply,
1566 std::vector<std::string> /* font_families */)
[email protected]720e1e622013-04-19 03:50:351567IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily,
1568 std::string /* family */)
1569IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply,
1570 std::vector<ppapi::proxy::SerializedTrueTypeFontDesc>
1571 /* fonts */)
[email protected]725056b72013-03-16 09:57:511572IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create,
1573 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */)
[email protected]c0ec81612014-06-26 21:28:181574// Unsolicited reply to return the actual font's desc to the plugin.
1575IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TrueTypeFont_CreateReply,
1576 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */,
1577 int32_t /* result */)
[email protected]725056b72013-03-16 09:57:511578IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags)
1579IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply,
1580 std::vector<uint32_t> /* tags */)
1581IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable,
1582 uint32_t /* table */,
1583 int32_t /* offset */,
1584 int32_t /* max_data_length */)
1585IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply,
1586 std::string /* data */)
1587
[email protected]f31e55c2013-06-20 08:44:371588// Host Resolver ---------------------------------------------------------------
1589// Creates a PPB_HostResolver resource.
1590IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_Create)
1591
1592// Creates a PPB_HostResolver_Private resource.
1593IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_CreatePrivate)
1594
1595// Resolves the given hostname.
1596IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolver_Resolve,
[email protected]6a685372013-02-12 12:50:461597 ppapi::HostPortPair /* host_port */,
1598 PP_HostResolver_Private_Hint /* hint */)
[email protected]f31e55c2013-06-20 08:44:371599
1600// This message is a reply to HostResolver_Resolve. On success,
1601// |canonical_name| contains the canonical name of the host; |net_address_list|
1602// is a list of network addresses. On failure, both fields are set to empty.
1603IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply,
[email protected]6a685372013-02-12 12:50:461604 std::string /* canonical_name */,
1605 std::vector<PP_NetAddress_Private> /* net_address_list */)
[email protected]08e65c12012-11-29 18:53:291606
[email protected]b1a9d9a92013-09-17 20:58:271607// Platform Verification -------------------------------------------------------
1608IPC_MESSAGE_CONTROL0(PpapiHostMsg_PlatformVerification_Create)
[email protected]b1a9d9a92013-09-17 20:58:271609IPC_MESSAGE_CONTROL2(PpapiHostMsg_PlatformVerification_ChallengePlatform,
1610 std::string /* service_id */,
1611 std::vector<uint8_t> /* challenge */)
1612IPC_MESSAGE_CONTROL3(PpapiHostMsg_PlatformVerification_ChallengePlatformReply,
1613 std::vector<uint8_t> /* signed_data */,
1614 std::vector<uint8_t> /* signed_data_signature */,
1615 std::string /* platform_key_certificate */)
1616
[email protected]e9cb0b792012-09-07 07:11:061617// Printing.
1618IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1619IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1620IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1621 PP_PrintSettings_Dev /* print_settings */)
[email protected]9d5eadf2012-10-09 03:43:481622
[email protected]8522332e2013-08-28 19:42:591623// TCP Socket ------------------------------------------------------------------
1624// Creates a PPB_TCPSocket resource.
[email protected]92576792013-09-20 15:29:131625IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Create,
1626 ppapi::TCPSocketVersion /* version */)
[email protected]8522332e2013-08-28 19:42:591627
1628// Creates a PPB_TCPSocket_Private resource.
1629IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate)
1630
[email protected]92576792013-09-20 15:29:131631IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Bind,
1632 PP_NetAddress_Private /* net_addr */)
1633IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_BindReply,
1634 PP_NetAddress_Private /* local_addr */)
[email protected]8522332e2013-08-28 19:42:591635IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect,
1636 std::string /* host */,
1637 uint16_t /* port */)
1638IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress,
1639 PP_NetAddress_Private /* net_addr */)
1640IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply,
1641 PP_NetAddress_Private /* local_addr */,
1642 PP_NetAddress_Private /* remote_addr */)
1643IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake,
1644 std::string /* server_name */,
1645 uint16_t /* server_port */,
1646 std::vector<std::vector<char> > /* trusted_certs */,
1647 std::vector<std::vector<char> > /* untrusted_certs */)
1648IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply,
1649 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
1650IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read,
1651 int32_t /* bytes_to_read */)
1652IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply,
1653 std::string /* data */)
1654IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write,
1655 std::string /* data */)
1656IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply)
[email protected]92576792013-09-20 15:29:131657IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Listen,
1658 int32_t /* backlog */)
1659IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_ListenReply)
1660IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Accept)
1661IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPSocket_AcceptReply,
1662 int /* pending_host_id*/,
1663 PP_NetAddress_Private /* local_addr */,
1664 PP_NetAddress_Private /* remote_addr */)
1665IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Close)
[email protected]8522332e2013-08-28 19:42:591666IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption,
1667 PP_TCPSocket_Option /* name */,
1668 ppapi::SocketOptionData /* value */)
1669IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply)
1670
[email protected]1f9ed192013-08-05 11:59:421671// TCP Server Socket -----------------------------------------------------------
1672// Creates a PPB_TCPServerSocket_Private resource.
1673IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate)
1674
1675IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen,
1676 PP_NetAddress_Private /* addr */,
1677 int32_t /* backlog */)
1678IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply,
1679 PP_NetAddress_Private /* local_addr */)
[email protected]8522332e2013-08-28 19:42:591680IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept)
[email protected]1f9ed192013-08-05 11:59:421681IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply,
[email protected]8522332e2013-08-28 19:42:591682 int /* pending_resource_id */,
[email protected]1f9ed192013-08-05 11:59:421683 PP_NetAddress_Private /* local_addr */,
1684 PP_NetAddress_Private /* remote_addr */)
1685IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening)
1686
[email protected]64a61fc2013-06-19 13:30:591687// UDP Socket ------------------------------------------------------------------
1688// Creates a PPB_UDPSocket resource.
1689IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create)
1690
1691// Creates a PPB_UDPSocket_Private resource.
1692IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate)
1693
1694IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption,
[email protected]8de13292013-06-24 06:04:391695 PP_UDPSocket_Option /* name */,
[email protected]64a61fc2013-06-19 13:30:591696 ppapi::SocketOptionData /* value */)
1697IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply)
1698IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind,
1699 PP_NetAddress_Private /* net_addr */)
1700IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply,
1701 PP_NetAddress_Private /* bound_addr */)
1702IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_RecvFrom,
1703 int32_t /* num_bytes */)
1704IPC_MESSAGE_CONTROL2(PpapiPluginMsg_UDPSocket_RecvFromReply,
1705 std::string /* data */,
1706 PP_NetAddress_Private /* remote_addr */)
1707IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo,
1708 std::string /* data */,
1709 PP_NetAddress_Private /* net_addr */)
1710IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply,
1711 int32_t /* bytes_written */)
1712IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close)
1713
[email protected]47cb253f2013-05-16 01:50:401714// URLLoader ------------------------------------------------------------------
1715
1716IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create)
1717
1718// These messages correspond to PPAPI calls and all should get a
1719// CallbackComplete message.
1720IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open,
1721 ppapi::URLRequestInfoData /* request_data */)
1722
1723// The plugin can tell the host to defer a load to hold off on sending more
1724// data because the buffer in the plugin is full. When defers_loading is set to
1725// false, data streaming will resume.
1726//
1727// When auditing redirects (no auto follow) the load will be automatically
1728// deferred each time we get a redirect. The plugin will reset this to false
1729// by sending this message when it wants to continue following the redirect.
1730//
1731// When streaming data, the host may still send more data after this call (for
1732// example, it could already be in-flight at the time of this request).
1733IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading,
1734 bool /* defers_loading */)
1735
1736// Closes the URLLoader. There is no reply.
1737IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Close)
1738
1739// Requests that cross-site restrictions be ignored. The plugin must have
1740// the private permission set. Otherwise this message will be ignored by the
1741// renderer. There is no reply.
1742IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess)
1743
1744// Push notification that a response is available.
1745IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_ReceivedResponse,
1746 ppapi::URLResponseInfoData /* response */)
1747
1748// Push notification with load data from the renderer. It is a custom generated
1749// message with the response data (array of bytes stored via WriteData)
1750// appended.
1751IPC_MESSAGE_CONTROL0(PpapiPluginMsg_URLLoader_SendData)
1752
1753// Push notification indicating that all data has been sent, either via
1754// SendData or by streaming it to a file. Note that since this is a push
1755// notification, we don't use the result field of the ResourceMessageReply.
1756IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_FinishedLoading,
1757 int32_t /* result */)
1758
1759// Push notification from the renderer to the plugin to tell it about download
1760// and upload progress. This will only be sent if the plugin has requested
1761// progress updates, and only the fields requested by the plugin will be
1762// valid.
1763IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress,
1764 int64_t /* bytes_sent */,
1765 int64_t /* total_bytes_to_be_sent */,
1766 int64_t /* bytes_received */,
1767 int64_t /* total_bytes_to_be_received */)
1768
[email protected]30e1cb752013-03-19 20:42:331769// Shared memory ---------------------------------------------------------------
[email protected]47cb253f2013-05-16 01:50:401770
[email protected]30e1cb752013-03-19 20:42:331771// Creates shared memory on the host side, returning a handle to the shared
1772// memory on the plugin and keeping the memory mapped in on the host.
1773// We return a "host handle_id" that can be mapped back to the
1774// handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle().
1775IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory,
1776 PP_Instance /* instance */,
1777 uint32_t /* size */,
1778 int /* host_handle_id */,
1779 ppapi::proxy::SerializedHandle /* plugin_handle */)
1780
[email protected]558c1902013-06-20 07:59:151781// MediaStream -----------------------------------------------------------------
1782
1783// VideoDestination Private.
1784IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Create)
1785IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDestination_Open,
1786 std::string /* stream_url */)
1787IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDestination_OpenReply)
1788IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDestination_PutFrame,
1789 ppapi::HostResource /* image_data */,
1790 PP_TimeTicks /* timestamp */)
1791IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Close)
1792
1793// VideoSource Private.
1794IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Create)
1795IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open,
1796 std::string /* stream_url */)
1797IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply)
1798IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame)
1799IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply,
1800 ppapi::HostResource /* resource_id */,
1801 PP_ImageDataDesc /* image_data_desc */,
1802 PP_TimeTicks /* timestamp */)
1803IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close)
1804
[email protected]47cb253f2013-05-16 01:50:401805// WebSocket -------------------------------------------------------------------
1806
[email protected]9d5eadf2012-10-09 03:43:481807IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1808
1809// Establishes the connection to a server. This message requires
1810// WebSocket_ConnectReply as a reply message.
1811IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1812 std::string /* url */,
1813 std::vector<std::string> /* protocols */)
1814
1815// Closes established connection with graceful closing handshake. This message
1816// requires WebSocket_CloseReply as a reply message.
1817IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close,
1818 int32_t /* code */,
1819 std::string /* reason */)
1820
1821// Sends a text frame to the server. No reply is defined.
1822IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText,
1823 std::string /* message */)
1824
1825// Sends a binary frame to the server. No reply is defined.
1826IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary,
1827 std::vector<uint8_t> /* message */)
1828
1829// Fails the connection. This message invokes RFC6455 defined
1830// _Fail the WebSocket Connection_ operation. No reply is defined.
1831IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail,
1832 std::string /* message */)
1833
1834// This message is a reply to WebSocket_Connect. If the |url| and |protocols|
1835// are invalid, WebSocket_ConnectReply is issued immediately and it contains
1836// proper error code in its result. Otherwise, WebSocket_ConnectReply is sent
1837// with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed
1838// |protocols|, but a result of opening handshake negotiation. If the
1839// connection can not be established successfully, WebSocket_ConnectReply is
1840// not issued, but WebSocket_ClosedReply is sent instead.
1841IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply,
1842 std::string /* url */,
1843 std::string /* protocol */)
1844
1845// This message is a reply to WebSocket_Close. If the operation fails,
1846// WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED.
1847// Otherwise, CloseReply will be issued after the closing handshake is
1848// finished. All arguments will be valid iff the result is PP_OK and it means
1849// that the client initiated closing handshake is finished gracefully.
1850IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply,
[email protected]76e6df02012-11-09 01:43:071851 uint64_t /* buffered_amount */,
[email protected]9d5eadf2012-10-09 03:43:481852 bool /* was_clean */,
[email protected]76e6df02012-11-09 01:43:071853 uint16_t /* code */,
[email protected]9d5eadf2012-10-09 03:43:481854 std::string /* reason */)
1855
1856// Unsolicited reply message to transmit a receiving text frame.
1857IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply,
1858 std::string /* message */)
1859
1860// Unsolicited reply message to transmit a receiving binary frame.
1861IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply,
1862 std::vector<uint8_t> /* message */)
1863
1864// Unsolicited reply message to notify a error on underlying network connetion.
1865IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply)
1866
1867// Unsolicited reply message to update the buffered amount value.
1868IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply,
[email protected]76e6df02012-11-09 01:43:071869 uint64_t /* buffered_amount */)
[email protected]9d5eadf2012-10-09 03:43:481870
1871// Unsolicited reply message to update |state| because of incoming external
1872// events, e.g., protocol error, or unexpected network closure.
1873IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply,
1874 int32_t /* state */)
1875
1876// Unsolicited reply message to notify that the connection is closed without
1877// any WebSocket_Close request. Server initiated closing handshake or
1878// unexpected network errors will invoke this message.
1879IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply,
[email protected]76e6df02012-11-09 01:43:071880 uint64_t /* buffered_amount */,
[email protected]9d5eadf2012-10-09 03:43:481881 bool /* was_clean */,
[email protected]76e6df02012-11-09 01:43:071882 uint16_t /* code */,
[email protected]9d5eadf2012-10-09 03:43:481883 std::string /* reason */)
[email protected]cb65f132012-10-09 17:06:091884
[email protected]a1ab6d82013-09-28 13:49:541885// OutputProtection -----------------------------------------------------------
1886
1887IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create)
1888IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection,
1889 uint32_t /* desired_method_mask */)
1890IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply)
1891IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus)
1892IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply,
1893 uint32_t /* link_mask */,
1894 uint32_t /* protection_mask */)
1895
[email protected]dfb0d06f32014-05-30 22:45:561896// VideoDecoder ------------------------------------------------------
1897
1898IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create)
1899IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Initialize,
1900 ppapi::HostResource /* graphics_context */,
1901 PP_VideoProfile /* profile */,
1902 bool /* allow_software_fallback */)
1903IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply)
1904IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm,
1905 uint32_t /* shm_id */,
1906 uint32_t /* shm_size */)
1907// On success, a shm handle is passed in the ReplyParams struct.
1908IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply,
1909 uint32_t /* shm_size */)
1910IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Decode,
1911 uint32_t /* shm_id */,
1912 uint32_t /* size */,
1913 int32_t /* decode_id */)
1914IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply,
1915 uint32_t /* shm_id */)
[email protected]0ff052d2014-06-13 15:00:141916IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoDecoder_RequestTextures,
[email protected]dfb0d06f32014-05-30 22:45:561917 uint32_t /* num_textures */,
1918 PP_Size /* size */,
[email protected]0ff052d2014-06-13 15:00:141919 uint32_t /* texture_target */,
1920 std::vector<gpu::Mailbox> /* mailboxes*/)
[email protected]dfb0d06f32014-05-30 22:45:561921IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures,
1922 PP_Size /* size */,
1923 std::vector<uint32_t> /* texture_ids */)
1924IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoDecoder_PictureReady,
1925 int32_t /* decode_id */,
1926 uint32_t /* texture_id */)
1927IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture,
1928 uint32_t /* texture_id */)
1929IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
1930 uint32_t /* texture_id */)
1931IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
1932IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
1933IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
1934IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
1935IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
1936 int32_t /* error */)
1937
[email protected]cb65f132012-10-09 17:06:091938#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]a1686e272012-11-01 23:39:341939
[email protected]77b55502012-11-08 22:20:201940// Audio input.
1941IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
[email protected]77b55502012-11-08 22:20:201942IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1943 std::string /* device_id */,
1944 PP_AudioSampleRate /* sample_rate */,
1945 uint32_t /* sample_frame_count */)
1946// Reply to an Open call. This supplies a socket handle and a shared memory
1947// handle. Both handles are passed in the ReplyParams struct.
1948IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
1949IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
1950IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
1951
[email protected]a6d81c02012-12-20 21:17:001952// BrowserFont -----------------------------------------------------------------
1953
1954IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_Create)
1955
1956// Requests that the browser reply with the list of font families via
1957// PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply.
1958IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_GetFontFamilies)
1959
1960// Reply to PpapiHostMsg_BrowserFontSingleton_GetFontFamilies with the font
1961// family list. The |families| result is encoded by separating each family name
1962// by a null character.
1963IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply,
1964 std::string /* families */)
1965
[email protected]db16e6d2012-12-19 03:32:571966// Flash -----------------------------------------------------------------------
[email protected]a6d81c02012-12-20 21:17:001967
[email protected]a9f2a6212012-12-04 08:47:341968IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
[email protected]db16e6d2012-12-19 03:32:571969
1970// Message to notify the browser to register an update in system activity.
[email protected]a9f2a6212012-12-04 08:47:341971IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
[email protected]db16e6d2012-12-19 03:32:571972
1973// Query the browser for the proxy server to use for the given URL.
[email protected]a9f2a6212012-12-04 08:47:341974IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
[email protected]db16e6d2012-12-19 03:32:571975// Reply message for GetProxyForURL containing the proxy server.
[email protected]a9f2a6212012-12-04 08:47:341976IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
1977 std::string /* proxy */)
1978
[email protected]c92465382012-12-17 23:51:211979// Queries the browser for the local time zone offset for a given time.
1980IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset,
1981 base::Time /* time */)
1982// Reply to GetLocalTimeZoneOffset containing the time zone offset as a double.
1983IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply,
1984 double /* offset */)
1985
[email protected]db16e6d2012-12-19 03:32:571986// Query the browser for the restrictions on storing Flash LSOs.
1987IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions)
1988// Reply message for GetLocalDataRestrictions containing the restrictions to
1989// use. These are PP_FlashLSORestrictions cast to an int32_t.
1990IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply,
1991 int32_t /* restrictions */)
1992
[email protected]24f40c12012-12-19 20:17:421993// Notifies the renderer whether the Flash instance is in windowed mode. No
1994// reply is sent.
1995IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop,
1996 bool /* on_top */)
1997
1998// Notifies the renderer to draw text to the given PP_ImageData resource. All
1999// parmeters for drawing (including the resource to draw to) are contianed in
2000// the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply
2001// message indicating success.
2002IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs,
2003 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */)
2004
2005// Notifies the renderer to navigate to the given URL contained in the
2006// URLRequestInfoData. An error code is sent in a reply message indicating
2007// success.
2008IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate,
2009 ppapi::URLRequestInfoData /* data */,
2010 std::string /* target */,
2011 bool /* from_user_action */)
2012
2013// Queries the renderer on whether the plugin instance is the topmost element
2014// in the area of the instance specified by the given PP_Rect. PP_OK is sent as
2015// the error code in a reply message if the rect is topmost otherwise
2016// PP_ERROR_FAILED is sent.
2017IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost,
2018 PP_Rect /* rect */)
2019
[email protected]6a77ef22012-12-21 23:31:362020// Notifies the renderer to invoke printing for the given plugin instance. No
2021// reply is sent.
2022IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_InvokePrinting)
2023
[email protected]db16e6d2012-12-19 03:32:572024// DeviceEnumeration -----------------------------------------------------------
[email protected]4f01c762012-12-05 02:44:182025// Device enumeration messages used by audio input and video capture.
2026IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
2027IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
2028 std::vector<ppapi::DeviceRefData> /* devices */)
2029IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
2030 uint32_t /* callback_id */)
2031IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
2032IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
2033 uint32_t /* callback_id */,
2034 std::vector<ppapi::DeviceRefData> /* devices */)
2035
[email protected]a1686e272012-11-01 23:39:342036// Flash clipboard.
2037IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
2038IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
2039 std::string /* format_name */)
2040IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
2041 uint32_t /* format */)
2042IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
2043 uint32_t /* clipboard_type */,
2044 uint32_t /* format */)
2045IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
2046 uint32_t /* clipboard_type */,
2047 uint32_t /* format */)
2048IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
2049 std::string /* result */)
2050IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
2051 uint32_t /* clipboard_type */,
2052 std::vector<uint32_t> /* formats */,
2053 std::vector<std::string> /* data */)
[email protected]3391ebb2014-01-28 01:45:332054IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_GetSequenceNumber,
2055 uint32_t /* clipboard_type */)
2056IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply,
2057 uint64_t /* sequence_number */)
[email protected]77b55502012-11-08 22:20:202058
[email protected]bf398e262014-03-26 19:22:242059// Flash DRM.
2060IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create)
2061
2062// Requests the device ID.
2063IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID)
2064// Reply for GetDeviceID which includes the device ID as a string.
2065IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply,
2066 std::string /* id */)
2067
2068// Requests the HMONITOR corresponding to the monitor on which the instance is
2069// displayed.
2070IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetHmonitor)
2071// Reply message for GetHmonitor which contains the HMONITOR as an int64_t.
2072IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply,
2073 int64_t /* hmonitor */)
2074
2075// Requests the voucher file which is used to verify the integrity of the Flash
2076// module. A PPB_FileRef resource will be created.
2077IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile)
2078// Reply message for GetVoucherFile which contains the CreateInfo for a
2079// PPB_FileRef which points to the voucher file.
2080IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply,
2081 ppapi::FileRefCreateInfo /* file_info */)
2082
2083// Requests a value indicating whether the monitor on which the instance is
2084// displayed is external.
2085IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_MonitorIsExternal)
2086// Reply message for MonitorIsExternal which contains the value indicating if
2087// the monitor is external.
2088IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_MonitorIsExternalReply,
2089 PP_Bool /* is_external */)
2090
[email protected]0c92b0d2012-12-08 00:46:232091// Flash file.
2092IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create)
2093IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile,
2094 ppapi::PepperFilePath /* path */,
[email protected]0ef197f2013-07-31 05:46:482095 int /* pp_open_flags */)
[email protected]0c92b0d2012-12-08 00:46:232096IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile,
2097 ppapi::PepperFilePath /* from_path */,
2098 ppapi::PepperFilePath /* to_path */)
2099IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir,
2100 ppapi::PepperFilePath /* path */,
2101 bool /* recursive */)
2102IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir,
2103 ppapi::PepperFilePath /* path */)
2104IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile,
2105 ppapi::PepperFilePath /* path */)
2106IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply,
[email protected]141bcc52014-01-27 21:36:002107 base::File::Info /* file_info */)
[email protected]0c92b0d2012-12-08 00:46:232108IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents,
2109 ppapi::PepperFilePath /* path */)
2110IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply,
2111 ppapi::DirContents /* entries */)
2112IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile)
2113
[email protected]cb65f132012-10-09 17:06:092114// Flash font file.
2115IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
2116 ppapi::proxy::SerializedFontDescription /* description */,
2117 PP_PrivateFontCharset /* charset */)
2118IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
2119 uint32_t /* table */)
2120IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
2121 std::string /* output */)
[email protected]11d0c362012-10-11 02:02:112122
[email protected]22fdaa62012-11-30 01:55:442123// Flash fullscreen.
2124IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create)
2125IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen,
2126 bool /* fullscreen */)
2127
[email protected]bf398e262014-03-26 19:22:242128// FlashMenu.
[email protected]97f58132012-11-15 20:41:322129
2130// Creates the flash menu with the given data.
2131IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Create,
2132 ppapi::proxy::SerializedFlashMenu /* menu_data */)
2133
2134// Shows the menu at the given location relative to the plugin instance.
2135IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
2136 PP_Point /* location */)
2137
2138// Reply to a show command. If the resource reply is PP_OK, the selected_id
2139// will be the menu item ID chosen by the user.
2140IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
2141 int32_t /* selected_id */)
2142
[email protected]bf398e262014-03-26 19:22:242143// PPB_Flash_MessageLoop.
2144IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
2145 PP_Instance /* instance */,
2146 ppapi::HostResource /* result */)
2147IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
2148 ppapi::HostResource /* flash_message_loop */,
2149 int32_t /* result */)
2150IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
2151 ppapi::HostResource /* flash_message_loop */)
2152
[email protected]bb92b012013-03-29 02:13:202153// PDF ------------------------------------------------------------------------
2154
2155// Creates the PDF resource.
2156IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create)
2157
2158// Requests the localized string for the given ID.
2159IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_GetLocalizedString,
[email protected]f5869d8be2013-04-06 00:33:102160 PP_ResourceString /* string_id */)
[email protected]bb92b012013-03-29 02:13:202161// Reply for PpapiHostMsg_PDF_GetLocalizedString containing the localized
2162// string.
2163IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_GetLocalizedStringReply,
2164 std::string /* localized_string*/)
2165
2166// Notifies the renderer that the PDF started loading.
2167IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading)
2168
2169// Notifies the renderer that the PDF stopped loading.
2170IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading)
2171
2172// Sets any restrictions on the PDF content.
2173IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetContentRestriction,
2174 int /* restrictions */)
2175
2176// Requests that the specified action be recorded with UMA.
2177IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_UserMetricsRecordAction,
2178 std::string /* action */)
2179
2180// Notifies the renderer that the current PDF uses an unsupported feature.
2181IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature)
2182
2183// Notifies the renderer to print the current PDF.
2184IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print)
2185
2186// Notifies the renderer to save the current PDF.
2187IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs)
2188
2189// Requests a resource image for the plugin at a particular scale.
2190IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage,
[email protected]f5869d8be2013-04-06 00:33:102191 PP_ResourceImage /* image_id */,
[email protected]bb92b012013-03-29 02:13:202192 float /* scale */)
[email protected]d48148a2013-06-18 00:09:132193
[email protected]bb92b012013-03-29 02:13:202194// Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id
[email protected]ebdbb112013-05-16 16:56:342195// of the image and a PP_ImageDataDesc which describes the image. Also carries
[email protected]d48148a2013-06-18 00:09:132196// a shared memory handle pointing to the memory containg the image.
2197IPC_MESSAGE_CONTROL2(PpapiPluginMsg_PDF_GetResourceImageReply,
[email protected]bb92b012013-03-29 02:13:202198 ppapi::HostResource /* resource_id */,
[email protected]d48148a2013-06-18 00:09:132199 PP_ImageDataDesc /* image_data_desc */)
[email protected]bb92b012013-03-29 02:13:202200
[email protected]72b1a222014-01-15 04:26:112201// Called by the plugin when its selection changes.
2202IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText,
2203 base::string16 /* selected_text */)
2204
[email protected]5eda96292014-02-03 06:55:142205// Called by the plugin to set the link under the cursor.
2206IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor,
2207 std::string /* url */)
2208
[email protected]cc123872012-11-16 07:53:082209// VideoCapture_Dev, plugin -> host
2210IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
2211IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
2212IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
2213 uint32_t /* buffer */)
2214IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
2215IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
2216
2217// VideoCapture_Dev, plugin -> host -> plugin
[email protected]cc123872012-11-16 07:53:082218IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open,
2219 std::string /* device_id */,
2220 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
2221 uint32_t /* buffer_count */)
2222IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply)
2223
2224// VideoCapture_Dev, host -> plugin
2225IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo,
2226 PP_VideoCaptureDeviceInfo_Dev /* info */,
2227 std::vector<ppapi::HostResource> /* buffers */,
2228 uint32_t /* buffer_size */)
2229IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2230 uint32_t /* status */)
2231IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2232 uint32_t /* error */)
2233IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2234 uint32_t /* buffer */)
2235
[email protected]ce97d7452013-06-07 19:02:092236// Talk ------------------------------------------------------------------------
2237
2238IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_Create)
2239IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2240 PP_TalkPermission /* permission */)
2241IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2242IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2243IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2244IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2245IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2246IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2247
[email protected]cb65f132012-10-09 17:06:092248#endif // !defined(OS_NACL) && !defined(NACL_WIN64)