blob: f81ab654c628cc52de513c05f4ef9b2db2e1f15a [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
Daniel Bratellbcbca5322017-09-01 10:00:535#ifndef PPAPI_PROXY_PPAPI_MESSAGES_H_
6#define PPAPI_PROXY_PPAPI_MESSAGES_H_
avie029c4132015-12-23 06:45:227
8#include <stdint.h>
9
[email protected]7a90b852013-12-28 17:54:2710#include <map>
[email protected]c2932f5e2010-11-03 03:22:3311#include <string>
12#include <vector>
13
[email protected]57999812013-02-24 05:40:5214#include "base/files/file_path.h"
[email protected]8299b712013-07-17 19:55:2315#include "base/memory/shared_memory.h"
[email protected]15756592013-07-25 14:17:5316#include "base/process/process.h"
[email protected]896d161f2013-06-11 22:52:2417#include "base/strings/string16.h"
[email protected]5d84d012010-12-02 17:17:2118#include "base/sync_socket.h"
avie029c4132015-12-23 06:45:2219#include "build/build_config.h"
[email protected]631179b2011-03-14 22:26:2020#include "gpu/command_buffer/common/command_buffer.h"
lukasza2573ce7d2016-02-16 19:17:2221#include "gpu/command_buffer/common/command_buffer_id.h"
[email protected]dfb0d06f32014-05-30 22:45:5622#include "gpu/command_buffer/common/mailbox.h"
dyencc16ed4d2015-11-03 20:03:0423#include "gpu/command_buffer/common/sync_token.h"
fsamuelef5a0b62016-03-05 00:35:4724#include "gpu/ipc/common/gpu_command_buffer_traits.h"
[email protected]631179b2011-03-14 22:26:2025#include "ipc/ipc_channel_handle.h"
26#include "ipc/ipc_message_macros.h"
[email protected]c2932f5e2010-11-03 03:22:3327#include "ipc/ipc_message_utils.h"
[email protected]5d84d012010-12-02 17:17:2128#include "ipc/ipc_platform_file.h"
[email protected]0fa46e82011-08-09 07:31:4929#include "ppapi/c/dev/pp_video_capture_dev.h"
[email protected]e8f07ac2012-01-03 17:43:3630#include "ppapi/c/dev/pp_video_dev.h"
[email protected]725056b72013-03-16 09:57:5131#include "ppapi/c/dev/ppb_truetype_font_dev.h"
[email protected]32938de2012-10-19 18:42:3232#include "ppapi/c/dev/ppb_url_util_dev.h"
[email protected]3890cfff2012-02-29 07:54:1833#include "ppapi/c/dev/ppp_printing_dev.h"
[email protected]19d2b012010-11-08 16:32:1834#include "ppapi/c/pp_bool.h"
[email protected]dfb0d06f32014-05-30 22:45:5635#include "ppapi/c/pp_codecs.h"
[email protected]ea505a9d2011-07-07 18:34:4036#include "ppapi/c/pp_file_info.h"
[email protected]c2932f5e2010-11-03 03:22:3337#include "ppapi/c/pp_instance.h"
38#include "ppapi/c/pp_module.h"
[email protected]9b7cc082011-04-20 20:25:5539#include "ppapi/c/pp_point.h"
40#include "ppapi/c/pp_rect.h"
[email protected]c2932f5e2010-11-03 03:22:3341#include "ppapi/c/pp_resource.h"
[email protected]9b7cc082011-04-20 20:25:5542#include "ppapi/c/pp_size.h"
[email protected]3b98ced72012-03-09 02:08:3343#include "ppapi/c/pp_time.h"
[email protected]77b55502012-11-08 22:20:2044#include "ppapi/c/ppb_audio_config.h"
[email protected]38f61e8f2013-05-11 19:23:3845#include "ppapi/c/ppb_image_data.h"
[email protected]b838eea2013-06-22 22:17:2246#include "ppapi/c/ppb_tcp_socket.h"
[email protected]d33b11a2013-08-07 09:57:2847#include "ppapi/c/ppb_text_input_controller.h"
[email protected]8de13292013-06-24 06:04:3948#include "ppapi/c/ppb_udp_socket.h"
lionel.g.landwerlinc3f15122015-02-25 01:20:5849#include "ppapi/c/ppb_video_encoder.h"
[email protected]cb65f132012-10-09 17:06:0950#include "ppapi/c/private/pp_private_font_charset.h"
jchuang512b0a0d2015-02-20 03:42:4951#include "ppapi/c/private/pp_video_capture_format.h"
[email protected]ea628e32012-08-02 21:50:1652#include "ppapi/c/private/ppb_flash.h"
[email protected]24931102012-03-15 01:21:2753#include "ppapi/c/private/ppb_host_resolver_private.h"
[email protected]435945742013-11-08 06:31:1154#include "ppapi/c/private/ppb_isolated_file_system_private.h"
[email protected]24931102012-03-15 01:21:2755#include "ppapi/c/private/ppb_net_address_private.h"
[email protected]f5869d8be2013-04-06 00:33:1056#include "ppapi/c/private/ppb_pdf.h"
[email protected]8299b712013-07-17 19:55:2357#include "ppapi/c/private/ppp_flash_browser_operations.h"
n.bansal64c4daa2014-11-19 08:38:4858#include "ppapi/c/private/ppp_pdf.h"
[email protected]6a685372013-02-12 12:50:4659#include "ppapi/proxy/host_resolver_private_resource.h"
[email protected]07d0a6bf2013-09-17 04:15:1060#include "ppapi/proxy/network_list_resource.h"
[email protected]c2932f5e2010-11-03 03:22:3361#include "ppapi/proxy/ppapi_param_traits.h"
[email protected]f0a04c42011-08-26 22:43:2062#include "ppapi/proxy/ppapi_proxy_export.h"
[email protected]077ecfd42012-06-21 21:46:2663#include "ppapi/proxy/resource_message_params.h"
[email protected]7358d572011-02-15 18:44:4064#include "ppapi/proxy/serialized_flash_menu.h"
[email protected]eb5960da2013-01-16 23:23:5365#include "ppapi/proxy/serialized_handle.h"
[email protected]fb35dcf2010-11-14 17:08:0066#include "ppapi/proxy/serialized_structs.h"
[email protected]cb65f132012-10-09 17:06:0967#include "ppapi/proxy/serialized_var.h"
[email protected]0c92b0d2012-12-08 00:46:2368#include "ppapi/shared_impl/dir_contents.h"
[email protected]540d6af42014-01-28 21:19:0369#include "ppapi/shared_impl/file_growth.h"
[email protected]0c92b0d2012-12-08 00:46:2370#include "ppapi/shared_impl/file_path.h"
[email protected]dc000e82013-06-26 04:10:4171#include "ppapi/shared_impl/file_ref_create_info.h"
[email protected]5e19b8b2014-06-03 13:36:4272#include "ppapi/shared_impl/media_stream_audio_track_shared.h"
[email protected]61ebd74e2014-02-26 00:44:0573#include "ppapi/shared_impl/media_stream_video_track_shared.h"
[email protected]73af6332014-02-06 23:28:1074#include "ppapi/shared_impl/ppapi_nacl_plugin_args.h"
[email protected]208aad792011-05-26 19:05:2875#include "ppapi/shared_impl/ppapi_preferences.h"
[email protected]dca65e12012-01-21 07:54:1776#include "ppapi/shared_impl/ppb_device_ref_shared.h"
[email protected]9a578392011-12-07 18:59:2777#include "ppapi/shared_impl/ppb_input_event_shared.h"
[email protected]92576792013-09-20 15:29:1378#include "ppapi/shared_impl/ppb_tcp_socket_shared.h"
[email protected]e8f07ac2012-01-03 17:43:3679#include "ppapi/shared_impl/ppb_view_shared.h"
[email protected]ee4dd682012-06-12 15:49:3380#include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
[email protected]de2895262012-04-04 17:15:4881#include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
[email protected]64a61fc2013-06-19 13:30:5982#include "ppapi/shared_impl/socket_option_data.h"
[email protected]7b2f7292012-09-19 19:52:1283#include "ppapi/shared_impl/url_request_info_data.h"
[email protected]844fecb2012-11-16 20:11:0684#include "ppapi/shared_impl/url_response_info_data.h"
[email protected]19d2b012010-11-08 16:32:1885
[email protected]f0a04c42011-08-26 22:43:2086#undef IPC_MESSAGE_EXPORT
87#define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
88
[email protected]631179b2011-03-14 22:26:2089#define IPC_MESSAGE_START PpapiMsgStart
[email protected]c2932f5e2010-11-03 03:22:3390
[email protected]92576792013-09-20 15:29:1391IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion,
92 ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE)
Rob Buis1fc16ae2017-11-08 20:38:1093IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioSampleRate, PP_AUDIOSAMPLERATE_LAST)
Rob Buisc30aef42017-10-17 20:36:3394IPC_ENUM_TRAITS_MAX_VALUE(PP_DeviceType_Dev, PP_DEVICETYPE_DEV_MAX)
[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)
Rob Buis1fc16ae2017-11-08 20:38:1097IPC_ENUM_TRAITS_MAX_VALUE(PP_Flash_BrowserOperations_Permission,
98 PP_FLASH_BROWSEROPERATIONS_PERMISSION_LAST)
99IPC_ENUM_TRAITS_MAX_VALUE(PP_Flash_BrowserOperations_SettingType,
100 PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_LAST)
101IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_FlashSetting,
102 PP_FLASHSETTING_FIRST,
103 PP_FLASHSETTING_LAST)
Rob Buis1fc16ae2017-11-08 20:38:10104IPC_ENUM_TRAITS_MAX_VALUE(PP_ImageDataFormat, PP_IMAGEDATAFORMAT_LAST)
Rob Buis1fc16ae2017-11-08 20:38:10105IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_InputEvent_MouseButton,
106 PP_INPUTEVENT_MOUSEBUTTON_FIRST,
107 PP_INPUTEVENT_MOUSEBUTTON_LAST)
108IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_InputEvent_Type,
109 PP_INPUTEVENT_TYPE_FIRST,
110 PP_INPUTEVENT_TYPE_LAST)
[email protected]435945742013-11-08 06:31:11111IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
[email protected]c54d9902013-11-20 13:44:37112 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
[email protected]ddecdae2013-06-24 23:17:46113IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private,
114 PP_NETADDRESSFAMILY_PRIVATE_IPV6)
[email protected]86fbad282013-09-22 06:34:03115IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP)
116IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR)
Rob Buis1fc16ae2017-11-08 20:38:10117IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintOrientation_Dev,
118 PP_PRINTORIENTATION_ROTATED_LAST)
Rob Buis608a51672017-11-10 17:57:52119IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) // Bitmask.
Rob Buis1fc16ae2017-11-08 20:38:10120IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintScalingOption_Dev, PP_PRINTSCALINGOPTION_LAST)
thestig957b4452015-03-11 22:20:54121IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDuplexMode_Dev, PP_PRIVATEDUPLEXMODE_LAST)
Rob Buis1fc16ae2017-11-08 20:38:10122IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateFontCharset, PP_PRIVATEFONTCHARSET_LAST)
[email protected]b838eea2013-06-22 22:17:22123IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option,
[email protected]5c2f03992013-09-23 19:22:46124 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE)
Rob Buis1fc16ae2017-11-08 20:38:10125IPC_ENUM_TRAITS_MAX_VALUE(PP_TextInput_Type, PP_TEXTINPUT_TYPE_LAST)
126IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontFamily_Dev, PP_TRUETYPEFONTFAMILY_LAST)
127IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontStyle_Dev, PP_TRUETYPEFONTSTYLE_LAST)
128IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_TrueTypeFontWeight_Dev,
129 PP_TRUETYPEFONTWEIGHT_FIRST,
130 PP_TRUETYPEFONTWEIGHT_LAST)
131IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontWidth_Dev, PP_TRUETYPEFONTWIDTH_LAST)
132IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontCharset_Dev,
133 PP_TRUETYPEFONTCHARSET_LAST)
[email protected]8de13292013-06-24 06:04:39134IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option,
eduardo.lima8171d462015-03-13 15:40:21135 PP_UDPSOCKET_OPTION_MULTICAST_TTL)
Rob Buis1fc16ae2017-11-08 20:38:10136IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_VideoDecodeError_Dev,
137 PP_VIDEODECODERERROR_FIRST,
138 PP_VIDEODECODERERROR_LAST)
139IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_VideoDecoder_Profile,
140 PP_VIDEODECODER_PROFILE_FIRST,
141 PP_VIDEODECODER_PROFILE_LAST)
[email protected]61ebd74e2014-02-26 00:44:05142IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST)
bbudge4d6acaf2014-08-23 22:17:45143IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST)
lionel.g.landwerlin764a8c92015-11-19 01:48:08144IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX)
[email protected]dfb0d06f32014-05-30 22:45:56145IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX)
dmazzonic3547a32016-06-02 05:47:15146IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDirection, PP_PRIVATEDIRECTION_LAST)
[email protected]493d14212011-07-07 15:38:48147
[email protected]9b7cc082011-04-20 20:25:55148IPC_STRUCT_TRAITS_BEGIN(PP_Point)
149 IPC_STRUCT_TRAITS_MEMBER(x)
150 IPC_STRUCT_TRAITS_MEMBER(y)
151IPC_STRUCT_TRAITS_END()
152
[email protected]493d14212011-07-07 15:38:48153IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint)
154 IPC_STRUCT_TRAITS_MEMBER(x)
155 IPC_STRUCT_TRAITS_MEMBER(y)
156IPC_STRUCT_TRAITS_END()
157
[email protected]9b7cc082011-04-20 20:25:55158IPC_STRUCT_TRAITS_BEGIN(PP_Size)
159 IPC_STRUCT_TRAITS_MEMBER(height)
160 IPC_STRUCT_TRAITS_MEMBER(width)
161IPC_STRUCT_TRAITS_END()
162
[email protected]c44620b2014-06-16 14:20:26163IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize)
164 IPC_STRUCT_TRAITS_MEMBER(height)
165 IPC_STRUCT_TRAITS_MEMBER(width)
166IPC_STRUCT_TRAITS_END()
167
[email protected]9b7cc082011-04-20 20:25:55168IPC_STRUCT_TRAITS_BEGIN(PP_Rect)
169 IPC_STRUCT_TRAITS_MEMBER(point)
170 IPC_STRUCT_TRAITS_MEMBER(size)
171IPC_STRUCT_TRAITS_END()
172
[email protected]c44620b2014-06-16 14:20:26173IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect)
174 IPC_STRUCT_TRAITS_MEMBER(point)
175 IPC_STRUCT_TRAITS_MEMBER(size)
176IPC_STRUCT_TRAITS_END()
177
[email protected]38f61e8f2013-05-11 19:23:38178IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc)
179 IPC_STRUCT_TRAITS_MEMBER(format)
180 IPC_STRUCT_TRAITS_MEMBER(size)
181 IPC_STRUCT_TRAITS_MEMBER(stride)
182IPC_STRUCT_TRAITS_END()
183
[email protected]7ace8ad2011-08-06 03:23:58184IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev)
185 IPC_STRUCT_TRAITS_MEMBER(id)
186 IPC_STRUCT_TRAITS_MEMBER(size)
187 IPC_STRUCT_TRAITS_MEMBER(texture_id)
188IPC_STRUCT_TRAITS_END()
189
190IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev)
191 IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id)
192 IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id)
193IPC_STRUCT_TRAITS_END()
194
[email protected]3890cfff2012-02-29 07:54:18195IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev)
196 IPC_STRUCT_TRAITS_MEMBER(first_page_number)
197 IPC_STRUCT_TRAITS_MEMBER(last_page_number)
198IPC_STRUCT_TRAITS_END()
199
[email protected]0fa46e82011-08-09 07:31:49200IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev)
201 IPC_STRUCT_TRAITS_MEMBER(width)
202 IPC_STRUCT_TRAITS_MEMBER(height)
203 IPC_STRUCT_TRAITS_MEMBER(frames_per_second)
204IPC_STRUCT_TRAITS_END()
205
[email protected]24931102012-03-15 01:21:27206IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint)
207 IPC_STRUCT_TRAITS_MEMBER(family)
208 IPC_STRUCT_TRAITS_MEMBER(flags)
209IPC_STRUCT_TRAITS_END()
210
[email protected]772a74622012-06-14 21:15:50211IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev)
212 IPC_STRUCT_TRAITS_MEMBER(printable_area)
213 IPC_STRUCT_TRAITS_MEMBER(content_area)
214 IPC_STRUCT_TRAITS_MEMBER(paper_size)
215 IPC_STRUCT_TRAITS_MEMBER(dpi)
216 IPC_STRUCT_TRAITS_MEMBER(orientation)
217 IPC_STRUCT_TRAITS_MEMBER(print_scaling_option)
218 IPC_STRUCT_TRAITS_MEMBER(grayscale)
219 IPC_STRUCT_TRAITS_MEMBER(format)
220IPC_STRUCT_TRAITS_END()
221
n.bansal64c4daa2014-11-19 08:38:48222IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev)
223 IPC_STRUCT_TRAITS_MEMBER(is_scaling_disabled)
224 IPC_STRUCT_TRAITS_MEMBER(copies)
thestigb335e7d2015-03-05 21:06:02225 IPC_STRUCT_TRAITS_MEMBER(duplex)
thestig957b4452015-03-11 22:20:54226 IPC_STRUCT_TRAITS_MEMBER(is_page_size_uniform)
227 IPC_STRUCT_TRAITS_MEMBER(uniform_page_size)
n.bansal64c4daa2014-11-19 08:38:48228IPC_STRUCT_TRAITS_END()
229
Lei Zhangdc88867d2018-05-22 16:57:47230IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintSettings_Dev)
xlou6bd7c2d2018-07-10 01:35:40231 IPC_STRUCT_TRAITS_MEMBER(pages_per_sheet)
Lei Zhangdc88867d2018-05-22 16:57:47232 IPC_STRUCT_TRAITS_MEMBER(scale_factor)
233IPC_STRUCT_TRAITS_END()
234
dmazzonic3547a32016-06-02 05:47:15235IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityViewportInfo)
236 IPC_STRUCT_TRAITS_MEMBER(zoom)
237 IPC_STRUCT_TRAITS_MEMBER(scroll)
238 IPC_STRUCT_TRAITS_MEMBER(offset)
Dominic Mazzoni4d87bcc2018-03-13 18:38:06239 IPC_STRUCT_TRAITS_MEMBER(selection_start_page_index)
240 IPC_STRUCT_TRAITS_MEMBER(selection_start_char_index)
241 IPC_STRUCT_TRAITS_MEMBER(selection_end_page_index)
242 IPC_STRUCT_TRAITS_MEMBER(selection_end_char_index)
dmazzonic3547a32016-06-02 05:47:15243IPC_STRUCT_TRAITS_END()
244
245IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityDocInfo)
246 IPC_STRUCT_TRAITS_MEMBER(page_count)
247 IPC_STRUCT_TRAITS_MEMBER(text_accessible)
248 IPC_STRUCT_TRAITS_MEMBER(text_copyable)
249IPC_STRUCT_TRAITS_END()
250
251IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityCharInfo)
252 IPC_STRUCT_TRAITS_MEMBER(unicode_character)
253 IPC_STRUCT_TRAITS_MEMBER(char_width)
254IPC_STRUCT_TRAITS_END()
255
256IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityTextRunInfo)
257 IPC_STRUCT_TRAITS_MEMBER(len)
258 IPC_STRUCT_TRAITS_MEMBER(font_size)
259 IPC_STRUCT_TRAITS_MEMBER(bounds)
260 IPC_STRUCT_TRAITS_MEMBER(direction)
261IPC_STRUCT_TRAITS_END()
262
263IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityPageInfo)
264 IPC_STRUCT_TRAITS_MEMBER(page_index)
265 IPC_STRUCT_TRAITS_MEMBER(bounds)
266 IPC_STRUCT_TRAITS_MEMBER(text_run_count)
267 IPC_STRUCT_TRAITS_MEMBER(char_count)
268IPC_STRUCT_TRAITS_END()
269
[email protected]32938de2012-10-19 18:42:32270IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev)
271 IPC_STRUCT_TRAITS_MEMBER(begin)
272 IPC_STRUCT_TRAITS_MEMBER(len)
273IPC_STRUCT_TRAITS_END()
274
275IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev)
276 IPC_STRUCT_TRAITS_MEMBER(scheme)
277 IPC_STRUCT_TRAITS_MEMBER(username)
278 IPC_STRUCT_TRAITS_MEMBER(password)
279 IPC_STRUCT_TRAITS_MEMBER(host)
280 IPC_STRUCT_TRAITS_MEMBER(port)
281 IPC_STRUCT_TRAITS_MEMBER(path)
282 IPC_STRUCT_TRAITS_MEMBER(query)
283 IPC_STRUCT_TRAITS_MEMBER(ref)
284IPC_STRUCT_TRAITS_END()
285
jchuang512b0a0d2015-02-20 03:42:49286IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureFormat)
287 IPC_STRUCT_TRAITS_MEMBER(frame_size)
288 IPC_STRUCT_TRAITS_MEMBER(frame_rate)
289IPC_STRUCT_TRAITS_END()
290
[email protected]11c6a7f12013-11-12 02:29:19291IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo)
292 IPC_STRUCT_TRAITS_MEMBER(size)
293 IPC_STRUCT_TRAITS_MEMBER(type)
294 IPC_STRUCT_TRAITS_MEMBER(system_type)
295 IPC_STRUCT_TRAITS_MEMBER(creation_time)
296 IPC_STRUCT_TRAITS_MEMBER(last_access_time)
297 IPC_STRUCT_TRAITS_MEMBER(last_modified_time)
298IPC_STRUCT_TRAITS_END()
299
[email protected]540d6af42014-01-28 21:19:03300IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth)
301 IPC_STRUCT_TRAITS_MEMBER(max_written_offset)
302 IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount)
303IPC_STRUCT_TRAITS_END()
304
[email protected]dca65e12012-01-21 07:54:17305IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
306 IPC_STRUCT_TRAITS_MEMBER(type)
307 IPC_STRUCT_TRAITS_MEMBER(name)
308 IPC_STRUCT_TRAITS_MEMBER(id)
309IPC_STRUCT_TRAITS_END()
310
[email protected]0c92b0d2012-12-08 00:46:23311IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
312 IPC_STRUCT_TRAITS_MEMBER(name)
313 IPC_STRUCT_TRAITS_MEMBER(is_dir)
314IPC_STRUCT_TRAITS_END()
315
[email protected]c6420f082013-09-18 22:42:41316IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRefCreateInfo)
[email protected]d1967ed2013-06-18 01:10:21317 IPC_STRUCT_TRAITS_MEMBER(file_system_type)
318 IPC_STRUCT_TRAITS_MEMBER(internal_path)
[email protected]d1967ed2013-06-18 01:10:21319 IPC_STRUCT_TRAITS_MEMBER(display_name)
[email protected]c6420f082013-09-18 22:42:41320 IPC_STRUCT_TRAITS_MEMBER(browser_pending_host_resource_id)
321 IPC_STRUCT_TRAITS_MEMBER(renderer_pending_host_resource_id)
[email protected]d1967ed2013-06-18 01:10:21322 IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource)
323IPC_STRUCT_TRAITS_END()
324
[email protected]ee4dd682012-06-12 15:49:33325IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
326 IPC_STRUCT_TRAITS_MEMBER(site)
327 IPC_STRUCT_TRAITS_MEMBER(permission)
328IPC_STRUCT_TRAITS_END()
329
[email protected]5e19b8b2014-06-03 13:36:42330IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamAudioTrackShared::Attributes)
331 IPC_STRUCT_TRAITS_MEMBER(buffers)
[email protected]e6b863c6e2014-07-31 12:54:12332 IPC_STRUCT_TRAITS_MEMBER(duration)
[email protected]5e19b8b2014-06-03 13:36:42333IPC_STRUCT_TRAITS_END()
334
[email protected]61ebd74e2014-02-26 00:44:05335IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamVideoTrackShared::Attributes)
336 IPC_STRUCT_TRAITS_MEMBER(buffers)
337 IPC_STRUCT_TRAITS_MEMBER(width)
338 IPC_STRUCT_TRAITS_MEMBER(height)
339 IPC_STRUCT_TRAITS_MEMBER(format)
340IPC_STRUCT_TRAITS_END()
341
[email protected]e8f07ac2012-01-03 17:43:36342IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
343 IPC_STRUCT_TRAITS_MEMBER(rect)
344 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
345 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
346 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
[email protected]0cd5b9df2012-06-28 19:33:33347 IPC_STRUCT_TRAITS_MEMBER(device_scale)
348 IPC_STRUCT_TRAITS_MEMBER(css_scale)
[email protected]5015a072014-06-19 01:48:14349 IPC_STRUCT_TRAITS_MEMBER(scroll_offset)
[email protected]e8f07ac2012-01-03 17:43:36350IPC_STRUCT_TRAITS_END()
351
[email protected]cdf4e912012-06-21 23:15:10352IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint)
353 IPC_STRUCT_TRAITS_MEMBER(id)
354 IPC_STRUCT_TRAITS_MEMBER(position)
355 IPC_STRUCT_TRAITS_MEMBER(radius)
356 IPC_STRUCT_TRAITS_MEMBER(rotation_angle)
357 IPC_STRUCT_TRAITS_MEMBER(pressure)
358IPC_STRUCT_TRAITS_END()
359
[email protected]4d2efd22011-08-18 21:58:02360IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences)
[email protected]966d1e12012-05-18 07:20:32361 IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map)
362 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map)
363 IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map)
364 IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map)
[email protected]208aad792011-05-26 19:05:28365 IPC_STRUCT_TRAITS_MEMBER(default_font_size)
366 IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size)
[email protected]6b4dcb072012-06-18 22:26:51367 IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores)
[email protected]e0d8c422012-06-04 22:57:19368 IPC_STRUCT_TRAITS_MEMBER(is_3d_supported)
369 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported)
[email protected]4abba3b42013-02-12 03:45:54370 IPC_STRUCT_TRAITS_MEMBER(is_stage3d_baseline_supported)
[email protected]6013c792014-03-07 00:18:33371 IPC_STRUCT_TRAITS_MEMBER(is_accelerated_video_decode_enabled)
[email protected]208aad792011-05-26 19:05:28372IPC_STRUCT_TRAITS_END()
373
jkwang424fd27d2017-05-26 10:22:25374IPC_STRUCT_TRAITS_BEGIN(ppapi::TouchPointWithTilt)
375 IPC_STRUCT_TRAITS_MEMBER(touch)
376 IPC_STRUCT_TRAITS_MEMBER(tilt)
377IPC_STRUCT_TRAITS_END()
378
[email protected]4d2efd22011-08-18 21:58:02379IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData)
[email protected]493d14212011-07-07 15:38:48380 IPC_STRUCT_TRAITS_MEMBER(is_filtered)
381 IPC_STRUCT_TRAITS_MEMBER(event_type)
382 IPC_STRUCT_TRAITS_MEMBER(event_time_stamp)
383 IPC_STRUCT_TRAITS_MEMBER(event_modifiers)
384 IPC_STRUCT_TRAITS_MEMBER(mouse_button)
385 IPC_STRUCT_TRAITS_MEMBER(mouse_position)
386 IPC_STRUCT_TRAITS_MEMBER(mouse_click_count)
[email protected]80473262011-08-31 17:15:18387 IPC_STRUCT_TRAITS_MEMBER(mouse_movement)
[email protected]493d14212011-07-07 15:38:48388 IPC_STRUCT_TRAITS_MEMBER(wheel_delta)
389 IPC_STRUCT_TRAITS_MEMBER(wheel_ticks)
390 IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page)
391 IPC_STRUCT_TRAITS_MEMBER(key_code)
[email protected]f0287d32013-09-14 11:50:27392 IPC_STRUCT_TRAITS_MEMBER(code)
[email protected]493d14212011-07-07 15:38:48393 IPC_STRUCT_TRAITS_MEMBER(character_text)
[email protected]2daba2f32011-09-29 04:23:09394 IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets)
395 IPC_STRUCT_TRAITS_MEMBER(composition_target_segment)
396 IPC_STRUCT_TRAITS_MEMBER(composition_selection_start)
397 IPC_STRUCT_TRAITS_MEMBER(composition_selection_end)
[email protected]cdf4e912012-06-21 23:15:10398 IPC_STRUCT_TRAITS_MEMBER(touches)
399 IPC_STRUCT_TRAITS_MEMBER(changed_touches)
400 IPC_STRUCT_TRAITS_MEMBER(target_touches)
[email protected]493d14212011-07-07 15:38:48401IPC_STRUCT_TRAITS_END()
402
[email protected]24931102012-03-15 01:21:27403IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair)
404 IPC_STRUCT_TRAITS_MEMBER(host)
405 IPC_STRUCT_TRAITS_MEMBER(port)
406IPC_STRUCT_TRAITS_END()
407
[email protected]7b2f7292012-09-19 19:52:12408IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData)
[email protected]6f75c952011-08-26 04:51:07409 IPC_STRUCT_TRAITS_MEMBER(url)
410 IPC_STRUCT_TRAITS_MEMBER(method)
411 IPC_STRUCT_TRAITS_MEMBER(headers)
[email protected]6f75c952011-08-26 04:51:07412 IPC_STRUCT_TRAITS_MEMBER(follow_redirects)
413 IPC_STRUCT_TRAITS_MEMBER(record_download_progress)
414 IPC_STRUCT_TRAITS_MEMBER(record_upload_progress)
415 IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url)
416 IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url)
417 IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests)
418 IPC_STRUCT_TRAITS_MEMBER(allow_credentials)
419 IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding)
420 IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding)
421 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
422 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
[email protected]c094eaf2012-07-10 16:09:01423 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
424 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
[email protected]6f75c952011-08-26 04:51:07425 IPC_STRUCT_TRAITS_MEMBER(body)
426IPC_STRUCT_TRAITS_END()
427
[email protected]7b2f7292012-09-19 19:52:12428IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
[email protected]6f75c952011-08-26 04:51:07429 IPC_STRUCT_TRAITS_MEMBER(is_file)
430 IPC_STRUCT_TRAITS_MEMBER(data)
[email protected]c6420f082013-09-18 22:42:41431 IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource)
[email protected]6f75c952011-08-26 04:51:07432 IPC_STRUCT_TRAITS_MEMBER(start_offset)
433 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
434 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
435IPC_STRUCT_TRAITS_END()
436
[email protected]844fecb2012-11-16 20:11:06437IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
438 IPC_STRUCT_TRAITS_MEMBER(url)
439 IPC_STRUCT_TRAITS_MEMBER(headers)
440 IPC_STRUCT_TRAITS_MEMBER(status_code)
441 IPC_STRUCT_TRAITS_MEMBER(status_text)
442 IPC_STRUCT_TRAITS_MEMBER(redirect_url)
[email protected]844fecb2012-11-16 20:11:06443IPC_STRUCT_TRAITS_END()
444
[email protected]07d0a6bf2013-09-17 04:15:10445IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo)
[email protected]5b9b80e2012-03-20 20:19:39446 IPC_STRUCT_TRAITS_MEMBER(name)
447 IPC_STRUCT_TRAITS_MEMBER(type)
448 IPC_STRUCT_TRAITS_MEMBER(state)
449 IPC_STRUCT_TRAITS_MEMBER(addresses)
450 IPC_STRUCT_TRAITS_MEMBER(display_name)
451 IPC_STRUCT_TRAITS_MEMBER(mtu)
452IPC_STRUCT_TRAITS_END()
[email protected]e5aeef02012-08-17 00:18:43453
[email protected]73af6332014-02-06 23:28:10454// Only whitelisted switches passed through PpapiNaClPluginArgs.
[email protected]ac07ec52013-04-22 17:32:45455// The list of switches can be found in:
[email protected]73af6332014-02-06 23:28:10456// components/nacl/browser/nacl_process_host.cc
457IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs)
[email protected]ac07ec52013-04-22 17:32:45458 IPC_STRUCT_TRAITS_MEMBER(off_the_record)
459 IPC_STRUCT_TRAITS_MEMBER(permissions)
[email protected]ac07ec52013-04-22 17:32:45460 IPC_STRUCT_TRAITS_MEMBER(switch_names)
461 IPC_STRUCT_TRAITS_MEMBER(switch_values)
462IPC_STRUCT_TRAITS_END()
463
lionel.g.landwerlin764a8c92015-11-19 01:48:08464IPC_STRUCT_TRAITS_BEGIN(PP_AudioProfileDescription)
465 IPC_STRUCT_TRAITS_MEMBER(profile)
466 IPC_STRUCT_TRAITS_MEMBER(max_channels)
467 IPC_STRUCT_TRAITS_MEMBER(sample_size)
468 IPC_STRUCT_TRAITS_MEMBER(sample_rate)
469 IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
470IPC_STRUCT_TRAITS_END()
471
lionel.g.landwerlinc3f15122015-02-25 01:20:58472IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription)
473IPC_STRUCT_TRAITS_MEMBER(profile)
474IPC_STRUCT_TRAITS_MEMBER(max_resolution)
475IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator)
476IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator)
lionel.g.landwerlinb8698ac42015-05-06 00:01:52477IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated)
lionel.g.landwerlinc3f15122015-02-25 01:20:58478IPC_STRUCT_TRAITS_END()
479
lionel.g.landwerlin764a8c92015-11-19 01:48:08480IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPB_AudioEncodeParameters)
481 IPC_STRUCT_TRAITS_MEMBER(channels)
482 IPC_STRUCT_TRAITS_MEMBER(input_sample_rate)
483 IPC_STRUCT_TRAITS_MEMBER(input_sample_size)
484 IPC_STRUCT_TRAITS_MEMBER(output_profile)
485 IPC_STRUCT_TRAITS_MEMBER(initial_bitrate)
486 IPC_STRUCT_TRAITS_MEMBER(acceleration)
487IPC_STRUCT_TRAITS_END()
488
[email protected]e8f578d2012-09-17 19:27:10489#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e8f578d2012-09-17 19:27:10490
[email protected]e5aeef02012-08-17 00:18:43491IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
492 IPC_STRUCT_TRAITS_MEMBER(resource)
493 IPC_STRUCT_TRAITS_MEMBER(handle)
494 IPC_STRUCT_TRAITS_MEMBER(size)
495IPC_STRUCT_TRAITS_END()
496
[email protected]667591d2012-09-04 21:30:12497#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]5b9b80e2012-03-20 20:19:39498
[email protected]eb415bf0e2011-04-14 02:45:42499// These are from the browser to the plugin.
[email protected]631179b2011-03-14 22:26:20500// Loads the given plugin.
[email protected]84350ef2013-12-19 17:10:50501IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin,
[email protected]d30a36f2013-02-07 04:16:26502 base::FilePath /* path */,
[email protected]84350ef2013-12-19 17:10:50503 ppapi::PpapiPermissions /* permissions */)
[email protected]631179b2011-03-14 22:26:20504
505// Creates a channel to talk to a renderer. The plugin will respond with
506// PpapiHostMsg_ChannelCreated.
yzshen92cad452016-06-17 20:40:09507// If |renderer_pid| is base::kNullProcessId, this is a channel used by the
508// browser itself.
[email protected]108fd342013-01-04 20:46:54509IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel,
510 base::ProcessId /* renderer_pid */,
511 int /* renderer_child_id */,
[email protected]bc2eeb42012-05-02 22:35:53512 bool /* incognito */)
[email protected]631179b2011-03-14 22:26:20513
[email protected]73af6332014-02-06 23:28:10514// Initializes the IPC dispatchers in the NaCl plugin.
515IPC_MESSAGE_CONTROL1(PpapiMsg_InitializeNaClDispatcher,
516 ppapi::PpapiNaClPluginArgs /* args */)
[email protected]8510d282012-08-30 19:47:38517
[email protected]029bd942013-01-22 08:30:33518// Instructs the plugin process to crash.
519IPC_MESSAGE_CONTROL0(PpapiMsg_Crash)
520
521// Instructs the plugin process to hang.
522IPC_MESSAGE_CONTROL0(PpapiMsg_Hang)
523
[email protected]631179b2011-03-14 22:26:20524// Each plugin may be referenced by multiple renderers. We need the instance
525// IDs to be unique within a plugin, despite coming from different renderers,
526// and unique within a renderer, despite going to different plugins. This means
527// that neither the renderer nor the plugin can generate instance IDs without
528// consulting the other.
529//
530// We resolve this by having the renderer generate a unique instance ID inside
531// its process. It then asks the plugin to reserve that ID by sending this sync
532// message. If the plugin has not yet seen this ID, it will remember it as used
533// (to prevent a race condition if another renderer tries to then use the same
534// instance), and set usable as true.
535//
536// If the plugin has already seen the instance ID, it will set usable as false
537// and the renderer must retry a new instance ID.
538IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId,
539 PP_Instance /* instance */,
540 bool /* usable */)
541
[email protected]208aad792011-05-26 19:05:28542// Passes the WebKit preferences to the plugin.
543IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences,
[email protected]4d2efd22011-08-18 21:58:02544 ppapi::Preferences)
[email protected]208aad792011-05-26 19:05:28545
[email protected]631179b2011-03-14 22:26:20546// Sent in both directions to see if the other side supports the given
547// interface.
kareng1c62eeb2014-11-08 16:35:03548IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
[email protected]631179b2011-03-14 22:26:20549 std::string /* interface_name */,
550 bool /* result */)
551
[email protected]ea441832014-02-05 15:34:21552IPC_MESSAGE_CONTROL1(PpapiHostMsg_LogInterfaceUsage,
553 int /* interface_hash */)
554
[email protected]246fc492012-08-27 20:28:18555#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49556// Network state notification from the browser for implementing
557// PPP_NetworkState_Dev.
558IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState,
559 bool /* online */)
560
[email protected]951ef0b2012-07-27 22:46:53561// Requests a list of sites that have data stored from the plugin. The plugin
562// process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used
563// for Flash.
564IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData,
avie029c4132015-12-23 06:45:22565 uint32_t /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26566 base::FilePath /* plugin_data_path */)
[email protected]951ef0b2012-07-27 22:46:53567IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult,
avie029c4132015-12-23 06:45:22568 uint32_t /* request_id */,
[email protected]951ef0b2012-07-27 22:46:53569 std::vector<std::string> /* sites */)
570
[email protected]1bf0fb22012-04-12 21:44:16571// Instructs the plugin to clear data for the given site & time. The plugin
572// process will respond with PpapiHostMsg_ClearSiteDataResult. This is used
573// for Flash.
[email protected]951ef0b2012-07-27 22:46:53574IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData,
avie029c4132015-12-23 06:45:22575 uint32_t /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26576 base::FilePath /* plugin_data_path */,
[email protected]1bf0fb22012-04-12 21:44:16577 std::string /* site */,
avie029c4132015-12-23 06:45:22578 uint64_t /* flags */,
579 uint64_t /* max_age */)
[email protected]951ef0b2012-07-27 22:46:53580IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult,
avie029c4132015-12-23 06:45:22581 uint32_t /* request_id */,
[email protected]1bf0fb22012-04-12 21:44:16582 bool /* success */)
[email protected]2b657fd2011-04-18 16:00:47583
[email protected]1a559442012-05-27 07:18:46584IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses,
avie029c4132015-12-23 06:45:22585 uint32_t /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26586 base::FilePath /* plugin_data_path */)
[email protected]1a559442012-05-27 07:18:46587IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult,
avie029c4132015-12-23 06:45:22588 uint32_t /* request_id */,
[email protected]1a559442012-05-27 07:18:46589 bool /* success */)
590
[email protected]ee4dd682012-06-12 15:49:33591IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings,
avie029c4132015-12-23 06:45:22592 uint32_t /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26593 base::FilePath /* plugin_data_path */,
[email protected]ee4dd682012-06-12 15:49:33594 PP_Flash_BrowserOperations_SettingType /* setting_type */)
595IPC_MESSAGE_CONTROL4(
596 PpapiHostMsg_GetPermissionSettingsResult,
avie029c4132015-12-23 06:45:22597 uint32_t /* request_id */,
[email protected]ee4dd682012-06-12 15:49:33598 bool /* success */,
599 PP_Flash_BrowserOperations_Permission /* default_permission */,
600 ppapi::FlashSiteSettings /* sites */)
601
602IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission,
avie029c4132015-12-23 06:45:22603 uint32_t /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26604 base::FilePath /* plugin_data_path */,
[email protected]ee4dd682012-06-12 15:49:33605 PP_Flash_BrowserOperations_SettingType /* setting_type */,
606 PP_Flash_BrowserOperations_Permission /* permission */,
607 bool /* clear_site_specific */)
608IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult,
avie029c4132015-12-23 06:45:22609 uint32_t /* request_id */,
[email protected]ee4dd682012-06-12 15:49:33610 bool /* success */)
611
612IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission,
avie029c4132015-12-23 06:45:22613 uint32_t /* request_id */,
[email protected]d30a36f2013-02-07 04:16:26614 base::FilePath /* plugin_data_path */,
[email protected]ee4dd682012-06-12 15:49:33615 PP_Flash_BrowserOperations_SettingType /* setting_type */,
616 ppapi::FlashSiteSettings /* sites */)
617IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult,
avie029c4132015-12-23 06:45:22618 uint32_t /* request_id */,
[email protected]ee4dd682012-06-12 15:49:33619 bool /* success */)
620
[email protected]1bf0fb22012-04-12 21:44:16621// Broker Process.
[email protected]6990e5d2011-09-30 18:10:57622IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin,
[email protected]2b657fd2011-04-18 16:00:47623 PP_Instance /* instance */,
[email protected]6990e5d2011-09-30 18:10:57624 IPC::PlatformFileForTransit /* handle */,
625 int32_t /* result */)
[email protected]246fc492012-08-27 20:28:18626#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]2b657fd2011-04-18 16:00:47627
[email protected]631179b2011-03-14 22:26:20628// PPB_Audio.
629
630// Notifies the result of the audio stream create call. This is called in
631// both error cases and in the normal success case. These cases are
632// differentiated by the result code, which is one of the standard PPAPI
633// result codes.
634//
635// The handler of this message should always close all of the handles passed
636// in, since some could be valid even in the error case.
[email protected]246fc492012-08-27 20:28:18637IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
[email protected]be0a84b2011-08-13 04:18:44638 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20639 int32_t /* result_code (will be != PP_OK on failure) */,
[email protected]246fc492012-08-27 20:28:18640 ppapi::proxy::SerializedHandle /* socket_handle */,
641 ppapi::proxy::SerializedHandle /* handle */)
[email protected]631179b2011-03-14 22:26:20642
[email protected]eeb4e4a2011-07-19 16:22:06643// PPB_Graphics3D.
644IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
[email protected]be0a84b2011-08-13 04:18:44645 ppapi::HostResource /* graphics_3d */,
[email protected]eeb4e4a2011-07-19 16:22:06646 int32_t /* pp_error */)
647
[email protected]c42835772012-08-22 18:22:13648// PPB_ImageData.
649IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData,
650 ppapi::HostResource /* old_image_data */)
651
[email protected]0f41c012011-10-21 19:49:20652// PPB_Instance.
653IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete,
654 PP_Instance /* instance */,
655 int32_t /* result */)
656
[email protected]631179b2011-03-14 22:26:20657// PPP_Class.
658IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty,
avie029c4132015-12-23 06:45:22659 int64_t /* ppp_class */,
660 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02661 ppapi::proxy::SerializedVar /* property */,
662 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20663 bool /* result */)
664IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod,
avie029c4132015-12-23 06:45:22665 int64_t /* ppp_class */,
666 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02667 ppapi::proxy::SerializedVar /* method */,
668 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:20669 bool /* result */)
670IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty,
avie029c4132015-12-23 06:45:22671 int64_t /* ppp_class */,
672 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02673 ppapi::proxy::SerializedVar /* property */,
674 ppapi::proxy::SerializedVar /* out_exception */,
675 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20676IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties,
avie029c4132015-12-23 06:45:22677 int64_t /* ppp_class */,
678 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02679 std::vector<ppapi::proxy::SerializedVar> /* props */,
680 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20681IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty,
avie029c4132015-12-23 06:45:22682 int64_t /* ppp_class */,
683 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02684 ppapi::proxy::SerializedVar /* name */,
685 ppapi::proxy::SerializedVar /* value */,
686 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20687IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty,
avie029c4132015-12-23 06:45:22688 int64_t /* ppp_class */,
689 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02690 ppapi::proxy::SerializedVar /* property */,
691 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:20692IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call,
avie029c4132015-12-23 06:45:22693 int64_t /* ppp_class */,
694 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02695 ppapi::proxy::SerializedVar /* method_name */,
696 std::vector<ppapi::proxy::SerializedVar> /* args */,
697 ppapi::proxy::SerializedVar /* out_exception */,
698 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20699IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct,
avie029c4132015-12-23 06:45:22700 int64_t /* ppp_class */,
701 int64_t /* object */,
[email protected]4d2efd22011-08-18 21:58:02702 std::vector<ppapi::proxy::SerializedVar> /* args */,
703 ppapi::proxy::SerializedVar /* out_exception */,
704 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20705IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate,
avie029c4132015-12-23 06:45:22706 int64_t /* ppp_class */,
707 int64_t /* object */)
[email protected]631179b2011-03-14 22:26:20708
[email protected]8c3bd1d2011-04-12 20:01:42709// PPP_Graphics3D_Dev.
710IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost,
711 PP_Instance /* instance */)
712
[email protected]493d14212011-07-07 15:38:48713// PPP_InputEvent.
714IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent,
715 PP_Instance /* instance */,
716 ppapi::InputEventData /* data */)
717IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent,
718 PP_Instance /* instance */,
719 ppapi::InputEventData /* data */,
720 PP_Bool /* result */)
721
[email protected]631179b2011-03-14 22:26:20722// PPP_Instance.
723IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate,
724 PP_Instance /* instance */,
725 std::vector<std::string> /* argn */,
726 std::vector<std::string> /* argv */,
727 PP_Bool /* result */)
[email protected]5e5d0b02011-04-04 19:32:07728IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy,
729 PP_Instance /* instance */)
[email protected]e8f07ac2012-01-03 17:43:36730IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView,
[email protected]631179b2011-03-14 22:26:20731 PP_Instance /* instance */,
[email protected]e8f07ac2012-01-03 17:43:36732 ppapi::ViewData /* new_data */,
[email protected]06e0a342011-09-27 04:24:30733 PP_Bool /* flash_fullscreen */)
[email protected]631179b2011-03-14 22:26:20734IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus,
735 PP_Instance /* instance */,
736 PP_Bool /* has_focus */)
[email protected]47cb253f2013-05-16 01:50:40737IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad,
738 PP_Instance /* instance */,
739 int /* pending_loader_host_id */,
740 ppapi::URLResponseInfoData /* response */)
[email protected]631179b2011-03-14 22:26:20741
[email protected]e87640bd2014-06-18 16:44:00742// PPP_Messaging and PPP_MessageHandler.
[email protected]b20df1c2011-08-03 14:38:24743IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage,
744 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:02745 ppapi::proxy::SerializedVar /* message */)
[email protected]e87640bd2014-06-18 16:44:00746IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPMessageHandler_HandleBlockingMessage,
747 PP_Instance /* instance */,
748 ppapi::proxy::SerializedVar /* message */,
749 ppapi::proxy::SerializedVar /* result */,
[email protected]b2c1c332014-06-26 06:08:40750 bool /* was_handled */)
[email protected]b20df1c2011-08-03 14:38:24751
[email protected]1314f5f2011-10-16 02:26:56752// PPP_MouseLock.
[email protected]18d871f2011-09-08 16:56:34753IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost,
754 PP_Instance /* instance */)
755
[email protected]ec158402014-02-06 11:40:25756// PPP_Pdf
757IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate,
758 PP_Instance /* instance */,
759 bool /* clockwise */)
n.bansal64c4daa2014-11-19 08:38:48760IPC_SYNC_MESSAGE_ROUTED1_2(
761 PpapiMsg_PPPPdf_PrintPresetOptions,
762 PP_Instance /* instance */,
763 PP_PdfPrintPresetOptions_Dev /* print preset options */,
764 PP_Bool /* result */)
dmazzonic3547a32016-06-02 05:47:15765IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_EnableAccessibility,
766 PP_Instance /* instance */)
Dan Sinclairf50e9f32017-07-25 21:06:41767IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_SetCaretPosition,
768 PP_Instance /* instance */,
769 PP_FloatPoint /* position */)
770IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_MoveRangeSelectionExtent,
771 PP_Instance /* instance */,
772 PP_FloatPoint /* extent */)
773IPC_MESSAGE_ROUTED3(PpapiMsg_PPPPdf_SetSelectionBounds,
774 PP_Instance /* instance */,
775 PP_FloatPoint /* base */,
776 PP_FloatPoint /* extent */)
Diana Gagee813297a2017-08-01 19:07:53777IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_CanEditText,
Diana Gage008fc4f2017-07-26 04:25:25778 PP_Instance /* instance */,
779 PP_Bool /* result */)
Lei Zhangd46818b12018-04-18 13:24:28780IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_HasEditableText,
781 PP_Instance /* instance */,
782 PP_Bool /* result */)
Diana Gage1234d702017-08-04 21:59:50783IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_ReplaceSelection,
784 PP_Instance /* instance */,
785 std::string /* text */)
Lei Zhang9cff6f0d2018-04-20 02:35:32786IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_CanUndo,
787 PP_Instance /* instance */,
788 PP_Bool /* result */)
789IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_CanRedo,
790 PP_Instance /* instance */,
791 PP_Bool /* result */)
792IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_Undo, PP_Instance /* instance */)
793IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_Redo, PP_Instance /* instance */)
Lei Zhangdc88867d2018-05-22 16:57:47794IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPPdf_PrintBegin,
795 PP_Instance /* instance */,
796 PP_PrintSettings_Dev /* print_settings */,
797 PP_PdfPrintSettings_Dev /* pdf_print_settings */,
798 int32_t /* result */)
[email protected]ec158402014-02-06 11:40:25799
[email protected]54ea9ff2014-03-20 00:27:54800// Find
801IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind,
802 PP_Instance /* instance */,
803 std::string /* text */)
804IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult,
805 PP_Instance /* instance */,
806 PP_Bool /* forward */)
807IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind,
808 PP_Instance /* instance */)
809
810IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_SetPluginToHandleFindRequests,
811 PP_Instance /* instance */)
812IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_NumberOfFindResultsChanged,
813 PP_Instance /* instance */,
814 int32_t /* total */,
815 PP_Bool /* final_result */)
816IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SelectFindResultChanged,
817 PP_Instance /* instance */,
818 int32_t /* index */)
[email protected]fb0115f6c2014-03-30 17:21:08819IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTickmarks,
820 PP_Instance /* instance */,
821 std::vector<PP_Rect> /* tickmarks */)
[email protected]54ea9ff2014-03-20 00:27:54822
[email protected]3890cfff2012-02-29 07:54:18823// PPP_Printing
824IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats,
825 PP_Instance /* instance */,
826 uint32_t /* result */)
827IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin,
828 PP_Instance /* instance */,
Lei Zhangdc88867d2018-05-22 16:57:47829 PP_PrintSettings_Dev /* settings */,
[email protected]3890cfff2012-02-29 07:54:18830 int32_t /* result */)
831IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages,
832 PP_Instance /* instance */,
833 std::vector<PP_PrintPageNumberRange_Dev> /* pages */,
834 ppapi::HostResource /* result */)
835IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End,
836 PP_Instance /* instance */)
837IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled,
838 PP_Instance /* instance */,
839 bool /* result */)
840
[email protected]3c8c74c2012-03-15 07:34:52841// PPP_TextInput.
842IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText,
843 PP_Instance /* instance */,
844 uint32_t /* desired_number_of_characters */)
845
[email protected]246fc492012-08-27 20:28:18846#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:49847// PPB_Broker.
848IPC_MESSAGE_ROUTED3(
849 PpapiMsg_PPBBroker_ConnectComplete,
850 ppapi::HostResource /* broker */,
851 IPC::PlatformFileForTransit /* handle */,
852 int32_t /* result */)
853
[email protected]6761d632012-04-18 17:54:49854// PPP_Instance_Private.
855IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
856 PP_Instance /* instance */,
857 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:20858
[email protected]246fc492012-08-27 20:28:18859#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]7ace8ad2011-08-06 03:23:58860
mseaborn98d206ca2016-01-08 11:43:28861// This message is sent from the renderer to the PNaCl compiler process
862// (NaCl untrusted code -- a nexe). This implements the init_callback()
863// IRT interface. This message initializes the translation process,
864// providing an array of object file FDs for writing output to, along with
865// other parameters.
866IPC_SYNC_MESSAGE_CONTROL3_2(PpapiMsg_PnaclTranslatorCompileInit,
867 /* number of threads to use */
868 int,
869 /* object file FDs for outputs */
870 std::vector<ppapi::proxy::SerializedHandle>,
871 /* list of command line flags */
872 std::vector<std::string>,
873 /* success status result */
874 bool,
875 /* error string if the success field is false */
876 std::string)
877
878// This message is sent from the renderer to the PNaCl compiler process
879// (NaCl untrusted code -- a nexe). This implements the data_callback()
880// IRT interface. This message sends the next chunk of input bitcode data
881// to the compiler process. If the success result is false (for failure),
882// the renderer can still invoke PpapiMsg_PnaclTranslatorCompileEnd to get
883// a message describing the error.
884IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_PnaclTranslatorCompileChunk,
885 /* chunk of data for the input pexe file */
886 std::string,
887 /* success status result */
888 bool)
889
890// This message is sent from the renderer to the PNaCl compiler process
891// (NaCl untrusted code -- a nexe). This implements the end_callback() IRT
892// interface. This blocks until translation is complete or an error has
893// occurred.
894IPC_SYNC_MESSAGE_CONTROL0_2(PpapiMsg_PnaclTranslatorCompileEnd,
895 /* success status result */
896 bool,
897 /* error string if the success field is false */
898 std::string)
899
mseaborn3bedcdc2016-01-04 21:14:13900// This message is sent from the renderer to the PNaCl linker process
901// (NaCl untrusted code -- a nexe). This message tells the PNaCl
902// linker to link the given object files together to produce a nexe
903// file, writing the output to the given file handle.
904IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_PnaclTranslatorLink,
905 /* object file FDs for inputs */
906 std::vector<ppapi::proxy::SerializedHandle>,
907 /* nexe file FD for output */
908 ppapi::proxy::SerializedHandle,
909 /* success status result */
910 bool)
911
[email protected]200c9182013-12-18 23:37:11912
[email protected]631179b2011-03-14 22:26:20913// These are from the plugin to the renderer.
914
915// Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
916// could not be established. This could be because the IPC could not be created
917// for some weird reason, but more likely that the plugin failed to load or
918// initialize properly.
919IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
920 IPC::ChannelHandle /* handle */)
921
[email protected]43fb4f82014-04-23 11:53:13922// Notify the renderer that the PPAPI channel gets ready in the plugin.
[email protected]b2c1c332014-06-26 06:08:40923IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete)
[email protected]43fb4f82014-04-23 11:53:13924
mseaborn38c234c32015-12-22 04:47:53925// This is sent from a nexe (NaCl untrusted code) to the renderer, to open a
926// file listed in a NaCl manifest file (NMF). It is part of the
927// implementation of open_resource(), which is defined in NaCl's irt.h.
928//
929// This call returns a read-only file handle from the renderer. When using
930// validation caching, this handle is not used: The NaCl loader process will
931// reacquire the handle from the more-trusted browser process via
932// NaClProcessMsg_ResolveFileToken, passing the token values returned here.
933//
934// Note that the open_resource() interface is not a PPAPI interface (in the
935// sense that it's not defined in ppapi/c/), but this message is defined here
936// in ppapi_messages.h (rather than in components/nacl/) because half of the
937// implementation of open_resource() lives in ppapi/nacl_irt/, and because
938// this message must be processed by ppapi/proxy/nacl_message_scanner.cc.
Justin TerAvestcffdd032014-09-10 19:21:56939IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource,
[email protected]ae5f7f82014-05-02 23:24:52940 std::string /* key */,
Justin TerAvestcffdd032014-09-10 19:21:56941 uint64_t /* file_token_lo */,
erikchenbf74d592016-04-12 00:49:18942 uint64_t /* file_token_hi */,
943 ppapi::proxy::SerializedHandle /* fd */)
[email protected]ae5f7f82014-05-02 23:24:52944
[email protected]a9b16dd2012-01-31 05:00:26945// Logs the given message to the console of all instances.
946IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource,
947 PP_Instance /* instance */,
948 int /* log_level */,
949 std::string /* source */,
950 std::string /* value */)
951
[email protected]631179b2011-03-14 22:26:20952// PPB_Audio.
[email protected]55cdf6052011-05-13 19:22:53953IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create,
[email protected]631179b2011-03-14 22:26:20954 PP_Instance /* instance_id */,
[email protected]55cdf6052011-05-13 19:22:53955 int32_t /* sample_rate */,
956 uint32_t /* sample_frame_count */,
[email protected]be0a84b2011-08-13 04:18:44957 ppapi::HostResource /* result */)
[email protected]631179b2011-03-14 22:26:20958IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
[email protected]be0a84b2011-08-13 04:18:44959 ppapi::HostResource /* audio_id */,
[email protected]631179b2011-03-14 22:26:20960 bool /* play */)
961
lionel.g.landwerlin764a8c92015-11-19 01:48:08962// PPB_AudioEncoder
963IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create)
964IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles)
965IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply,
966 std::vector<PP_AudioProfileDescription> /* results */)
967IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize,
968 ppapi::proxy::PPB_AudioEncodeParameters /* parameters */)
969IPC_MESSAGE_CONTROL5(PpapiPluginMsg_AudioEncoder_InitializeReply,
970 int32_t /* number_of_samples */,
971 int32_t /* audio_buffer_count */,
972 int32_t /* audio_buffer_size */,
973 int32_t /* bitstream_buffer_count */,
974 int32_t /* bitstream_buffer_size */)
975IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, int32_t /* buffer_id */)
976IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply,
977 int32_t /* buffer_id */)
978IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady,
979 int32_t /* buffer_id */)
980IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer,
981 int32_t /* buffer_id */)
982IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange,
983 uint32_t /* bitrate */)
984IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError,
985 int32_t /* error */)
986IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close)
987
[email protected]631179b2011-03-14 22:26:20988// PPB_Core.
989IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
[email protected]be0a84b2011-08-13 04:18:44990 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20991IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
[email protected]be0a84b2011-08-13 04:18:44992 ppapi::HostResource)
[email protected]631179b2011-03-14 22:26:20993
[email protected]eeb4e4a2011-07-19 16:22:06994// PPB_Graphics3D.
Antoine Labourfeab2392017-12-21 20:28:39995IPC_SYNC_MESSAGE_ROUTED3_4(PpapiHostMsg_PPBGraphics3D_Create,
996 PP_Instance /* instance */,
997 ppapi::HostResource /* share_context */,
998 gpu::ContextCreationAttribs /* attrib_helper */,
999 ppapi::HostResource /* result */,
1000 gpu::Capabilities /* capabilities */,
1001 ppapi::proxy::SerializedHandle /* shared_state */,
1002 gpu::CommandBufferId /* command_buffer_id */)
[email protected]503b3a22011-12-12 23:29:401003IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
[email protected]be0a84b2011-08-13 04:18:441004 ppapi::HostResource /* context */,
avie029c4132015-12-23 06:45:221005 int32_t /* transfer_buffer_id */)
[email protected]7fe4198b2014-03-18 21:52:361006IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange,
[email protected]be0a84b2011-08-13 04:18:441007 ppapi::HostResource /* context */,
avie029c4132015-12-23 06:45:221008 int32_t /* start */,
1009 int32_t /* end */,
[email protected]7fe4198b2014-03-18 21:52:361010 gpu::CommandBuffer::State /* state */,
1011 bool /* success */)
Antoine Labourd3469942017-05-16 21:23:421012IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange,
[email protected]7fe4198b2014-03-18 21:52:361013 ppapi::HostResource /* context */,
Antoine Labourd3469942017-05-16 21:23:421014 uint32_t /* set_get_buffer_count */,
avie029c4132015-12-23 06:45:221015 int32_t /* start */,
1016 int32_t /* end */,
[email protected]571b35e82012-05-19 00:04:351017 gpu::CommandBuffer::State /* state */,
1018 bool /* success */)
[email protected]eeb4e4a2011-07-19 16:22:061019IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
[email protected]be0a84b2011-08-13 04:18:441020 ppapi::HostResource /* context */,
avie029c4132015-12-23 06:45:221021 int32_t /* put_offset */)
[email protected]046fa1ac2014-04-01 09:06:431022IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:441023 ppapi::HostResource /* context */,
avie029c4132015-12-23 06:45:221024 uint32_t /* size */,
1025 int32_t /* id */,
[email protected]046fa1ac2014-04-01 09:06:431026 ppapi::proxy::SerializedHandle /* transfer_buffer */)
[email protected]eeb4e4a2011-07-19 16:22:061027IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
[email protected]be0a84b2011-08-13 04:18:441028 ppapi::HostResource /* context */,
avie029c4132015-12-23 06:45:221029 int32_t /* id */)
erikchen438b0442016-05-11 18:33:301030// The receiver of this message takes ownership of the front buffer of the GL
1031// context. Each call to PpapiHostMsg_PPBGraphics3D_SwapBuffers must be preceded
1032// by exactly one call to PpapiHostMsg_PPBGraphics3D_TakeFrontBuffer. The
1033// SyncToken passed to PpapiHostMsg_PPBGraphics3D_SwapBuffers must be generated
1034// after this message is sent.
1035IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_TakeFrontBuffer,
1036 ppapi::HostResource /* graphics_3d */)
pimanb36392c22016-07-13 02:11:361037IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
dyenddfdbbb2016-01-14 22:21:381038 ppapi::HostResource /* graphics_3d */,
erikchenb13637b2016-07-08 09:38:561039 gpu::SyncToken /* sync_token */,
pimanb36392c22016-07-13 02:11:361040 gfx::Size /* size */)
piman39b1e102016-06-29 23:06:001041IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible,
1042 ppapi::HostResource /* context */)
[email protected]eeb4e4a2011-07-19 16:22:061043
[email protected]2a1d6d912011-12-04 23:29:061044// PPB_ImageData.
[email protected]4e1b91e2013-06-12 00:18:131045IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform,
[email protected]2a1d6d912011-12-04 23:29:061046 PP_Instance /* instance */,
avie029c4132015-12-23 06:45:221047 int32_t /* format */,
[email protected]2a1d6d912011-12-04 23:29:061048 PP_Size /* size */,
1049 PP_Bool /* init_to_zero */,
1050 ppapi::HostResource /* result_resource */,
[email protected]4e1b91e2013-06-12 00:18:131051 PP_ImageDataDesc /* image_data_desc */,
[email protected]2a1d6d912011-12-04 23:29:061052 ppapi::proxy::ImageHandle /* result */)
[email protected]4e1b91e2013-06-12 00:18:131053IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateSimple,
[email protected]16b7b272012-07-25 21:54:491054 PP_Instance /* instance */,
avie029c4132015-12-23 06:45:221055 int32_t /* format */,
[email protected]16b7b272012-07-25 21:54:491056 PP_Size /* size */,
1057 PP_Bool /* init_to_zero */,
1058 ppapi::HostResource /* result_resource */,
[email protected]4e1b91e2013-06-12 00:18:131059 PP_ImageDataDesc /* image_data_desc */,
[email protected]246fc492012-08-27 20:28:181060 ppapi::proxy::SerializedHandle /* result */)
[email protected]2a1d6d912011-12-04 23:29:061061
[email protected]631179b2011-03-14 22:26:201062// PPB_Instance.
1063IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
1064 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021065 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201066IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
1067 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021068 ppapi::proxy::SerializedVar /* result */)
[email protected]473ef7d2012-12-03 23:39:051069IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics,
1070 PP_Instance /* instance */,
1071 PP_Resource /* device */)
[email protected]c59ed5892012-02-18 01:10:191072IPC_SYNC_MESSAGE_ROUTED1_1(
1073 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate,
1074 PP_Instance /* instance */,
1075 uint32_t /* result */)
1076IPC_SYNC_MESSAGE_ROUTED1_1(
1077 PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize,
1078 PP_Instance /* instance */,
1079 uint32_t /* result */)
[email protected]631179b2011-03-14 22:26:201080IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame,
1081 PP_Instance /* instance */,
1082 PP_Bool /* result */)
1083IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript,
1084 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021085 ppapi::proxy::SerializedVar /* script */,
1086 ppapi::proxy::SerializedVar /* out_exception */,
1087 ppapi::proxy::SerializedVar /* result */)
[email protected]8d770e492011-10-11 04:54:311088IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet,
1089 PP_Instance /* instance */,
1090 ppapi::proxy::SerializedVar /* result */)
[email protected]06e0a342011-09-27 04:24:301091IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen,
1092 PP_Instance /* instance */,
1093 PP_Bool /* fullscreen */,
1094 PP_Bool /* result */)
1095IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize,
1096 PP_Instance /* instance */,
1097 PP_Bool /* result */,
1098 PP_Size /* size */)
[email protected]493d14212011-07-07 15:38:481099IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents,
1100 PP_Instance /* instance */,
1101 bool /* is_filtering */,
1102 uint32_t /* event_classes */)
1103IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents,
1104 PP_Instance /* instance */,
1105 uint32_t /* event_classes */)
[email protected]55a5a522011-07-06 22:52:401106IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage,
1107 PP_Instance /* instance */,
[email protected]4d2efd22011-08-18 21:58:021108 ppapi::proxy::SerializedVar /* message */)
[email protected]0f41c012011-10-21 19:49:201109IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse,
1110 PP_Instance /* instance */)
[email protected]18d871f2011-09-08 16:56:341111IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse,
1112 PP_Instance /* instance */)
[email protected]03460232011-10-10 17:23:571113IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument,
1114 PP_Instance /* instance */,
1115 ppapi::proxy::SerializedVar /* relative */,
1116 ppapi::proxy::SerializedVar /* result */)
1117IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest,
1118 PP_Instance /* instance */,
1119 ppapi::proxy::SerializedVar /* relative */,
1120 PP_Bool /* result */)
1121IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument,
1122 PP_Instance /* active */,
1123 PP_Instance /* target */,
1124 PP_Bool /* result */)
[email protected]32938de2012-10-19 18:42:321125IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL,
[email protected]03460232011-10-10 17:23:571126 PP_Instance /* active */,
[email protected]32938de2012-10-19 18:42:321127 PP_URLComponents_Dev /* components */,
[email protected]03460232011-10-10 17:23:571128 ppapi::proxy::SerializedVar /* result */)
1129IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL,
1130 PP_Instance /* active */,
1131 ppapi::proxy::SerializedVar /* result */)
[email protected]f5a14022013-09-07 15:47:401132IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginReferrerURL,
1133 PP_Instance /* instance */,
1134 ppapi::proxy::SerializedVar /* result */)
[email protected]33ec50562012-04-08 20:28:431135IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor,
1136 PP_Instance /* instance */,
1137 int32_t /* type */,
1138 ppapi::HostResource /* custom_image */,
1139 PP_Point /* hot_spot */)
[email protected]4c44183a2012-04-27 16:52:231140IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType,
[email protected]2daba2f32011-09-29 04:23:091141 PP_Instance /* instance */,
1142 PP_TextInput_Type /* type */)
[email protected]4c44183a2012-04-27 16:52:231143IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition,
[email protected]2daba2f32011-09-29 04:23:091144 PP_Instance /* instance */,
1145 PP_Rect /* caret */,
1146 PP_Rect /* bounding_box */)
[email protected]4c44183a2012-04-27 16:52:231147IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText,
[email protected]2daba2f32011-09-29 04:23:091148 PP_Instance /* instance */)
[email protected]4c44183a2012-04-27 16:52:231149IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText,
[email protected]3c8c74c2012-03-15 07:34:521150 PP_Instance /* instance */,
1151 std::string /* text */,
1152 uint32_t /* caret */,
1153 uint32_t /* anchor */)
[email protected]2daba2f32011-09-29 04:23:091154
[email protected]631179b2011-03-14 22:26:201155// PPB_Var.
[email protected]154eca12014-07-14 23:55:371156IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVar_AddRefObject,
avie029c4132015-12-23 06:45:221157 int64_t /* object_id */)
1158IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, int64_t /* object_id */)
[email protected]631179b2011-03-14 22:26:201159IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty,
[email protected]4d2efd22011-08-18 21:58:021160 ppapi::proxy::SerializedVar /* object */,
1161 ppapi::proxy::SerializedVar /* property */,
1162 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201163 PP_Bool /* result */)
1164IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated,
[email protected]4d2efd22011-08-18 21:58:021165 ppapi::proxy::SerializedVar /* object */,
1166 ppapi::proxy::SerializedVar /* method */,
1167 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201168 PP_Bool /* result */)
1169IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty,
[email protected]4d2efd22011-08-18 21:58:021170 ppapi::proxy::SerializedVar /* object */,
1171 ppapi::proxy::SerializedVar /* property */,
1172 ppapi::proxy::SerializedVar /* out_exception */,
1173 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201174IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty,
[email protected]4d2efd22011-08-18 21:58:021175 ppapi::proxy::SerializedVar /* object */,
1176 ppapi::proxy::SerializedVar /* property */,
1177 ppapi::proxy::SerializedVar /* out_exception */,
[email protected]631179b2011-03-14 22:26:201178 PP_Bool /* result */)
1179IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties,
[email protected]4d2efd22011-08-18 21:58:021180 ppapi::proxy::SerializedVar /* object */,
1181 std::vector<ppapi::proxy::SerializedVar> /* props */,
1182 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201183IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated,
[email protected]4d2efd22011-08-18 21:58:021184 ppapi::proxy::SerializedVar /* object */,
1185 ppapi::proxy::SerializedVar /* name */,
1186 ppapi::proxy::SerializedVar /* value */,
1187 ppapi::proxy::SerializedVar /* out_exception */)
[email protected]631179b2011-03-14 22:26:201188IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated,
[email protected]4d2efd22011-08-18 21:58:021189 ppapi::proxy::SerializedVar /* object */,
1190 ppapi::proxy::SerializedVar /* method_name */,
1191 std::vector<ppapi::proxy::SerializedVar> /* args */,
1192 ppapi::proxy::SerializedVar /* out_exception */,
1193 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201194IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct,
[email protected]4d2efd22011-08-18 21:58:021195 ppapi::proxy::SerializedVar /* object */,
1196 std::vector<ppapi::proxy::SerializedVar> /* args */,
1197 ppapi::proxy::SerializedVar /* out_exception */,
1198 ppapi::proxy::SerializedVar /* result */)
[email protected]631179b2011-03-14 22:26:201199IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
[email protected]4d2efd22011-08-18 21:58:021200 ppapi::proxy::SerializedVar /* var */,
avie029c4132015-12-23 06:45:221201 int64_t /* object_class */,
1202 int64_t /* object-data */,
[email protected]631179b2011-03-14 22:26:201203 PP_Bool /* result */)
1204IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1205 PP_Instance /* instance */,
avie029c4132015-12-23 06:45:221206 int64_t /* object_class */,
1207 int64_t /* object_data */,
[email protected]4d2efd22011-08-18 21:58:021208 ppapi::proxy::SerializedVar /* result */)
[email protected]6239d342011-05-06 22:55:471209
[email protected]246fc492012-08-27 20:28:181210#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]6761d632012-04-18 17:54:491211// PPB_Broker.
1212IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create,
1213 PP_Instance /* instance */,
1214 ppapi::HostResource /* result_resource */)
1215IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1216 ppapi::HostResource /* broker */)
1217
1218// PPB_Buffer.
[email protected]246fc492012-08-27 20:28:181219IPC_SYNC_MESSAGE_ROUTED2_2(
1220 PpapiHostMsg_PPBBuffer_Create,
1221 PP_Instance /* instance */,
1222 uint32_t /* size */,
1223 ppapi::HostResource /* result_resource */,
1224 ppapi::proxy::SerializedHandle /* result_shm_handle */)
[email protected]6761d632012-04-18 17:54:491225
[email protected]e8f578d2012-09-17 19:27:101226#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]e5aeef02012-08-17 00:18:431227
[email protected]6761d632012-04-18 17:54:491228// PPB_Testing.
1229IPC_SYNC_MESSAGE_ROUTED3_1(
1230 PpapiHostMsg_PPBTesting_ReadImageData,
1231 ppapi::HostResource /* device_context_2d */,
1232 ppapi::HostResource /* image */,
1233 PP_Point /* top_left */,
1234 PP_Bool /* result */)
1235IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance,
1236 PP_Instance /* instance */,
avie029c4132015-12-23 06:45:221237 uint32_t /* result */)
tommycliee0a49b2015-05-05 19:40:491238IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_PostPowerSaverStatus,
1239 PP_Instance /* instance */)
1240IPC_SYNC_MESSAGE_ROUTED1_0(
1241 PpapiHostMsg_PPBTesting_SubscribeToPowerSaverNotifications,
1242 PP_Instance /* instance */)
dmichaeledf95fc82014-11-11 00:55:461243IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent,
1244 PP_Instance /* instance */,
1245 ppapi::InputEventData /* input_event */)
[email protected]38f428f12013-04-19 14:46:051246IPC_SYNC_MESSAGE_ROUTED1_0(
1247 PpapiHostMsg_PPBTesting_SetMinimumArrayBufferSizeForShmem,
1248 uint32_t /* threshold */)
[email protected]6761d632012-04-18 17:54:491249
[email protected]667591d2012-09-04 21:30:121250#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]0fa46e82011-08-09 07:31:491251
[email protected]bf398e262014-03-26 19:22:241252// PPB_VideoDecoder_Dev.
1253// (Messages from plugin to renderer.)
[email protected]7ace8ad2011-08-06 03:23:581254IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create,
1255 PP_Instance /* instance */,
[email protected]be0a84b2011-08-13 04:18:441256 ppapi::HostResource /* context */,
[email protected]2ffc31a2011-09-01 03:18:281257 PP_VideoDecoder_Profile /* profile */,
[email protected]be0a84b2011-08-13 04:18:441258 ppapi::HostResource /* result */)
[email protected]7ace8ad2011-08-06 03:23:581259IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode,
[email protected]be0a84b2011-08-13 04:18:441260 ppapi::HostResource /* video_decoder */,
1261 ppapi::HostResource /* bitstream buffer */,
avie029c4132015-12-23 06:45:221262 int32_t /* bitstream buffer id */,
1263 uint32_t /* size of buffer */)
[email protected]7ace8ad2011-08-06 03:23:581264IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers,
[email protected]be0a84b2011-08-13 04:18:441265 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581266 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1267IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
[email protected]be0a84b2011-08-13 04:18:441268 ppapi::HostResource /* video_decoder */,
[email protected]7ace8ad2011-08-06 03:23:581269 int32_t /* picture buffer id */)
1270IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
[email protected]be0a84b2011-08-13 04:18:441271 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581272IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
[email protected]be0a84b2011-08-13 04:18:441273 ppapi::HostResource /* video_decoder */)
[email protected]7ace8ad2011-08-06 03:23:581274IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
[email protected]be0a84b2011-08-13 04:18:441275 ppapi::HostResource /* video_decoder */)
[email protected]339fbcff2012-02-29 16:10:321276
[email protected]bf398e262014-03-26 19:22:241277// PPB_VideoDecoder_Dev.
1278// (Messages from renderer to plugin to notify it to run callbacks.)
1279IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
1280 ppapi::HostResource /* video_decoder */,
1281 int32_t /* bitstream buffer id */,
1282 int32_t /* PP_CompletionCallback result */)
1283IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK,
1284 ppapi::HostResource /* video_decoder */,
1285 int32_t /* PP_CompletionCallback result */)
1286IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK,
1287 ppapi::HostResource /* video_decoder */,
1288 int32_t /* PP_CompletionCallback result */)
1289
1290// PPP_VideoDecoder_Dev.
1291IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers,
1292 ppapi::HostResource /* video_decoder */,
1293 uint32_t /* requested number of buffers */,
1294 PP_Size /* dimensions of buffers */,
1295 uint32_t /* texture_target */)
1296IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer,
1297 ppapi::HostResource /* video_decoder */,
1298 int32_t /* picture buffer id */)
1299IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady,
1300 ppapi::HostResource /* video_decoder */,
1301 PP_Picture_Dev /* output picture */)
1302IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError,
1303 ppapi::HostResource /* video_decoder */,
1304 PP_VideoDecodeError_Dev /* error */)
[email protected]667591d2012-09-04 21:30:121305#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]339fbcff2012-02-29 16:10:321306
[email protected]de2895262012-04-04 17:15:481307// PPB_X509Certificate_Private
1308IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1309 std::vector<char> /* der */,
1310 bool /* succeeded */,
1311 ppapi::PPB_X509Certificate_Fields /* result */)
1312
[email protected]077ecfd42012-06-21 21:46:261313//-----------------------------------------------------------------------------
1314// Resource call/reply messages.
1315//
1316// These are the new-style resource implementations where the resource is only
1317// implemented in the proxy and "resource messages" are sent between this and a
1318// host object. Resource messages are a wrapper around some general routing
1319// information and a separate message of a type defined by the specific resource
1320// sending/receiving it. The extra paremeters allow the nested message to be
1321// routed automatically to the correct resource.
1322
1323// Notification that a resource has been created in the plugin. The nested
1324// message will be resource-type-specific.
1325IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1326 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1327 PP_Instance /* instance */,
1328 IPC::Message /* nested_msg */)
1329
1330// Notification that a resource has been destroyed in the plugin.
1331IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1332 PP_Resource /* resource */)
1333
[email protected]db70c132012-12-05 00:41:201334// Most resources are created by the plugin, which then sends a ResourceCreated
1335// message to create a corresponding ResourceHost in the renderer or browser
1336// host process. However, some resources are first created in the host and
1337// "pushed" or returned to the plugin.
1338//
1339// In this case, the host will create a "pending" ResourceHost object which
1340// is identified by an ID. The ID is sent to the plugin process and the
1341// PluginResource object is created. This message is sent from the plugin to
1342// the host process to connect the PluginResource and the pending ResourceHost
1343// (at which point, it's no longer pending).
1344IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost,
1345 PP_Resource /* resource */,
1346 int /* pending_host_id */)
1347
[email protected]077ecfd42012-06-21 21:46:261348// A resource call is a request from the plugin to the host. It may or may not
1349// require a reply, depending on the params. The nested message will be
1350// resource-type-specific.
1351IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1352 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1353 IPC::Message /* nested_msg */)
[email protected]0d586af2013-07-31 21:58:061354IPC_MESSAGE_CONTROL3(PpapiHostMsg_InProcessResourceCall,
1355 int /* routing_id */,
1356 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1357 IPC::Message /* nested_msg */)
[email protected]077ecfd42012-06-21 21:46:261358
1359// A resource reply is a response to a ResourceCall from a host to the
1360// plugin. The resource ID + sequence number in the params will correspond to
1361// that of the previous ResourceCall.
1362IPC_MESSAGE_CONTROL2(
1363 PpapiPluginMsg_ResourceReply,
1364 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1365 IPC::Message /* nested_msg */)
[email protected]0d586af2013-07-31 21:58:061366IPC_MESSAGE_ROUTED2(
1367 PpapiHostMsg_InProcessResourceReply,
1368 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1369 IPC::Message /* nested_msg */)
1370
[email protected]ff44fc12012-10-03 00:52:161371IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1372 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1373 IPC::Message /* nested_msg */,
1374 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1375 IPC::Message /* reply_msg */)
1376
[email protected]c5425572013-06-07 22:15:251377// This message is sent from the renderer to the browser when it wants to create
[email protected]67901072013-08-22 00:43:401378// ResourceHosts in the browser. It contains the process ID of the plugin and
[email protected]c5425572013-06-07 22:15:251379// the instance of the plugin for which to create the resource for. params
1380// contains the sequence number for the message to track the response.
[email protected]67901072013-08-22 00:43:401381// The nested messages are ResourceHost creation messages.
[email protected]44dc2362013-07-09 23:41:531382IPC_MESSAGE_CONTROL5(
[email protected]67901072013-08-22 00:43:401383 PpapiHostMsg_CreateResourceHostsFromHost,
[email protected]44dc2362013-07-09 23:41:531384 int /* routing_id */,
[email protected]c5425572013-06-07 22:15:251385 int /* child_process_id */,
1386 ppapi::proxy::ResourceMessageCallParams /* params */,
1387 PP_Instance /* instance */,
[email protected]67901072013-08-22 00:43:401388 std::vector<IPC::Message> /* nested_msgs */)
[email protected]c5425572013-06-07 22:15:251389
[email protected]67901072013-08-22 00:43:401390// This message is sent from the browser to the renderer when it has created
1391// ResourceHosts for the renderer. It contains the sequence number that was sent
1392// in the request and the IDs of the pending ResourceHosts which were created in
1393// the browser. These IDs are only useful for the plugin which can attach to the
1394// ResourceHosts in the browser.
[email protected]44dc2362013-07-09 23:41:531395IPC_MESSAGE_ROUTED2(
[email protected]67901072013-08-22 00:43:401396 PpapiHostMsg_CreateResourceHostsFromHostReply,
[email protected]c5425572013-06-07 22:15:251397 int32_t /* sequence */,
[email protected]67901072013-08-22 00:43:401398 std::vector<int> /* pending_host_ids */)
[email protected]c5425572013-06-07 22:15:251399
[email protected]eccf80312012-07-14 15:43:421400//-----------------------------------------------------------------------------
1401// Messages for resources using call/reply above.
1402
[email protected]83d12c8d2012-12-10 19:28:461403// Broker ----------------------------------------------------------------------
1404IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create)
1405
1406// Queries whether the plugin has permission to connect to the Pepper broker.
1407// The response is contained in the error value of the
1408// ResourceMessageReplyParams in the reply message.
1409IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed)
1410
[email protected]45649492014-01-24 20:49:341411// UMA
1412IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_Create)
1413IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomTimes,
1414 std::string /* name */,
1415 int64_t /* sample */,
1416 int64_t /* min */,
1417 int64_t /* max */,
1418 uint32_t /* bucket_count */)
1419IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomCounts,
1420 std::string /* name */,
1421 int32_t /* sample */,
1422 int32_t /* min */,
1423 int32_t /* max */,
1424 uint32_t /* bucket_count */)
1425IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration,
1426 std::string /* name */,
1427 int32_t /* sample */,
1428 int32_t /* boundary_value */)
[email protected]b2c1c332014-06-26 06:08:401429IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled)
1430IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply)
[email protected]45649492014-01-24 20:49:341431
[email protected]eccf80312012-07-14 15:43:421432// File chooser.
1433IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1434IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1435 bool /* save_as */,
1436 bool /* open_multiple */,
1437 std::string /* suggested_file_name */,
1438 std::vector<std::string> /* accept_mime_types */)
1439IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
[email protected]c6420f082013-09-18 22:42:411440 std::vector<ppapi::FileRefCreateInfo> /* files */)
[email protected]f5118812012-08-24 19:54:301441
[email protected]c77144722013-01-19 04:16:361442// FileIO
1443IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1444IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1445 PP_Resource /* file_ref_resource */,
1446 int32_t /* open_flags */)
[email protected]7a90b852013-12-28 17:54:271447IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply,
1448 PP_Resource /* quota_file_system */,
[email protected]540d6af42014-01-28 21:19:031449 int64_t /* file_size */)
[email protected]7a90b852013-12-28 17:54:271450IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close,
[email protected]540d6af42014-01-28 21:19:031451 ppapi::FileGrowth /* file_growth */)
[email protected]c77144722013-01-19 04:16:361452IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1453 PP_Time /* last_access_time */,
1454 PP_Time /* last_modified_time */)
[email protected]c77144722013-01-19 04:16:361455IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1456 int64_t /* length */)
1457IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
[email protected]8f96cef2013-04-01 16:51:131458IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1459IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
[email protected]c77144722013-01-19 04:16:361460IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1461
[email protected]d1967ed2013-06-18 01:10:211462// FileRef
[email protected]7d634392013-07-22 21:03:211463// Creates a FileRef to a path on an external file system. This message may
1464// only be sent from the renderer.
[email protected]2e0ec622014-04-11 07:18:321465IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS,
[email protected]7d634392013-07-22 21:03:211466 base::FilePath /* external_path */)
1467
[email protected]2e0ec622014-04-11 07:18:321468// Creates a FileRef to a path on a file system that uses fileapi.
1469// This message may be sent from the renderer or the plugin.
1470IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI,
[email protected]d1967ed2013-06-18 01:10:211471 PP_Resource /* file_system */,
1472 std::string /* internal_path */)
1473
1474// Requests that the browser create a directory at the location indicated by
1475// the FileRef.
1476IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_MakeDirectory,
[email protected]491af3c2014-01-10 11:34:121477 int32_t /* make_directory_flags */)
[email protected]d1967ed2013-06-18 01:10:211478IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_MakeDirectoryReply)
1479
1480// Requests that the browser update the last accessed and last modified times
1481// at the location indicated by the FileRef.
1482IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_Touch,
1483 PP_Time /* last_accessed */,
1484 PP_Time /* last_modified */)
1485IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_TouchReply)
1486
1487// Requests that the browser delete a file or directory at the location
1488// indicated by the FileRef.
1489IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Delete)
1490IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_DeleteReply)
1491
1492// Requests that the browser rename a file or directory at the location
1493// indicated by the FileRef.
1494IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_Rename,
1495 PP_Resource /* new_file_ref */)
1496IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_RenameReply)
1497
1498// Requests that the browser retrieve metadata information for a file or
1499// directory at the location indicated by the FileRef.
1500IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Query)
1501IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_QueryReply,
1502 PP_FileInfo /* file_info */)
1503
1504// Requests that the browser retrieve then entries in a directory at the
1505// location indicated by the FileRef.
1506IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries)
1507
[email protected]c6420f082013-09-18 22:42:411508// FileRefCreateInfo does not provide file type information, so two
[email protected]d1967ed2013-06-18 01:10:211509// corresponding vectors are returned.
1510IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply,
[email protected]c6420f082013-09-18 22:42:411511 std::vector<ppapi::FileRefCreateInfo> /* files */,
[email protected]d1967ed2013-06-18 01:10:211512 std::vector<PP_FileType> /* file_types */)
1513
1514// Requests that the browser reply with the absolute path to the indicated
1515// file.
1516IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_GetAbsolutePath)
1517IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_GetAbsolutePathReply,
1518 std::string /* absolute_path */)
1519
[email protected]ef9225f2013-04-12 20:28:141520// FileSystem
1521IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create,
1522 PP_FileSystemType /* type */)
1523IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open,
1524 int64_t /* expected_size */)
1525IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply)
[email protected]435945742013-11-08 06:31:111526IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_InitIsolatedFileSystem,
1527 std::string /* fsid */,
1528 PP_IsolatedFileSystemType_Private /* type */)
[email protected]d6e3c792013-08-26 19:30:271529IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_InitIsolatedFileSystemReply)
[email protected]17d69d82013-10-31 10:59:031530// Passed from renderer to browser. Creates an already-open file system with a
1531// given |root_url| and |file_system_type|.
1532IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer,
1533 std::string /* root_url */,
1534 PP_FileSystemType /* file_system_type */)
1535// Nested within a ResourceVar for file systems being passed from the renderer
1536// to the plugin. Creates an already-open file system resource on the plugin,
1537// linked to the existing resource host given in the ResourceVar.
1538IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost,
1539 PP_FileSystemType /* file_system_type */)
[email protected]7a90b852013-12-28 17:54:271540IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota,
1541 int64_t /* amount */,
[email protected]540d6af42014-01-28 21:19:031542 ppapi::FileGrowthMap /* file_growths */)
[email protected]7a90b852013-12-28 17:54:271543IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply,
1544 int64_t /* amount */,
[email protected]540d6af42014-01-28 21:19:031545 ppapi::FileSizeMap /* file_sizes */)
[email protected]ef9225f2013-04-12 20:28:141546
[email protected]f5118812012-08-24 19:54:301547// Gamepad.
1548IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
[email protected]00c0d042012-09-10 07:06:391549
1550// Requests that the gamepad host send the shared memory handle to the plugin
1551// process.
[email protected]f5118812012-08-24 19:54:301552IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
[email protected]00c0d042012-09-10 07:06:391553
1554// Reply to a RequestMemory call. This supplies the shared memory handle. The
1555// actual handle is passed in the ReplyParams struct.
1556IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory)
1557
[email protected]08e65c12012-11-29 18:53:291558
1559// Graphics2D, plugin -> host
1560IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create,
1561 PP_Size /* size */,
1562 PP_Bool /* is_always_opaque */)
1563IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData,
1564 ppapi::HostResource /* image_data */,
1565 PP_Point /* top_left */,
1566 bool /* src_rect_specified */,
1567 PP_Rect /* src_rect */)
1568IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll,
1569 bool /* clip_specified */,
1570 PP_Rect /* clip */,
1571 PP_Point /* amount */)
1572IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents,
1573 ppapi::HostResource /* image_data */)
[email protected]bd51beb2014-04-03 00:39:471574IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale,
[email protected]08e65c12012-11-29 18:53:291575 float /* scale */)
alessandroad55efd02016-04-21 19:35:251576IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_SetLayerTransform,
1577 float /* scale */,
1578 PP_FloatPoint /* translate */)
[email protected]08e65c12012-11-29 18:53:291579
1580// Graphics2D, plugin -> host -> plugin
miletus12dae552015-07-27 19:42:151581IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush)
[email protected]08e65c12012-11-29 18:53:291582IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck)
1583
1584IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData,
1585 PP_Resource /* image */,
1586 PP_Point /* top_left */)
1587IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck)
1588
jchuangfa1f1432015-02-20 08:22:301589// CameraDevice ----------------------------------------------------------------
1590IPC_MESSAGE_CONTROL0(PpapiHostMsg_CameraDevice_Create)
1591IPC_MESSAGE_CONTROL0(PpapiHostMsg_CameraDevice_Close)
jchuangadd2f052015-02-17 10:10:501592
jchuangfa1f1432015-02-20 08:22:301593IPC_MESSAGE_CONTROL1(PpapiHostMsg_CameraDevice_Open,
jchuangadd2f052015-02-17 10:10:501594 std::string /* camera_source_id */)
jchuangfa1f1432015-02-20 08:22:301595IPC_MESSAGE_CONTROL0(PpapiPluginMsg_CameraDevice_OpenReply)
jchuangadd2f052015-02-17 10:10:501596
jchuang512b0a0d2015-02-20 03:42:491597IPC_MESSAGE_CONTROL0(
jchuangfa1f1432015-02-20 08:22:301598 PpapiHostMsg_CameraDevice_GetSupportedVideoCaptureFormats)
jchuang512b0a0d2015-02-20 03:42:491599IPC_MESSAGE_CONTROL1(
jchuangfa1f1432015-02-20 08:22:301600 PpapiPluginMsg_CameraDevice_GetSupportedVideoCaptureFormatsReply,
jchuang512b0a0d2015-02-20 03:42:491601 std::vector<PP_VideoCaptureFormat> /* video_capture_formats */)
jchuangadd2f052015-02-17 10:10:501602
1603// IsolatedFileSystem ----------------------------------------------------------
[email protected]435945742013-11-08 06:31:111604IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create)
1605IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen,
1606 PP_IsolatedFileSystemType_Private /* type */)
1607IPC_MESSAGE_CONTROL1(PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply,
1608 std::string /* fsid */)
1609
[email protected]03bf382f2014-01-16 05:49:501610// MediaStream -----------------------------------------------------------------
[email protected]2b7a6d32014-02-06 02:50:231611IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamAudioTrack_CreateFromPendingHost,
1612 std::string /* track_id */)
[email protected]5e19b8b2014-06-03 13:36:421613IPC_MESSAGE_CONTROL1(
1614 PpapiHostMsg_MediaStreamAudioTrack_Configure,
1615 ppapi::MediaStreamAudioTrackShared::Attributes /* attributes */)
1616IPC_MESSAGE_CONTROL0(PpapiPluginMsg_MediaStreamAudioTrack_ConfigureReply)
[email protected]03bf382f2014-01-16 05:49:501617IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_CreateFromPendingHost,
1618 std::string /* track_id */)
[email protected]5294ec92014-05-05 23:36:521619IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamVideoTrack_Create)
[email protected]61ebd74e2014-02-26 00:44:051620IPC_MESSAGE_CONTROL1(
1621 PpapiHostMsg_MediaStreamVideoTrack_Configure,
1622 ppapi::MediaStreamVideoTrackShared::Attributes /* attributes */)
[email protected]5294ec92014-05-05 23:36:521623IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_ConfigureReply,
1624 std::string /* track_id */)
[email protected]2b7a6d32014-02-06 02:50:231625
[email protected]a2c5dcd2014-02-08 03:20:151626// Message for init buffers. It also takes a shared memory handle which is put
1627// in the outer ResourceReplyMessage.
[email protected]5294ec92014-05-05 23:36:521628IPC_MESSAGE_CONTROL3(PpapiPluginMsg_MediaStreamTrack_InitBuffers,
[email protected]a2c5dcd2014-02-08 03:20:151629 int32_t /* number_of_buffers */,
[email protected]5294ec92014-05-05 23:36:521630 int32_t /* buffer_size */,
1631 bool /* readonly */)
[email protected]a2c5dcd2014-02-08 03:20:151632IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffer,
[email protected]b2c1c332014-06-26 06:08:401633 int32_t /* index */)
[email protected]a2c5dcd2014-02-08 03:20:151634IPC_MESSAGE_CONTROL1(PpapiHostMsg_MediaStreamTrack_EnqueueBuffer,
[email protected]b2c1c332014-06-26 06:08:401635 int32_t /* index */)
[email protected]5294ec92014-05-05 23:36:521636IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffers,
[email protected]b2c1c332014-06-26 06:08:401637 std::vector<int32_t> /* indices */)
[email protected]03bf382f2014-01-16 05:49:501638IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamTrack_Close)
1639
[email protected]07d0a6bf2013-09-17 04:15:101640// NetworkMonitor.
1641IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create)
1642IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList,
1643 ppapi::proxy::SerializedNetworkList /* network_list */)
1644IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden)
1645
[email protected]226dea42013-06-24 21:05:361646// NetworkProxy ----------------------------------------------------------------
1647IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create)
1648
1649// Query the browser for the proxy server to use for the given URL.
1650IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL,
1651 std::string /* url */)
1652
1653// Reply message for GetProxyForURL containing the proxy server.
1654IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply,
1655 std::string /* proxy */)
1656
[email protected]725056b72013-03-16 09:57:511657// TrueTypeFont.
1658IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create)
1659IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies)
1660IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply,
1661 std::vector<std::string> /* font_families */)
[email protected]720e1e622013-04-19 03:50:351662IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily,
1663 std::string /* family */)
1664IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply,
1665 std::vector<ppapi::proxy::SerializedTrueTypeFontDesc>
1666 /* fonts */)
[email protected]725056b72013-03-16 09:57:511667IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create,
1668 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */)
[email protected]c0ec81612014-06-26 21:28:181669// Unsolicited reply to return the actual font's desc to the plugin.
1670IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TrueTypeFont_CreateReply,
1671 ppapi::proxy::SerializedTrueTypeFontDesc /* desc */,
1672 int32_t /* result */)
[email protected]725056b72013-03-16 09:57:511673IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags)
1674IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply,
1675 std::vector<uint32_t> /* tags */)
1676IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable,
1677 uint32_t /* table */,
1678 int32_t /* offset */,
1679 int32_t /* max_data_length */)
1680IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply,
1681 std::string /* data */)
1682
[email protected]f31e55c2013-06-20 08:44:371683// Host Resolver ---------------------------------------------------------------
1684// Creates a PPB_HostResolver resource.
1685IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_Create)
1686
1687// Creates a PPB_HostResolver_Private resource.
1688IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_CreatePrivate)
1689
1690// Resolves the given hostname.
1691IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolver_Resolve,
[email protected]6a685372013-02-12 12:50:461692 ppapi::HostPortPair /* host_port */,
1693 PP_HostResolver_Private_Hint /* hint */)
[email protected]f31e55c2013-06-20 08:44:371694
1695// This message is a reply to HostResolver_Resolve. On success,
1696// |canonical_name| contains the canonical name of the host; |net_address_list|
1697// is a list of network addresses. On failure, both fields are set to empty.
1698IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply,
[email protected]6a685372013-02-12 12:50:461699 std::string /* canonical_name */,
1700 std::vector<PP_NetAddress_Private> /* net_address_list */)
[email protected]08e65c12012-11-29 18:53:291701
[email protected]e9cb0b792012-09-07 07:11:061702// Printing.
1703IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1704IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1705IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1706 PP_PrintSettings_Dev /* print_settings */)
[email protected]9d5eadf2012-10-09 03:43:481707
[email protected]8522332e2013-08-28 19:42:591708// TCP Socket ------------------------------------------------------------------
1709// Creates a PPB_TCPSocket resource.
[email protected]92576792013-09-20 15:29:131710IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Create,
1711 ppapi::TCPSocketVersion /* version */)
[email protected]8522332e2013-08-28 19:42:591712
1713// Creates a PPB_TCPSocket_Private resource.
1714IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate)
1715
[email protected]92576792013-09-20 15:29:131716IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Bind,
1717 PP_NetAddress_Private /* net_addr */)
1718IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_BindReply,
1719 PP_NetAddress_Private /* local_addr */)
[email protected]8522332e2013-08-28 19:42:591720IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect,
1721 std::string /* host */,
1722 uint16_t /* port */)
1723IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress,
1724 PP_NetAddress_Private /* net_addr */)
1725IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply,
1726 PP_NetAddress_Private /* local_addr */,
1727 PP_NetAddress_Private /* remote_addr */)
1728IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake,
1729 std::string /* server_name */,
1730 uint16_t /* server_port */,
1731 std::vector<std::vector<char> > /* trusted_certs */,
1732 std::vector<std::vector<char> > /* untrusted_certs */)
1733IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply,
1734 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
1735IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read,
1736 int32_t /* bytes_to_read */)
1737IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply,
1738 std::string /* data */)
1739IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write,
1740 std::string /* data */)
1741IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply)
[email protected]92576792013-09-20 15:29:131742IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Listen,
1743 int32_t /* backlog */)
1744IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_ListenReply)
1745IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Accept)
1746IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPSocket_AcceptReply,
1747 int /* pending_host_id*/,
1748 PP_NetAddress_Private /* local_addr */,
1749 PP_NetAddress_Private /* remote_addr */)
1750IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Close)
[email protected]8522332e2013-08-28 19:42:591751IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption,
1752 PP_TCPSocket_Option /* name */,
1753 ppapi::SocketOptionData /* value */)
1754IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply)
1755
[email protected]1f9ed192013-08-05 11:59:421756// TCP Server Socket -----------------------------------------------------------
1757// Creates a PPB_TCPServerSocket_Private resource.
1758IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate)
1759
1760IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen,
1761 PP_NetAddress_Private /* addr */,
1762 int32_t /* backlog */)
1763IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply,
1764 PP_NetAddress_Private /* local_addr */)
[email protected]8522332e2013-08-28 19:42:591765IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept)
[email protected]1f9ed192013-08-05 11:59:421766IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply,
[email protected]8522332e2013-08-28 19:42:591767 int /* pending_resource_id */,
[email protected]1f9ed192013-08-05 11:59:421768 PP_NetAddress_Private /* local_addr */,
1769 PP_NetAddress_Private /* remote_addr */)
1770IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening)
1771
[email protected]64a61fc2013-06-19 13:30:591772// UDP Socket ------------------------------------------------------------------
1773// Creates a PPB_UDPSocket resource.
1774IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create)
1775
1776// Creates a PPB_UDPSocket_Private resource.
1777IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate)
1778
1779IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption,
[email protected]8de13292013-06-24 06:04:391780 PP_UDPSocket_Option /* name */,
[email protected]64a61fc2013-06-19 13:30:591781 ppapi::SocketOptionData /* value */)
1782IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply)
1783IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind,
1784 PP_NetAddress_Private /* net_addr */)
1785IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply,
1786 PP_NetAddress_Private /* bound_addr */)
yzshen024dba2f2014-09-17 00:19:011787IPC_MESSAGE_CONTROL3(PpapiPluginMsg_UDPSocket_PushRecvResult,
1788 int32_t /* result */,
[email protected]64a61fc2013-06-19 13:30:591789 std::string /* data */,
1790 PP_NetAddress_Private /* remote_addr */)
yzshen024dba2f2014-09-17 00:19:011791IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_RecvSlotAvailable)
[email protected]64a61fc2013-06-19 13:30:591792IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo,
1793 std::string /* data */,
1794 PP_NetAddress_Private /* net_addr */)
1795IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply,
1796 int32_t /* bytes_written */)
1797IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close)
eduardo.lima8171d462015-03-13 15:40:211798IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_JoinGroup,
1799 PP_NetAddress_Private /* net_addr */)
1800IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_JoinGroupReply)
1801IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_LeaveGroup,
1802 PP_NetAddress_Private /* net_addr */)
1803IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_LeaveGroupReply)
[email protected]64a61fc2013-06-19 13:30:591804
[email protected]47cb253f2013-05-16 01:50:401805// URLLoader ------------------------------------------------------------------
1806
1807IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create)
1808
1809// These messages correspond to PPAPI calls and all should get a
1810// CallbackComplete message.
1811IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open,
1812 ppapi::URLRequestInfoData /* request_data */)
1813
1814// The plugin can tell the host to defer a load to hold off on sending more
1815// data because the buffer in the plugin is full. When defers_loading is set to
1816// false, data streaming will resume.
1817//
1818// When auditing redirects (no auto follow) the load will be automatically
1819// deferred each time we get a redirect. The plugin will reset this to false
1820// by sending this message when it wants to continue following the redirect.
1821//
1822// When streaming data, the host may still send more data after this call (for
1823// example, it could already be in-flight at the time of this request).
1824IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading,
1825 bool /* defers_loading */)
1826
1827// Closes the URLLoader. There is no reply.
1828IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Close)
1829
1830// Requests that cross-site restrictions be ignored. The plugin must have
1831// the private permission set. Otherwise this message will be ignored by the
1832// renderer. There is no reply.
1833IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess)
1834
1835// Push notification that a response is available.
1836IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_ReceivedResponse,
1837 ppapi::URLResponseInfoData /* response */)
1838
1839// Push notification with load data from the renderer. It is a custom generated
1840// message with the response data (array of bytes stored via WriteData)
1841// appended.
1842IPC_MESSAGE_CONTROL0(PpapiPluginMsg_URLLoader_SendData)
1843
1844// Push notification indicating that all data has been sent, either via
1845// SendData or by streaming it to a file. Note that since this is a push
1846// notification, we don't use the result field of the ResourceMessageReply.
1847IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_FinishedLoading,
1848 int32_t /* result */)
1849
1850// Push notification from the renderer to the plugin to tell it about download
1851// and upload progress. This will only be sent if the plugin has requested
1852// progress updates, and only the fields requested by the plugin will be
1853// valid.
1854IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress,
1855 int64_t /* bytes_sent */,
1856 int64_t /* total_bytes_to_be_sent */,
1857 int64_t /* bytes_received */,
1858 int64_t /* total_bytes_to_be_received */)
1859
[email protected]30e1cb752013-03-19 20:42:331860// Shared memory ---------------------------------------------------------------
[email protected]47cb253f2013-05-16 01:50:401861
[email protected]30e1cb752013-03-19 20:42:331862// Creates shared memory on the host side, returning a handle to the shared
1863// memory on the plugin and keeping the memory mapped in on the host.
1864// We return a "host handle_id" that can be mapped back to the
1865// handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle().
1866IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory,
1867 PP_Instance /* instance */,
1868 uint32_t /* size */,
1869 int /* host_handle_id */,
1870 ppapi::proxy::SerializedHandle /* plugin_handle */)
1871
brucedawsoncd71d452016-07-07 00:12:131872// VpnProvider ----------------------------------------------------------------
1873IPC_MESSAGE_CONTROL0(PpapiHostMsg_VpnProvider_Create)
1874
1875// VpnProvider plugin -> host -> plugin
1876IPC_MESSAGE_CONTROL2(PpapiHostMsg_VpnProvider_Bind,
1877 std::string /* configuration_id */,
1878 std::string /* configuration_name */)
1879IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VpnProvider_BindReply,
1880 uint32_t /* queue_size */,
1881 uint32_t /* max_packet_size */,
1882 int32_t /* status */)
1883IPC_MESSAGE_CONTROL2(PpapiHostMsg_VpnProvider_SendPacket,
1884 uint32_t /* packet_size */,
1885 uint32_t /* id */)
1886IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_SendPacketReply,
1887 uint32_t /* id */)
1888
1889// VpnProvider host -> plugin
1890IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VpnProvider_OnUnbind)
1891
1892// VpnProvider host -> plugin -> host
1893IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VpnProvider_OnPacketReceived,
1894 uint32_t /* packet_size */,
1895 uint32_t /* id */)
1896IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_OnPacketReceivedReply,
1897 uint32_t /* id */)
1898
[email protected]47cb253f2013-05-16 01:50:401899// WebSocket -------------------------------------------------------------------
1900
[email protected]9d5eadf2012-10-09 03:43:481901IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create)
1902
1903// Establishes the connection to a server. This message requires
1904// WebSocket_ConnectReply as a reply message.
1905IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect,
1906 std::string /* url */,
1907 std::vector<std::string> /* protocols */)
1908
1909// Closes established connection with graceful closing handshake. This message
1910// requires WebSocket_CloseReply as a reply message.
1911IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close,
1912 int32_t /* code */,
1913 std::string /* reason */)
1914
1915// Sends a text frame to the server. No reply is defined.
1916IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText,
1917 std::string /* message */)
1918
1919// Sends a binary frame to the server. No reply is defined.
1920IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary,
1921 std::vector<uint8_t> /* message */)
1922
1923// Fails the connection. This message invokes RFC6455 defined
1924// _Fail the WebSocket Connection_ operation. No reply is defined.
1925IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail,
1926 std::string /* message */)
1927
1928// This message is a reply to WebSocket_Connect. If the |url| and |protocols|
1929// are invalid, WebSocket_ConnectReply is issued immediately and it contains
1930// proper error code in its result. Otherwise, WebSocket_ConnectReply is sent
1931// with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed
1932// |protocols|, but a result of opening handshake negotiation. If the
1933// connection can not be established successfully, WebSocket_ConnectReply is
1934// not issued, but WebSocket_ClosedReply is sent instead.
1935IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply,
1936 std::string /* url */,
1937 std::string /* protocol */)
1938
1939// This message is a reply to WebSocket_Close. If the operation fails,
1940// WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED.
1941// Otherwise, CloseReply will be issued after the closing handshake is
1942// finished. All arguments will be valid iff the result is PP_OK and it means
1943// that the client initiated closing handshake is finished gracefully.
1944IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply,
[email protected]76e6df02012-11-09 01:43:071945 uint64_t /* buffered_amount */,
[email protected]9d5eadf2012-10-09 03:43:481946 bool /* was_clean */,
[email protected]76e6df02012-11-09 01:43:071947 uint16_t /* code */,
[email protected]9d5eadf2012-10-09 03:43:481948 std::string /* reason */)
1949
1950// Unsolicited reply message to transmit a receiving text frame.
1951IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply,
1952 std::string /* message */)
1953
1954// Unsolicited reply message to transmit a receiving binary frame.
1955IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply,
1956 std::vector<uint8_t> /* message */)
1957
1958// Unsolicited reply message to notify a error on underlying network connetion.
1959IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply)
1960
1961// Unsolicited reply message to update the buffered amount value.
1962IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply,
[email protected]76e6df02012-11-09 01:43:071963 uint64_t /* buffered_amount */)
[email protected]9d5eadf2012-10-09 03:43:481964
1965// Unsolicited reply message to update |state| because of incoming external
1966// events, e.g., protocol error, or unexpected network closure.
1967IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply,
1968 int32_t /* state */)
1969
1970// Unsolicited reply message to notify that the connection is closed without
1971// any WebSocket_Close request. Server initiated closing handshake or
1972// unexpected network errors will invoke this message.
1973IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply,
[email protected]76e6df02012-11-09 01:43:071974 uint64_t /* buffered_amount */,
[email protected]9d5eadf2012-10-09 03:43:481975 bool /* was_clean */,
[email protected]76e6df02012-11-09 01:43:071976 uint16_t /* code */,
[email protected]9d5eadf2012-10-09 03:43:481977 std::string /* reason */)
[email protected]cb65f132012-10-09 17:06:091978
[email protected]dfb0d06f32014-05-30 22:45:561979// VideoDecoder ------------------------------------------------------
1980
1981IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create)
lpique9dd55e542015-08-20 01:06:531982IPC_MESSAGE_CONTROL4(PpapiHostMsg_VideoDecoder_Initialize,
[email protected]dfb0d06f32014-05-30 22:45:561983 ppapi::HostResource /* graphics_context */,
1984 PP_VideoProfile /* profile */,
lpique9dd55e542015-08-20 01:06:531985 PP_HardwareAcceleration /* acceleration */,
1986 uint32_t /* min_picture_count */)
[email protected]dfb0d06f32014-05-30 22:45:561987IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply)
1988IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm,
1989 uint32_t /* shm_id */,
1990 uint32_t /* shm_size */)
1991// On success, a shm handle is passed in the ReplyParams struct.
1992IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply,
1993 uint32_t /* shm_size */)
1994IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Decode,
1995 uint32_t /* shm_id */,
1996 uint32_t /* size */,
1997 int32_t /* decode_id */)
1998IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply,
1999 uint32_t /* shm_id */)
Antoine Labour04cb3b22018-06-01 23:25:102000IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_RequestTextures,
[email protected]dfb0d06f32014-05-30 22:45:562001 uint32_t /* num_textures */,
2002 PP_Size /* size */,
Antoine Labour04cb3b22018-06-01 23:25:102003 uint32_t /* texture_target */)
2004IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_AssignTextures,
[email protected]dfb0d06f32014-05-30 22:45:562005 PP_Size /* size */,
Antoine Labour04cb3b22018-06-01 23:25:102006 std::vector<uint32_t> /* texture_ids */,
2007 std::vector<gpu::Mailbox> /* mailboxes */)
Bill Budge2d4bf3a2014-11-06 22:31:212008IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_PictureReady,
[email protected]dfb0d06f32014-05-30 22:45:562009 int32_t /* decode_id */,
Bill Budge2d4bf3a2014-11-06 22:31:212010 uint32_t /* texture_id */,
2011 PP_Rect /* visible_rect */)
[email protected]dfb0d06f32014-05-30 22:45:562012IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture,
2013 uint32_t /* texture_id */)
2014IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
2015 uint32_t /* texture_id */)
2016IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
2017IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
2018IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
2019IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
2020IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
2021 int32_t /* error */)
2022
lionel.g.landwerlinc3f15122015-02-25 01:20:582023// VideoEncoder ------------------------------------------------------
2024
2025IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Create)
2026IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetSupportedProfiles)
2027IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_GetSupportedProfilesReply,
2028 std::vector<PP_VideoProfileDescription> /* results */)
2029IPC_MESSAGE_CONTROL5(PpapiHostMsg_VideoEncoder_Initialize,
2030 PP_VideoFrame_Format /* input_format */,
2031 PP_Size /* input_visible_size */,
2032 PP_VideoProfile /* output_profile */,
2033 uint32_t /* initial_bitrate */,
2034 PP_HardwareAcceleration /* acceleration */)
2035IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoEncoder_InitializeReply,
2036 uint32_t /* input_frame_count */,
2037 PP_Size /* input_coded_size */)
2038IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_BitstreamBuffers,
2039 uint32_t /* buffer_length */)
2040IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetVideoFrames)
2041IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_GetVideoFramesReply,
2042 uint32_t /* frame_count */,
2043 uint32_t /* frame_length */,
2044 PP_Size /* frame_size */)
2045IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_Encode,
2046 uint32_t /* frame_id */,
2047 bool /* force_keyframe */)
2048IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_EncodeReply,
2049 uint32_t /* frame_id */)
2050IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_BitstreamBufferReady,
2051 uint32_t /* buffer_id */,
2052 uint32_t /* buffer_size */,
2053 bool /* key_frame */)
2054IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoEncoder_RecycleBitstreamBuffer,
2055 uint32_t /* buffer_id */)
2056IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_RequestEncodingParametersChange,
2057 uint32_t /* bitrate */,
2058 uint32_t /* framerate */)
2059IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_NotifyError,
2060 int32_t /* error */)
2061IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Close)
2062
[email protected]cb65f132012-10-09 17:06:092063#if !defined(OS_NACL) && !defined(NACL_WIN64)
[email protected]a1686e272012-11-01 23:39:342064
[email protected]77b55502012-11-08 22:20:202065// Audio input.
2066IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
[email protected]77b55502012-11-08 22:20:202067IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
2068 std::string /* device_id */,
2069 PP_AudioSampleRate /* sample_rate */,
2070 uint32_t /* sample_frame_count */)
2071// Reply to an Open call. This supplies a socket handle and a shared memory
2072// handle. Both handles are passed in the ReplyParams struct.
2073IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply)
2074IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */)
2075IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close)
2076
xzhang3a2a4702017-04-07 16:34:302077// Audio output.
2078IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioOutput_Create)
2079IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioOutput_Open,
2080 std::string /* device_id */,
2081 PP_AudioSampleRate /* sample_rate */,
2082 uint32_t /* sample_frame_count */)
2083// Reply to an Open call. This supplies a socket handle and a shared memory
2084// handle. Both handles are passed in the ReplyParams struct.
2085IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioOutput_OpenReply)
2086IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioOutput_StartOrStop, bool /* playback */)
2087IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioOutput_Close)
2088
[email protected]a6d81c02012-12-20 21:17:002089// BrowserFont -----------------------------------------------------------------
2090
2091IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_Create)
2092
2093// Requests that the browser reply with the list of font families via
2094// PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply.
2095IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_GetFontFamilies)
2096
2097// Reply to PpapiHostMsg_BrowserFontSingleton_GetFontFamilies with the font
2098// family list. The |families| result is encoded by separating each family name
2099// by a null character.
2100IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply,
2101 std::string /* families */)
2102
[email protected]db16e6d2012-12-19 03:32:572103// Flash -----------------------------------------------------------------------
[email protected]a6d81c02012-12-20 21:17:002104
[email protected]a9f2a6212012-12-04 08:47:342105IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
[email protected]db16e6d2012-12-19 03:32:572106
2107// Message to notify the browser to register an update in system activity.
[email protected]a9f2a6212012-12-04 08:47:342108IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
[email protected]db16e6d2012-12-19 03:32:572109
2110// Query the browser for the proxy server to use for the given URL.
[email protected]a9f2a6212012-12-04 08:47:342111IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
[email protected]db16e6d2012-12-19 03:32:572112// Reply message for GetProxyForURL containing the proxy server.
[email protected]a9f2a6212012-12-04 08:47:342113IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply,
2114 std::string /* proxy */)
2115
[email protected]c92465382012-12-17 23:51:212116// Queries the browser for the local time zone offset for a given time.
2117IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset,
2118 base::Time /* time */)
2119// Reply to GetLocalTimeZoneOffset containing the time zone offset as a double.
2120IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply,
2121 double /* offset */)
2122
[email protected]db16e6d2012-12-19 03:32:572123// Query the browser for the restrictions on storing Flash LSOs.
2124IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions)
2125// Reply message for GetLocalDataRestrictions containing the restrictions to
2126// use. These are PP_FlashLSORestrictions cast to an int32_t.
2127IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply,
2128 int32_t /* restrictions */)
2129
[email protected]24f40c12012-12-19 20:17:422130// Notifies the renderer whether the Flash instance is in windowed mode. No
2131// reply is sent.
2132IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop,
2133 bool /* on_top */)
2134
2135// Notifies the renderer to draw text to the given PP_ImageData resource. All
2136// parmeters for drawing (including the resource to draw to) are contianed in
2137// the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply
2138// message indicating success.
2139IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs,
2140 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */)
2141
2142// Notifies the renderer to navigate to the given URL contained in the
2143// URLRequestInfoData. An error code is sent in a reply message indicating
2144// success.
2145IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate,
2146 ppapi::URLRequestInfoData /* data */,
2147 std::string /* target */,
2148 bool /* from_user_action */)
2149
2150// Queries the renderer on whether the plugin instance is the topmost element
2151// in the area of the instance specified by the given PP_Rect. PP_OK is sent as
2152// the error code in a reply message if the rect is topmost otherwise
2153// PP_ERROR_FAILED is sent.
2154IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost,
2155 PP_Rect /* rect */)
2156
[email protected]6a77ef22012-12-21 23:31:362157// Notifies the renderer to invoke printing for the given plugin instance. No
2158// reply is sent.
2159IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_InvokePrinting)
2160
[email protected]db16e6d2012-12-19 03:32:572161// DeviceEnumeration -----------------------------------------------------------
[email protected]4f01c762012-12-05 02:44:182162// Device enumeration messages used by audio input and video capture.
2163IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices)
2164IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply,
2165 std::vector<ppapi::DeviceRefData> /* devices */)
2166IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange,
2167 uint32_t /* callback_id */)
2168IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange)
2169IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange,
2170 uint32_t /* callback_id */,
2171 std::vector<ppapi::DeviceRefData> /* devices */)
2172
[email protected]a1686e272012-11-01 23:39:342173// Flash clipboard.
2174IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create)
2175IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat,
2176 std::string /* format_name */)
2177IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply,
2178 uint32_t /* format */)
2179IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable,
2180 uint32_t /* clipboard_type */,
2181 uint32_t /* format */)
2182IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
2183 uint32_t /* clipboard_type */,
2184 uint32_t /* format */)
2185IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
2186 std::string /* result */)
2187IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
2188 uint32_t /* clipboard_type */,
2189 std::vector<uint32_t> /* formats */,
2190 std::vector<std::string> /* data */)
[email protected]3391ebb2014-01-28 01:45:332191IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_GetSequenceNumber,
2192 uint32_t /* clipboard_type */)
2193IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply,
2194 uint64_t /* sequence_number */)
[email protected]77b55502012-11-08 22:20:202195
[email protected]bf398e262014-03-26 19:22:242196// Flash DRM.
2197IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create)
2198
2199// Requests the device ID.
2200IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID)
2201// Reply for GetDeviceID which includes the device ID as a string.
2202IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply,
2203 std::string /* id */)
2204
2205// Requests the HMONITOR corresponding to the monitor on which the instance is
2206// displayed.
2207IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetHmonitor)
2208// Reply message for GetHmonitor which contains the HMONITOR as an int64_t.
2209IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply,
2210 int64_t /* hmonitor */)
2211
2212// Requests the voucher file which is used to verify the integrity of the Flash
2213// module. A PPB_FileRef resource will be created.
2214IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile)
2215// Reply message for GetVoucherFile which contains the CreateInfo for a
2216// PPB_FileRef which points to the voucher file.
2217IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply,
2218 ppapi::FileRefCreateInfo /* file_info */)
2219
2220// Requests a value indicating whether the monitor on which the instance is
2221// displayed is external.
2222IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_MonitorIsExternal)
2223// Reply message for MonitorIsExternal which contains the value indicating if
2224// the monitor is external.
2225IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_MonitorIsExternalReply,
2226 PP_Bool /* is_external */)
2227
[email protected]0c92b0d2012-12-08 00:46:232228// Flash file.
2229IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create)
2230IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile,
2231 ppapi::PepperFilePath /* path */,
[email protected]0ef197f2013-07-31 05:46:482232 int /* pp_open_flags */)
[email protected]0c92b0d2012-12-08 00:46:232233IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile,
2234 ppapi::PepperFilePath /* from_path */,
2235 ppapi::PepperFilePath /* to_path */)
2236IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir,
2237 ppapi::PepperFilePath /* path */,
2238 bool /* recursive */)
2239IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir,
2240 ppapi::PepperFilePath /* path */)
2241IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile,
2242 ppapi::PepperFilePath /* path */)
2243IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply,
[email protected]141bcc52014-01-27 21:36:002244 base::File::Info /* file_info */)
[email protected]0c92b0d2012-12-08 00:46:232245IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents,
2246 ppapi::PepperFilePath /* path */)
2247IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply,
2248 ppapi::DirContents /* entries */)
2249IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile)
2250
[email protected]cb65f132012-10-09 17:06:092251// Flash font file.
2252IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
2253 ppapi::proxy::SerializedFontDescription /* description */,
2254 PP_PrivateFontCharset /* charset */)
2255IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
2256 uint32_t /* table */)
2257IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
2258 std::string /* output */)
[email protected]11d0c362012-10-11 02:02:112259
[email protected]22fdaa62012-11-30 01:55:442260// Flash fullscreen.
2261IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create)
2262IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen,
2263 bool /* fullscreen */)
2264
[email protected]bf398e262014-03-26 19:22:242265// FlashMenu.
[email protected]97f58132012-11-15 20:41:322266
2267// Creates the flash menu with the given data.
2268IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Create,
2269 ppapi::proxy::SerializedFlashMenu /* menu_data */)
2270
2271// Shows the menu at the given location relative to the plugin instance.
2272IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show,
2273 PP_Point /* location */)
2274
2275// Reply to a show command. If the resource reply is PP_OK, the selected_id
2276// will be the menu item ID chosen by the user.
2277IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply,
2278 int32_t /* selected_id */)
2279
[email protected]bf398e262014-03-26 19:22:242280// PPB_Flash_MessageLoop.
2281IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
2282 PP_Instance /* instance */,
2283 ppapi::HostResource /* result */)
2284IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
2285 ppapi::HostResource /* flash_message_loop */,
2286 int32_t /* result */)
2287IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
2288 ppapi::HostResource /* flash_message_loop */)
2289
[email protected]bb92b012013-03-29 02:13:202290// PDF ------------------------------------------------------------------------
2291
2292// Creates the PDF resource.
2293IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create)
2294
[email protected]bb92b012013-03-29 02:13:202295// Notifies the renderer that the PDF started loading.
2296IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading)
2297
2298// Notifies the renderer that the PDF stopped loading.
2299IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading)
2300
2301// Sets any restrictions on the PDF content.
2302IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetContentRestriction,
2303 int /* restrictions */)
2304
2305// Requests that the specified action be recorded with UMA.
2306IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_UserMetricsRecordAction,
2307 std::string /* action */)
2308
2309// Notifies the renderer that the current PDF uses an unsupported feature.
2310IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature)
2311
2312// Notifies the renderer to print the current PDF.
2313IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print)
2314
Dan Sinclair2e884f72018-03-26 16:43:052315// Notifies the renderer to display an alert dialog.
2316IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_ShowAlertDialog,
2317 std::string /* message */)
2318// Reply from the renderer that the alert has been acknowledged.
2319IPC_MESSAGE_CONTROL0(PpapiPluginMsg_PDF_ShowAlertDialogReply)
2320
2321// Notifies the renderer to display a confirmation dialog.
2322IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_ShowConfirmDialog,
2323 std::string /* message */)
2324// Reply from the renderer with the results of the confirm dialog.
2325IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_ShowConfirmDialogReply,
2326 bool /* bool result */)
2327
2328// Notifies the renderer to display a prompt dialog.
2329IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_ShowPromptDialog,
2330 std::string /* message */,
2331 std::string /* default answer */)
2332// Reply from the renderer with the results of the prompt dialog.
2333IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_ShowPromptDialogReply,
2334 std::string /* str_result */)
2335
[email protected]bb92b012013-03-29 02:13:202336// Notifies the renderer to save the current PDF.
2337IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs)
2338
[email protected]72b1a222014-01-15 04:26:112339// Called by the plugin when its selection changes.
2340IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText,
2341 base::string16 /* selected_text */)
2342
[email protected]5eda96292014-02-03 06:55:142343// Called by the plugin to set the link under the cursor.
2344IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor,
2345 std::string /* url */)
2346
dmazzonic3547a32016-06-02 05:47:152347// Called by the plugin to describe the viewport for accessibility support.
2348IPC_MESSAGE_CONTROL1(
2349 PpapiHostMsg_PDF_SetAccessibilityViewportInfo,
2350 PP_PrivateAccessibilityViewportInfo /* viewport_info */)
2351
2352// Send information about the whole document for accessibility support.
2353IPC_MESSAGE_CONTROL1(
2354 PpapiHostMsg_PDF_SetAccessibilityDocInfo,
2355 PP_PrivateAccessibilityDocInfo /* doc_info */)
2356
2357// Send information about one page for accessibility support.
2358IPC_MESSAGE_CONTROL3(
2359 PpapiHostMsg_PDF_SetAccessibilityPageInfo,
2360 PP_PrivateAccessibilityPageInfo /* page_info */,
2361 std::vector<PP_PrivateAccessibilityTextRunInfo> /* text_runs */,
2362 std::vector<PP_PrivateAccessibilityCharInfo> /* chars */)
2363
Dan Sinclairf50e9f32017-07-25 21:06:412364// Send information about the selection coordinates.
2365IPC_MESSAGE_CONTROL4(PpapiHostMsg_PDF_SelectionChanged,
2366 PP_FloatPoint /* left */,
2367 int32_t /* left_height */,
2368 PP_FloatPoint /* right */,
2369 int32_t /* right_height */)
2370
jchuangadd2f052015-02-17 10:10:502371// VideoCapture ----------------------------------------------------------------
2372
[email protected]cc123872012-11-16 07:53:082373// VideoCapture_Dev, plugin -> host
2374IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create)
2375IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture)
2376IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer,
2377 uint32_t /* buffer */)
2378IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture)
2379IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close)
2380
2381// VideoCapture_Dev, plugin -> host -> plugin
[email protected]cc123872012-11-16 07:53:082382IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open,
2383 std::string /* device_id */,
2384 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
2385 uint32_t /* buffer_count */)
2386IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply)
2387
2388// VideoCapture_Dev, host -> plugin
2389IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo,
2390 PP_VideoCaptureDeviceInfo_Dev /* info */,
2391 std::vector<ppapi::HostResource> /* buffers */,
2392 uint32_t /* buffer_size */)
2393IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2394 uint32_t /* status */)
2395IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2396 uint32_t /* error */)
2397IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2398 uint32_t /* buffer */)
2399
[email protected]cb65f132012-10-09 17:06:092400#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
Daniel Bratellbcbca5322017-09-01 10:00:532401
2402#endif // PPAPI_PROXY_PPAPI_MESSAGES_H_