[email protected] | c80a0ba | 2012-01-13 00:02:29 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Daniel Bratell | bcbca532 | 2017-09-01 10:00:53 | [diff] [blame] | 5 | #ifndef PPAPI_PROXY_PPAPI_MESSAGES_H_ |
| 6 | #define PPAPI_PROXY_PPAPI_MESSAGES_H_ |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 7 | |
| 8 | #include <stdint.h> |
| 9 | |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 10 | #include <map> |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 11 | #include <string> |
| 12 | #include <vector> |
| 13 | |
[email protected] | 5799981 | 2013-02-24 05:40:52 | [diff] [blame] | 14 | #include "base/files/file_path.h" |
[email protected] | 8299b71 | 2013-07-17 19:55:23 | [diff] [blame] | 15 | #include "base/memory/shared_memory.h" |
[email protected] | 1575659 | 2013-07-25 14:17:53 | [diff] [blame] | 16 | #include "base/process/process.h" |
[email protected] | 896d161f | 2013-06-11 22:52:24 | [diff] [blame] | 17 | #include "base/strings/string16.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 18 | #include "base/sync_socket.h" |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 19 | #include "build/build_config.h" |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 20 | #include "gpu/command_buffer/common/command_buffer.h" |
lukasza | 2573ce7d | 2016-02-16 19:17:22 | [diff] [blame] | 21 | #include "gpu/command_buffer/common/command_buffer_id.h" |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 22 | #include "gpu/command_buffer/common/mailbox.h" |
dyen | cc16ed4d | 2015-11-03 20:03:04 | [diff] [blame] | 23 | #include "gpu/command_buffer/common/sync_token.h" |
fsamuel | ef5a0b6 | 2016-03-05 00:35:47 | [diff] [blame] | 24 | #include "gpu/ipc/common/gpu_command_buffer_traits.h" |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 25 | #include "ipc/ipc_channel_handle.h" |
| 26 | #include "ipc/ipc_message_macros.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 27 | #include "ipc/ipc_message_utils.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 28 | #include "ipc/ipc_platform_file.h" |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 29 | #include "ppapi/c/dev/pp_video_capture_dev.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 30 | #include "ppapi/c/dev/pp_video_dev.h" |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 31 | #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 32 | #include "ppapi/c/dev/ppb_url_util_dev.h" |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 33 | #include "ppapi/c/dev/ppp_printing_dev.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 34 | #include "ppapi/c/pp_bool.h" |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 35 | #include "ppapi/c/pp_codecs.h" |
[email protected] | ea505a9d | 2011-07-07 18:34:40 | [diff] [blame] | 36 | #include "ppapi/c/pp_file_info.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 37 | #include "ppapi/c/pp_instance.h" |
| 38 | #include "ppapi/c/pp_module.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 39 | #include "ppapi/c/pp_point.h" |
| 40 | #include "ppapi/c/pp_rect.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 41 | #include "ppapi/c/pp_resource.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 42 | #include "ppapi/c/pp_size.h" |
[email protected] | 3b98ced7 | 2012-03-09 02:08:33 | [diff] [blame] | 43 | #include "ppapi/c/pp_time.h" |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 44 | #include "ppapi/c/ppb_audio_config.h" |
[email protected] | 38f61e8f | 2013-05-11 19:23:38 | [diff] [blame] | 45 | #include "ppapi/c/ppb_image_data.h" |
[email protected] | b838eea | 2013-06-22 22:17:22 | [diff] [blame] | 46 | #include "ppapi/c/ppb_tcp_socket.h" |
[email protected] | d33b11a | 2013-08-07 09:57:28 | [diff] [blame] | 47 | #include "ppapi/c/ppb_text_input_controller.h" |
[email protected] | 8de1329 | 2013-06-24 06:04:39 | [diff] [blame] | 48 | #include "ppapi/c/ppb_udp_socket.h" |
lionel.g.landwerlin | c3f1512 | 2015-02-25 01:20:58 | [diff] [blame] | 49 | #include "ppapi/c/ppb_video_encoder.h" |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 50 | #include "ppapi/c/private/pp_private_font_charset.h" |
jchuang | 512b0a0d | 2015-02-20 03:42:49 | [diff] [blame] | 51 | #include "ppapi/c/private/pp_video_capture_format.h" |
[email protected] | ea628e3 | 2012-08-02 21:50:16 | [diff] [blame] | 52 | #include "ppapi/c/private/ppb_flash.h" |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 53 | #include "ppapi/c/private/ppb_host_resolver_private.h" |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 54 | #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 55 | #include "ppapi/c/private/ppb_net_address_private.h" |
[email protected] | f5869d8be | 2013-04-06 00:33:10 | [diff] [blame] | 56 | #include "ppapi/c/private/ppb_pdf.h" |
[email protected] | 8299b71 | 2013-07-17 19:55:23 | [diff] [blame] | 57 | #include "ppapi/c/private/ppp_flash_browser_operations.h" |
n.bansal | 64c4daa | 2014-11-19 08:38:48 | [diff] [blame] | 58 | #include "ppapi/c/private/ppp_pdf.h" |
[email protected] | 6a68537 | 2013-02-12 12:50:46 | [diff] [blame] | 59 | #include "ppapi/proxy/host_resolver_private_resource.h" |
[email protected] | 07d0a6bf | 2013-09-17 04:15:10 | [diff] [blame] | 60 | #include "ppapi/proxy/network_list_resource.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 61 | #include "ppapi/proxy/ppapi_param_traits.h" |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 62 | #include "ppapi/proxy/ppapi_proxy_export.h" |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 63 | #include "ppapi/proxy/resource_message_params.h" |
[email protected] | 7358d57 | 2011-02-15 18:44:40 | [diff] [blame] | 64 | #include "ppapi/proxy/serialized_flash_menu.h" |
[email protected] | eb5960da | 2013-01-16 23:23:53 | [diff] [blame] | 65 | #include "ppapi/proxy/serialized_handle.h" |
[email protected] | fb35dcf | 2010-11-14 17:08:00 | [diff] [blame] | 66 | #include "ppapi/proxy/serialized_structs.h" |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 67 | #include "ppapi/proxy/serialized_var.h" |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 68 | #include "ppapi/shared_impl/dir_contents.h" |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 69 | #include "ppapi/shared_impl/file_growth.h" |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 70 | #include "ppapi/shared_impl/file_path.h" |
[email protected] | dc000e8 | 2013-06-26 04:10:41 | [diff] [blame] | 71 | #include "ppapi/shared_impl/file_ref_create_info.h" |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 72 | #include "ppapi/shared_impl/media_stream_audio_track_shared.h" |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 73 | #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 74 | #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 75 | #include "ppapi/shared_impl/ppapi_preferences.h" |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 76 | #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
[email protected] | 9a57839 | 2011-12-07 18:59:27 | [diff] [blame] | 77 | #include "ppapi/shared_impl/ppb_input_event_shared.h" |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 78 | #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 79 | #include "ppapi/shared_impl/ppb_view_shared.h" |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 80 | #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 81 | #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 82 | #include "ppapi/shared_impl/socket_option_data.h" |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 83 | #include "ppapi/shared_impl/url_request_info_data.h" |
[email protected] | 844fecb | 2012-11-16 20:11:06 | [diff] [blame] | 84 | #include "ppapi/shared_impl/url_response_info_data.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 85 | |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 86 | #undef IPC_MESSAGE_EXPORT |
| 87 | #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 88 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 89 | #define IPC_MESSAGE_START PpapiMsgStart |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 90 | |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 91 | IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
| 92 | ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 93 | IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioSampleRate, PP_AUDIOSAMPLERATE_LAST) |
Rob Buis | c30aef4 | 2017-10-17 20:36:33 | [diff] [blame] | 94 | IPC_ENUM_TRAITS_MAX_VALUE(PP_DeviceType_Dev, PP_DEVICETYPE_DEV_MAX) |
[email protected] | 11c6a7f1 | 2013-11-12 02:29:19 | [diff] [blame] | 95 | IPC_ENUM_TRAITS_MAX_VALUE(PP_FileSystemType, PP_FILESYSTEMTYPE_ISOLATED) |
| 96 | IPC_ENUM_TRAITS_MAX_VALUE(PP_FileType, PP_FILETYPE_OTHER) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 97 | IPC_ENUM_TRAITS_MAX_VALUE(PP_Flash_BrowserOperations_Permission, |
| 98 | PP_FLASH_BROWSEROPERATIONS_PERMISSION_LAST) |
| 99 | IPC_ENUM_TRAITS_MAX_VALUE(PP_Flash_BrowserOperations_SettingType, |
| 100 | PP_FLASH_BROWSEROPERATIONS_SETTINGTYPE_LAST) |
| 101 | IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_FlashSetting, |
| 102 | PP_FLASHSETTING_FIRST, |
| 103 | PP_FLASHSETTING_LAST) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 104 | IPC_ENUM_TRAITS_MAX_VALUE(PP_ImageDataFormat, PP_IMAGEDATAFORMAT_LAST) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 105 | IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_InputEvent_MouseButton, |
| 106 | PP_INPUTEVENT_MOUSEBUTTON_FIRST, |
| 107 | PP_INPUTEVENT_MOUSEBUTTON_LAST) |
| 108 | IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_InputEvent_Type, |
| 109 | PP_INPUTEVENT_TYPE_FIRST, |
| 110 | PP_INPUTEVENT_TYPE_LAST) |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 111 | IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, |
[email protected] | c54d990 | 2013-11-20 13:44:37 | [diff] [blame] | 112 | PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) |
[email protected] | ddecdae | 2013-06-24 23:17:46 | [diff] [blame] | 113 | IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private, |
| 114 | PP_NETADDRESSFAMILY_PRIVATE_IPV6) |
[email protected] | 86fbad28 | 2013-09-22 06:34:03 | [diff] [blame] | 115 | IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP) |
| 116 | IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 117 | IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintOrientation_Dev, |
| 118 | PP_PRINTORIENTATION_ROTATED_LAST) |
Rob Buis | 608a5167 | 2017-11-10 17:57:52 | [diff] [blame] | 119 | IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) // Bitmask. |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 120 | IPC_ENUM_TRAITS_MAX_VALUE(PP_PrintScalingOption_Dev, PP_PRINTSCALINGOPTION_LAST) |
thestig | 957b445 | 2015-03-11 22:20:54 | [diff] [blame] | 121 | IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDuplexMode_Dev, PP_PRIVATEDUPLEXMODE_LAST) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 122 | IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateFontCharset, PP_PRIVATEFONTCHARSET_LAST) |
[email protected] | b838eea | 2013-06-22 22:17:22 | [diff] [blame] | 123 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option, |
[email protected] | 5c2f0399 | 2013-09-23 19:22:46 | [diff] [blame] | 124 | PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 125 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TextInput_Type, PP_TEXTINPUT_TYPE_LAST) |
| 126 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontFamily_Dev, PP_TRUETYPEFONTFAMILY_LAST) |
| 127 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontStyle_Dev, PP_TRUETYPEFONTSTYLE_LAST) |
| 128 | IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_TrueTypeFontWeight_Dev, |
| 129 | PP_TRUETYPEFONTWEIGHT_FIRST, |
| 130 | PP_TRUETYPEFONTWEIGHT_LAST) |
| 131 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontWidth_Dev, PP_TRUETYPEFONTWIDTH_LAST) |
| 132 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TrueTypeFontCharset_Dev, |
| 133 | PP_TRUETYPEFONTCHARSET_LAST) |
[email protected] | 8de1329 | 2013-06-24 06:04:39 | [diff] [blame] | 134 | IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
eduardo.lima | 8171d46 | 2015-03-13 15:40:21 | [diff] [blame] | 135 | PP_UDPSOCKET_OPTION_MULTICAST_TTL) |
Rob Buis | 1fc16ae | 2017-11-08 20:38:10 | [diff] [blame] | 136 | IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_VideoDecodeError_Dev, |
| 137 | PP_VIDEODECODERERROR_FIRST, |
| 138 | PP_VIDEODECODERERROR_LAST) |
| 139 | IPC_ENUM_TRAITS_MIN_MAX_VALUE(PP_VideoDecoder_Profile, |
| 140 | PP_VIDEODECODER_PROFILE_FIRST, |
| 141 | PP_VIDEODECODER_PROFILE_LAST) |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 142 | IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
bbudge | 4d6acaf | 2014-08-23 22:17:45 | [diff] [blame] | 143 | IPC_ENUM_TRAITS_MAX_VALUE(PP_HardwareAcceleration, PP_HARDWAREACCELERATION_LAST) |
lionel.g.landwerlin | 764a8c9 | 2015-11-19 01:48:08 | [diff] [blame] | 144 | IPC_ENUM_TRAITS_MAX_VALUE(PP_AudioProfile, PP_AUDIOPROFILE_MAX) |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 145 | IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
dmazzoni | c3547a3 | 2016-06-02 05:47:15 | [diff] [blame] | 146 | IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDirection, PP_PRIVATEDIRECTION_LAST) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 147 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 148 | IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 149 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 150 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 151 | IPC_STRUCT_TRAITS_END() |
| 152 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 153 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 154 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 155 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 156 | IPC_STRUCT_TRAITS_END() |
| 157 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 158 | IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
| 159 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 160 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 161 | IPC_STRUCT_TRAITS_END() |
| 162 | |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 163 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize) |
| 164 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 165 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 166 | IPC_STRUCT_TRAITS_END() |
| 167 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 168 | IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
| 169 | IPC_STRUCT_TRAITS_MEMBER(point) |
| 170 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 171 | IPC_STRUCT_TRAITS_END() |
| 172 | |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 173 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect) |
| 174 | IPC_STRUCT_TRAITS_MEMBER(point) |
| 175 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 176 | IPC_STRUCT_TRAITS_END() |
| 177 | |
[email protected] | 38f61e8f | 2013-05-11 19:23:38 | [diff] [blame] | 178 | IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) |
| 179 | IPC_STRUCT_TRAITS_MEMBER(format) |
| 180 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 181 | IPC_STRUCT_TRAITS_MEMBER(stride) |
| 182 | IPC_STRUCT_TRAITS_END() |
| 183 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 184 | IPC_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) |
| 188 | IPC_STRUCT_TRAITS_END() |
| 189 | |
| 190 | IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev) |
| 191 | IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id) |
| 192 | IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id) |
| 193 | IPC_STRUCT_TRAITS_END() |
| 194 | |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 195 | IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev) |
| 196 | IPC_STRUCT_TRAITS_MEMBER(first_page_number) |
| 197 | IPC_STRUCT_TRAITS_MEMBER(last_page_number) |
| 198 | IPC_STRUCT_TRAITS_END() |
| 199 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 200 | IPC_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) |
| 204 | IPC_STRUCT_TRAITS_END() |
| 205 | |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 206 | IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint) |
| 207 | IPC_STRUCT_TRAITS_MEMBER(family) |
| 208 | IPC_STRUCT_TRAITS_MEMBER(flags) |
| 209 | IPC_STRUCT_TRAITS_END() |
| 210 | |
[email protected] | 772a7462 | 2012-06-14 21:15:50 | [diff] [blame] | 211 | IPC_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) |
| 220 | IPC_STRUCT_TRAITS_END() |
| 221 | |
n.bansal | 64c4daa | 2014-11-19 08:38:48 | [diff] [blame] | 222 | IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintPresetOptions_Dev) |
| 223 | IPC_STRUCT_TRAITS_MEMBER(is_scaling_disabled) |
| 224 | IPC_STRUCT_TRAITS_MEMBER(copies) |
thestig | b335e7d | 2015-03-05 21:06:02 | [diff] [blame] | 225 | IPC_STRUCT_TRAITS_MEMBER(duplex) |
thestig | 957b445 | 2015-03-11 22:20:54 | [diff] [blame] | 226 | IPC_STRUCT_TRAITS_MEMBER(is_page_size_uniform) |
| 227 | IPC_STRUCT_TRAITS_MEMBER(uniform_page_size) |
n.bansal | 64c4daa | 2014-11-19 08:38:48 | [diff] [blame] | 228 | IPC_STRUCT_TRAITS_END() |
| 229 | |
Lei Zhang | dc88867d | 2018-05-22 16:57:47 | [diff] [blame] | 230 | IPC_STRUCT_TRAITS_BEGIN(PP_PdfPrintSettings_Dev) |
xlou | 6bd7c2d | 2018-07-10 01:35:40 | [diff] [blame] | 231 | IPC_STRUCT_TRAITS_MEMBER(pages_per_sheet) |
Lei Zhang | dc88867d | 2018-05-22 16:57:47 | [diff] [blame] | 232 | IPC_STRUCT_TRAITS_MEMBER(scale_factor) |
| 233 | IPC_STRUCT_TRAITS_END() |
| 234 | |
dmazzoni | c3547a3 | 2016-06-02 05:47:15 | [diff] [blame] | 235 | IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityViewportInfo) |
| 236 | IPC_STRUCT_TRAITS_MEMBER(zoom) |
| 237 | IPC_STRUCT_TRAITS_MEMBER(scroll) |
| 238 | IPC_STRUCT_TRAITS_MEMBER(offset) |
Dominic Mazzoni | 4d87bcc | 2018-03-13 18:38:06 | [diff] [blame] | 239 | 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) |
dmazzoni | c3547a3 | 2016-06-02 05:47:15 | [diff] [blame] | 243 | IPC_STRUCT_TRAITS_END() |
| 244 | |
| 245 | IPC_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) |
| 249 | IPC_STRUCT_TRAITS_END() |
| 250 | |
| 251 | IPC_STRUCT_TRAITS_BEGIN(PP_PrivateAccessibilityCharInfo) |
| 252 | IPC_STRUCT_TRAITS_MEMBER(unicode_character) |
| 253 | IPC_STRUCT_TRAITS_MEMBER(char_width) |
| 254 | IPC_STRUCT_TRAITS_END() |
| 255 | |
| 256 | IPC_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) |
| 261 | IPC_STRUCT_TRAITS_END() |
| 262 | |
| 263 | IPC_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) |
| 268 | IPC_STRUCT_TRAITS_END() |
| 269 | |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 270 | IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) |
| 271 | IPC_STRUCT_TRAITS_MEMBER(begin) |
| 272 | IPC_STRUCT_TRAITS_MEMBER(len) |
| 273 | IPC_STRUCT_TRAITS_END() |
| 274 | |
| 275 | IPC_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) |
| 284 | IPC_STRUCT_TRAITS_END() |
| 285 | |
jchuang | 512b0a0d | 2015-02-20 03:42:49 | [diff] [blame] | 286 | IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureFormat) |
| 287 | IPC_STRUCT_TRAITS_MEMBER(frame_size) |
| 288 | IPC_STRUCT_TRAITS_MEMBER(frame_rate) |
| 289 | IPC_STRUCT_TRAITS_END() |
| 290 | |
[email protected] | 11c6a7f1 | 2013-11-12 02:29:19 | [diff] [blame] | 291 | IPC_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) |
| 298 | IPC_STRUCT_TRAITS_END() |
| 299 | |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 300 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth) |
| 301 | IPC_STRUCT_TRAITS_MEMBER(max_written_offset) |
| 302 | IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount) |
| 303 | IPC_STRUCT_TRAITS_END() |
| 304 | |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 305 | IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
| 306 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 307 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 308 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 309 | IPC_STRUCT_TRAITS_END() |
| 310 | |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 311 | IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry) |
| 312 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 313 | IPC_STRUCT_TRAITS_MEMBER(is_dir) |
| 314 | IPC_STRUCT_TRAITS_END() |
| 315 | |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 316 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRefCreateInfo) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 317 | IPC_STRUCT_TRAITS_MEMBER(file_system_type) |
| 318 | IPC_STRUCT_TRAITS_MEMBER(internal_path) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 319 | IPC_STRUCT_TRAITS_MEMBER(display_name) |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 320 | IPC_STRUCT_TRAITS_MEMBER(browser_pending_host_resource_id) |
| 321 | IPC_STRUCT_TRAITS_MEMBER(renderer_pending_host_resource_id) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 322 | IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource) |
| 323 | IPC_STRUCT_TRAITS_END() |
| 324 | |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 325 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting) |
| 326 | IPC_STRUCT_TRAITS_MEMBER(site) |
| 327 | IPC_STRUCT_TRAITS_MEMBER(permission) |
| 328 | IPC_STRUCT_TRAITS_END() |
| 329 | |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 330 | IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamAudioTrackShared::Attributes) |
| 331 | IPC_STRUCT_TRAITS_MEMBER(buffers) |
[email protected] | e6b863c6e | 2014-07-31 12:54:12 | [diff] [blame] | 332 | IPC_STRUCT_TRAITS_MEMBER(duration) |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 333 | IPC_STRUCT_TRAITS_END() |
| 334 | |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 335 | IPC_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) |
| 340 | IPC_STRUCT_TRAITS_END() |
| 341 | |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 342 | IPC_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] | 0cd5b9df | 2012-06-28 19:33:33 | [diff] [blame] | 347 | IPC_STRUCT_TRAITS_MEMBER(device_scale) |
| 348 | IPC_STRUCT_TRAITS_MEMBER(css_scale) |
[email protected] | 5015a07 | 2014-06-19 01:48:14 | [diff] [blame] | 349 | IPC_STRUCT_TRAITS_MEMBER(scroll_offset) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 350 | IPC_STRUCT_TRAITS_END() |
| 351 | |
[email protected] | cdf4e91 | 2012-06-21 23:15:10 | [diff] [blame] | 352 | IPC_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) |
| 358 | IPC_STRUCT_TRAITS_END() |
| 359 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 360 | IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) |
[email protected] | 966d1e1 | 2012-05-18 07:20:32 | [diff] [blame] | 361 | 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] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 365 | IPC_STRUCT_TRAITS_MEMBER(default_font_size) |
| 366 | IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) |
[email protected] | 6b4dcb07 | 2012-06-18 22:26:51 | [diff] [blame] | 367 | IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores) |
[email protected] | e0d8c42 | 2012-06-04 22:57:19 | [diff] [blame] | 368 | IPC_STRUCT_TRAITS_MEMBER(is_3d_supported) |
| 369 | IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported) |
[email protected] | 4abba3b4 | 2013-02-12 03:45:54 | [diff] [blame] | 370 | IPC_STRUCT_TRAITS_MEMBER(is_stage3d_baseline_supported) |
[email protected] | 6013c79 | 2014-03-07 00:18:33 | [diff] [blame] | 371 | IPC_STRUCT_TRAITS_MEMBER(is_accelerated_video_decode_enabled) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 372 | IPC_STRUCT_TRAITS_END() |
| 373 | |
jkwang | 424fd27d | 2017-05-26 10:22:25 | [diff] [blame] | 374 | IPC_STRUCT_TRAITS_BEGIN(ppapi::TouchPointWithTilt) |
| 375 | IPC_STRUCT_TRAITS_MEMBER(touch) |
| 376 | IPC_STRUCT_TRAITS_MEMBER(tilt) |
| 377 | IPC_STRUCT_TRAITS_END() |
| 378 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 379 | IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 380 | 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] | 8047326 | 2011-08-31 17:15:18 | [diff] [blame] | 387 | IPC_STRUCT_TRAITS_MEMBER(mouse_movement) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 388 | 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] | f0287d3 | 2013-09-14 11:50:27 | [diff] [blame] | 392 | IPC_STRUCT_TRAITS_MEMBER(code) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 393 | IPC_STRUCT_TRAITS_MEMBER(character_text) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 394 | 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] | cdf4e91 | 2012-06-21 23:15:10 | [diff] [blame] | 398 | IPC_STRUCT_TRAITS_MEMBER(touches) |
| 399 | IPC_STRUCT_TRAITS_MEMBER(changed_touches) |
| 400 | IPC_STRUCT_TRAITS_MEMBER(target_touches) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 401 | IPC_STRUCT_TRAITS_END() |
| 402 | |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 403 | IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair) |
| 404 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 405 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 406 | IPC_STRUCT_TRAITS_END() |
| 407 | |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 408 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 409 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 410 | IPC_STRUCT_TRAITS_MEMBER(method) |
| 411 | IPC_STRUCT_TRAITS_MEMBER(headers) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 412 | 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] | c094eaf | 2012-07-10 16:09:01 | [diff] [blame] | 423 | IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent) |
| 424 | IPC_STRUCT_TRAITS_MEMBER(custom_user_agent) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 425 | IPC_STRUCT_TRAITS_MEMBER(body) |
| 426 | IPC_STRUCT_TRAITS_END() |
| 427 | |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 428 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 429 | IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 430 | IPC_STRUCT_TRAITS_MEMBER(data) |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 431 | IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 432 | IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 433 | IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 434 | IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 435 | IPC_STRUCT_TRAITS_END() |
| 436 | |
[email protected] | 844fecb | 2012-11-16 20:11:06 | [diff] [blame] | 437 | IPC_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] | 844fecb | 2012-11-16 20:11:06 | [diff] [blame] | 443 | IPC_STRUCT_TRAITS_END() |
| 444 | |
[email protected] | 07d0a6bf | 2013-09-17 04:15:10 | [diff] [blame] | 445 | IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo) |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 446 | 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) |
| 452 | IPC_STRUCT_TRAITS_END() |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 453 | |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 454 | // Only whitelisted switches passed through PpapiNaClPluginArgs. |
[email protected] | ac07ec5 | 2013-04-22 17:32:45 | [diff] [blame] | 455 | // The list of switches can be found in: |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 456 | // components/nacl/browser/nacl_process_host.cc |
| 457 | IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
[email protected] | ac07ec5 | 2013-04-22 17:32:45 | [diff] [blame] | 458 | IPC_STRUCT_TRAITS_MEMBER(off_the_record) |
| 459 | IPC_STRUCT_TRAITS_MEMBER(permissions) |
[email protected] | ac07ec5 | 2013-04-22 17:32:45 | [diff] [blame] | 460 | IPC_STRUCT_TRAITS_MEMBER(switch_names) |
| 461 | IPC_STRUCT_TRAITS_MEMBER(switch_values) |
| 462 | IPC_STRUCT_TRAITS_END() |
| 463 | |
lionel.g.landwerlin | 764a8c9 | 2015-11-19 01:48:08 | [diff] [blame] | 464 | IPC_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) |
| 470 | IPC_STRUCT_TRAITS_END() |
| 471 | |
lionel.g.landwerlin | c3f1512 | 2015-02-25 01:20:58 | [diff] [blame] | 472 | IPC_STRUCT_TRAITS_BEGIN(PP_VideoProfileDescription) |
| 473 | IPC_STRUCT_TRAITS_MEMBER(profile) |
| 474 | IPC_STRUCT_TRAITS_MEMBER(max_resolution) |
| 475 | IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) |
| 476 | IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) |
lionel.g.landwerlin | b8698ac4 | 2015-05-06 00:01:52 | [diff] [blame] | 477 | IPC_STRUCT_TRAITS_MEMBER(hardware_accelerated) |
lionel.g.landwerlin | c3f1512 | 2015-02-25 01:20:58 | [diff] [blame] | 478 | IPC_STRUCT_TRAITS_END() |
| 479 | |
lionel.g.landwerlin | 764a8c9 | 2015-11-19 01:48:08 | [diff] [blame] | 480 | IPC_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) |
| 487 | IPC_STRUCT_TRAITS_END() |
| 488 | |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 489 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 490 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 491 | IPC_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) |
| 495 | IPC_STRUCT_TRAITS_END() |
| 496 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 497 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 498 | |
[email protected] | eb415bf0e | 2011-04-14 02:45:42 | [diff] [blame] | 499 | // These are from the browser to the plugin. |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 500 | // Loads the given plugin. |
[email protected] | 84350ef | 2013-12-19 17:10:50 | [diff] [blame] | 501 | IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 502 | base::FilePath /* path */, |
[email protected] | 84350ef | 2013-12-19 17:10:50 | [diff] [blame] | 503 | ppapi::PpapiPermissions /* permissions */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 504 | |
| 505 | // Creates a channel to talk to a renderer. The plugin will respond with |
| 506 | // PpapiHostMsg_ChannelCreated. |
yzshen | 92cad45 | 2016-06-17 20:40:09 | [diff] [blame] | 507 | // If |renderer_pid| is base::kNullProcessId, this is a channel used by the |
| 508 | // browser itself. |
[email protected] | 108fd34 | 2013-01-04 20:46:54 | [diff] [blame] | 509 | IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel, |
| 510 | base::ProcessId /* renderer_pid */, |
| 511 | int /* renderer_child_id */, |
[email protected] | bc2eeb4 | 2012-05-02 22:35:53 | [diff] [blame] | 512 | bool /* incognito */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 513 | |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 514 | // Initializes the IPC dispatchers in the NaCl plugin. |
| 515 | IPC_MESSAGE_CONTROL1(PpapiMsg_InitializeNaClDispatcher, |
| 516 | ppapi::PpapiNaClPluginArgs /* args */) |
[email protected] | 8510d28 | 2012-08-30 19:47:38 | [diff] [blame] | 517 | |
[email protected] | 029bd94 | 2013-01-22 08:30:33 | [diff] [blame] | 518 | // Instructs the plugin process to crash. |
| 519 | IPC_MESSAGE_CONTROL0(PpapiMsg_Crash) |
| 520 | |
| 521 | // Instructs the plugin process to hang. |
| 522 | IPC_MESSAGE_CONTROL0(PpapiMsg_Hang) |
| 523 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 524 | // 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. |
| 538 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId, |
| 539 | PP_Instance /* instance */, |
| 540 | bool /* usable */) |
| 541 | |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 542 | // Passes the WebKit preferences to the plugin. |
| 543 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 544 | ppapi::Preferences) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 545 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 546 | // Sent in both directions to see if the other side supports the given |
| 547 | // interface. |
kareng | 1c62eeb | 2014-11-08 16:35:03 | [diff] [blame] | 548 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 549 | std::string /* interface_name */, |
| 550 | bool /* result */) |
| 551 | |
[email protected] | ea44183 | 2014-02-05 15:34:21 | [diff] [blame] | 552 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_LogInterfaceUsage, |
| 553 | int /* interface_hash */) |
| 554 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 555 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 556 | // Network state notification from the browser for implementing |
| 557 | // PPP_NetworkState_Dev. |
| 558 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
| 559 | bool /* online */) |
| 560 | |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 561 | // 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. |
| 564 | IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 565 | uint32_t /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 566 | base::FilePath /* plugin_data_path */) |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 567 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 568 | uint32_t /* request_id */, |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 569 | std::vector<std::string> /* sites */) |
| 570 | |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 571 | // 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] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 574 | IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 575 | uint32_t /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 576 | base::FilePath /* plugin_data_path */, |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 577 | std::string /* site */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 578 | uint64_t /* flags */, |
| 579 | uint64_t /* max_age */) |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 580 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 581 | uint32_t /* request_id */, |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 582 | bool /* success */) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 583 | |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 584 | IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 585 | uint32_t /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 586 | base::FilePath /* plugin_data_path */) |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 587 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 588 | uint32_t /* request_id */, |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 589 | bool /* success */) |
| 590 | |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 591 | IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 592 | uint32_t /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 593 | base::FilePath /* plugin_data_path */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 594 | PP_Flash_BrowserOperations_SettingType /* setting_type */) |
| 595 | IPC_MESSAGE_CONTROL4( |
| 596 | PpapiHostMsg_GetPermissionSettingsResult, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 597 | uint32_t /* request_id */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 598 | bool /* success */, |
| 599 | PP_Flash_BrowserOperations_Permission /* default_permission */, |
| 600 | ppapi::FlashSiteSettings /* sites */) |
| 601 | |
| 602 | IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 603 | uint32_t /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 604 | base::FilePath /* plugin_data_path */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 605 | PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 606 | PP_Flash_BrowserOperations_Permission /* permission */, |
| 607 | bool /* clear_site_specific */) |
| 608 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 609 | uint32_t /* request_id */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 610 | bool /* success */) |
| 611 | |
| 612 | IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 613 | uint32_t /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 614 | base::FilePath /* plugin_data_path */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 615 | PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 616 | ppapi::FlashSiteSettings /* sites */) |
| 617 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 618 | uint32_t /* request_id */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 619 | bool /* success */) |
| 620 | |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 621 | // Broker Process. |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 622 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 623 | PP_Instance /* instance */, |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 624 | IPC::PlatformFileForTransit /* handle */, |
| 625 | int32_t /* result */) |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 626 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 627 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 628 | // 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] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 637 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 638 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 639 | int32_t /* result_code (will be != PP_OK on failure) */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 640 | ppapi::proxy::SerializedHandle /* socket_handle */, |
| 641 | ppapi::proxy::SerializedHandle /* handle */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 642 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 643 | // PPB_Graphics3D. |
| 644 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 645 | ppapi::HostResource /* graphics_3d */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 646 | int32_t /* pp_error */) |
| 647 | |
[email protected] | c4283577 | 2012-08-22 18:22:13 | [diff] [blame] | 648 | // PPB_ImageData. |
| 649 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData, |
| 650 | ppapi::HostResource /* old_image_data */) |
| 651 | |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 652 | // PPB_Instance. |
| 653 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete, |
| 654 | PP_Instance /* instance */, |
| 655 | int32_t /* result */) |
| 656 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 657 | // PPP_Class. |
| 658 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 659 | int64_t /* ppp_class */, |
| 660 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 661 | ppapi::proxy::SerializedVar /* property */, |
| 662 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 663 | bool /* result */) |
| 664 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 665 | int64_t /* ppp_class */, |
| 666 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 667 | ppapi::proxy::SerializedVar /* method */, |
| 668 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 669 | bool /* result */) |
| 670 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 671 | int64_t /* ppp_class */, |
| 672 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 673 | ppapi::proxy::SerializedVar /* property */, |
| 674 | ppapi::proxy::SerializedVar /* out_exception */, |
| 675 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 676 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 677 | int64_t /* ppp_class */, |
| 678 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 679 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 680 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 681 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 682 | int64_t /* ppp_class */, |
| 683 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 684 | ppapi::proxy::SerializedVar /* name */, |
| 685 | ppapi::proxy::SerializedVar /* value */, |
| 686 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 687 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 688 | int64_t /* ppp_class */, |
| 689 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 690 | ppapi::proxy::SerializedVar /* property */, |
| 691 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 692 | IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 693 | int64_t /* ppp_class */, |
| 694 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 695 | 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] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 699 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 700 | int64_t /* ppp_class */, |
| 701 | int64_t /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 702 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 703 | ppapi::proxy::SerializedVar /* out_exception */, |
| 704 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 705 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 706 | int64_t /* ppp_class */, |
| 707 | int64_t /* object */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 708 | |
[email protected] | 8c3bd1d | 2011-04-12 20:01:42 | [diff] [blame] | 709 | // PPP_Graphics3D_Dev. |
| 710 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, |
| 711 | PP_Instance /* instance */) |
| 712 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 713 | // PPP_InputEvent. |
| 714 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent, |
| 715 | PP_Instance /* instance */, |
| 716 | ppapi::InputEventData /* data */) |
| 717 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent, |
| 718 | PP_Instance /* instance */, |
| 719 | ppapi::InputEventData /* data */, |
| 720 | PP_Bool /* result */) |
| 721 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 722 | // PPP_Instance. |
| 723 | IPC_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] | 5e5d0b0 | 2011-04-04 19:32:07 | [diff] [blame] | 728 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, |
| 729 | PP_Instance /* instance */) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 730 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 731 | PP_Instance /* instance */, |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 732 | ppapi::ViewData /* new_data */, |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 733 | PP_Bool /* flash_fullscreen */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 734 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, |
| 735 | PP_Instance /* instance */, |
| 736 | PP_Bool /* has_focus */) |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 737 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad, |
| 738 | PP_Instance /* instance */, |
| 739 | int /* pending_loader_host_id */, |
| 740 | ppapi::URLResponseInfoData /* response */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 741 | |
[email protected] | e87640bd | 2014-06-18 16:44:00 | [diff] [blame] | 742 | // PPP_Messaging and PPP_MessageHandler. |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 743 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, |
| 744 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 745 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | e87640bd | 2014-06-18 16:44:00 | [diff] [blame] | 746 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPMessageHandler_HandleBlockingMessage, |
| 747 | PP_Instance /* instance */, |
| 748 | ppapi::proxy::SerializedVar /* message */, |
| 749 | ppapi::proxy::SerializedVar /* result */, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 750 | bool /* was_handled */) |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 751 | |
[email protected] | 1314f5f | 2011-10-16 02:26:56 | [diff] [blame] | 752 | // PPP_MouseLock. |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 753 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, |
| 754 | PP_Instance /* instance */) |
| 755 | |
[email protected] | ec15840 | 2014-02-06 11:40:25 | [diff] [blame] | 756 | // PPP_Pdf |
| 757 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate, |
| 758 | PP_Instance /* instance */, |
| 759 | bool /* clockwise */) |
n.bansal | 64c4daa | 2014-11-19 08:38:48 | [diff] [blame] | 760 | IPC_SYNC_MESSAGE_ROUTED1_2( |
| 761 | PpapiMsg_PPPPdf_PrintPresetOptions, |
| 762 | PP_Instance /* instance */, |
| 763 | PP_PdfPrintPresetOptions_Dev /* print preset options */, |
| 764 | PP_Bool /* result */) |
dmazzoni | c3547a3 | 2016-06-02 05:47:15 | [diff] [blame] | 765 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_EnableAccessibility, |
| 766 | PP_Instance /* instance */) |
Dan Sinclair | f50e9f3 | 2017-07-25 21:06:41 | [diff] [blame] | 767 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_SetCaretPosition, |
| 768 | PP_Instance /* instance */, |
| 769 | PP_FloatPoint /* position */) |
| 770 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_MoveRangeSelectionExtent, |
| 771 | PP_Instance /* instance */, |
| 772 | PP_FloatPoint /* extent */) |
| 773 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPPdf_SetSelectionBounds, |
| 774 | PP_Instance /* instance */, |
| 775 | PP_FloatPoint /* base */, |
| 776 | PP_FloatPoint /* extent */) |
Diana Gage | e813297a | 2017-08-01 19:07:53 | [diff] [blame] | 777 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_CanEditText, |
Diana Gage | 008fc4f | 2017-07-26 04:25:25 | [diff] [blame] | 778 | PP_Instance /* instance */, |
| 779 | PP_Bool /* result */) |
Lei Zhang | d46818b1 | 2018-04-18 13:24:28 | [diff] [blame] | 780 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_HasEditableText, |
| 781 | PP_Instance /* instance */, |
| 782 | PP_Bool /* result */) |
Diana Gage | 1234d70 | 2017-08-04 21:59:50 | [diff] [blame] | 783 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_ReplaceSelection, |
| 784 | PP_Instance /* instance */, |
| 785 | std::string /* text */) |
Lei Zhang | 9cff6f0d | 2018-04-20 02:35:32 | [diff] [blame] | 786 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_CanUndo, |
| 787 | PP_Instance /* instance */, |
| 788 | PP_Bool /* result */) |
| 789 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPdf_CanRedo, |
| 790 | PP_Instance /* instance */, |
| 791 | PP_Bool /* result */) |
| 792 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_Undo, PP_Instance /* instance */) |
| 793 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPdf_Redo, PP_Instance /* instance */) |
Lei Zhang | dc88867d | 2018-05-22 16:57:47 | [diff] [blame] | 794 | IPC_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] | ec15840 | 2014-02-06 11:40:25 | [diff] [blame] | 799 | |
[email protected] | 54ea9ff | 2014-03-20 00:27:54 | [diff] [blame] | 800 | // Find |
| 801 | IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind, |
| 802 | PP_Instance /* instance */, |
| 803 | std::string /* text */) |
| 804 | IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult, |
| 805 | PP_Instance /* instance */, |
| 806 | PP_Bool /* forward */) |
| 807 | IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind, |
| 808 | PP_Instance /* instance */) |
| 809 | |
| 810 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_SetPluginToHandleFindRequests, |
| 811 | PP_Instance /* instance */) |
| 812 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_NumberOfFindResultsChanged, |
| 813 | PP_Instance /* instance */, |
| 814 | int32_t /* total */, |
| 815 | PP_Bool /* final_result */) |
| 816 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SelectFindResultChanged, |
| 817 | PP_Instance /* instance */, |
| 818 | int32_t /* index */) |
[email protected] | fb0115f6c | 2014-03-30 17:21:08 | [diff] [blame] | 819 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTickmarks, |
| 820 | PP_Instance /* instance */, |
| 821 | std::vector<PP_Rect> /* tickmarks */) |
[email protected] | 54ea9ff | 2014-03-20 00:27:54 | [diff] [blame] | 822 | |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 823 | // PPP_Printing |
| 824 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats, |
| 825 | PP_Instance /* instance */, |
| 826 | uint32_t /* result */) |
| 827 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin, |
| 828 | PP_Instance /* instance */, |
Lei Zhang | dc88867d | 2018-05-22 16:57:47 | [diff] [blame] | 829 | PP_PrintSettings_Dev /* settings */, |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 830 | int32_t /* result */) |
| 831 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages, |
| 832 | PP_Instance /* instance */, |
| 833 | std::vector<PP_PrintPageNumberRange_Dev> /* pages */, |
| 834 | ppapi::HostResource /* result */) |
| 835 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End, |
| 836 | PP_Instance /* instance */) |
| 837 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled, |
| 838 | PP_Instance /* instance */, |
| 839 | bool /* result */) |
| 840 | |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 841 | // PPP_TextInput. |
| 842 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText, |
| 843 | PP_Instance /* instance */, |
| 844 | uint32_t /* desired_number_of_characters */) |
| 845 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 846 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 847 | // PPB_Broker. |
| 848 | IPC_MESSAGE_ROUTED3( |
| 849 | PpapiMsg_PPBBroker_ConnectComplete, |
| 850 | ppapi::HostResource /* broker */, |
| 851 | IPC::PlatformFileForTransit /* handle */, |
| 852 | int32_t /* result */) |
| 853 | |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 854 | // PPP_Instance_Private. |
| 855 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 856 | PP_Instance /* instance */, |
| 857 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 858 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 859 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 860 | |
mseaborn | 98d206ca | 2016-01-08 11:43:28 | [diff] [blame] | 861 | // 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. |
| 866 | IPC_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. |
| 884 | IPC_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. |
| 894 | IPC_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 | |
mseaborn | 3bedcdc | 2016-01-04 21:14:13 | [diff] [blame] | 900 | // 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. |
| 904 | IPC_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] | 200c918 | 2013-12-18 23:37:11 | [diff] [blame] | 912 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 913 | // 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. |
| 919 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, |
| 920 | IPC::ChannelHandle /* handle */) |
| 921 | |
[email protected] | 43fb4f8 | 2014-04-23 11:53:13 | [diff] [blame] | 922 | // Notify the renderer that the PPAPI channel gets ready in the plugin. |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 923 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete) |
[email protected] | 43fb4f8 | 2014-04-23 11:53:13 | [diff] [blame] | 924 | |
mseaborn | 38c234c3 | 2015-12-22 04:47:53 | [diff] [blame] | 925 | // 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 TerAvest | cffdd03 | 2014-09-10 19:21:56 | [diff] [blame] | 939 | IPC_SYNC_MESSAGE_CONTROL1_3(PpapiHostMsg_OpenResource, |
[email protected] | ae5f7f8 | 2014-05-02 23:24:52 | [diff] [blame] | 940 | std::string /* key */, |
Justin TerAvest | cffdd03 | 2014-09-10 19:21:56 | [diff] [blame] | 941 | uint64_t /* file_token_lo */, |
erikchen | bf74d59 | 2016-04-12 00:49:18 | [diff] [blame] | 942 | uint64_t /* file_token_hi */, |
| 943 | ppapi::proxy::SerializedHandle /* fd */) |
[email protected] | ae5f7f8 | 2014-05-02 23:24:52 | [diff] [blame] | 944 | |
[email protected] | a9b16dd | 2012-01-31 05:00:26 | [diff] [blame] | 945 | // Logs the given message to the console of all instances. |
| 946 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource, |
| 947 | PP_Instance /* instance */, |
| 948 | int /* log_level */, |
| 949 | std::string /* source */, |
| 950 | std::string /* value */) |
| 951 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 952 | // PPB_Audio. |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 953 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 954 | PP_Instance /* instance_id */, |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 955 | int32_t /* sample_rate */, |
| 956 | uint32_t /* sample_frame_count */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 957 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 958 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 959 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 960 | bool /* play */) |
| 961 | |
lionel.g.landwerlin | 764a8c9 | 2015-11-19 01:48:08 | [diff] [blame] | 962 | // PPB_AudioEncoder |
| 963 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Create) |
| 964 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_GetSupportedProfiles) |
| 965 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_GetSupportedProfilesReply, |
| 966 | std::vector<PP_AudioProfileDescription> /* results */) |
| 967 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Initialize, |
| 968 | ppapi::proxy::PPB_AudioEncodeParameters /* parameters */) |
| 969 | IPC_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 */) |
| 975 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_Encode, int32_t /* buffer_id */) |
| 976 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_EncodeReply, |
| 977 | int32_t /* buffer_id */) |
| 978 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_BitstreamBufferReady, |
| 979 | int32_t /* buffer_id */) |
| 980 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RecycleBitstreamBuffer, |
| 981 | int32_t /* buffer_id */) |
| 982 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioEncoder_RequestBitrateChange, |
| 983 | uint32_t /* bitrate */) |
| 984 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioEncoder_NotifyError, |
| 985 | int32_t /* error */) |
| 986 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioEncoder_Close) |
| 987 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 988 | // PPB_Core. |
| 989 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 990 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 991 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 992 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 993 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 994 | // PPB_Graphics3D. |
Antoine Labour | feab239 | 2017-12-21 20:28:39 | [diff] [blame] | 995 | IPC_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] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 1003 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1004 | ppapi::HostResource /* context */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1005 | int32_t /* transfer_buffer_id */) |
[email protected] | 7fe4198b | 2014-03-18 21:52:36 | [diff] [blame] | 1006 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1007 | ppapi::HostResource /* context */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1008 | int32_t /* start */, |
| 1009 | int32_t /* end */, |
[email protected] | 7fe4198b | 2014-03-18 21:52:36 | [diff] [blame] | 1010 | gpu::CommandBuffer::State /* state */, |
| 1011 | bool /* success */) |
Antoine Labour | d346994 | 2017-05-16 21:23:42 | [diff] [blame] | 1012 | IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange, |
[email protected] | 7fe4198b | 2014-03-18 21:52:36 | [diff] [blame] | 1013 | ppapi::HostResource /* context */, |
Antoine Labour | d346994 | 2017-05-16 21:23:42 | [diff] [blame] | 1014 | uint32_t /* set_get_buffer_count */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1015 | int32_t /* start */, |
| 1016 | int32_t /* end */, |
[email protected] | 571b35e8 | 2012-05-19 00:04:35 | [diff] [blame] | 1017 | gpu::CommandBuffer::State /* state */, |
| 1018 | bool /* success */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 1019 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1020 | ppapi::HostResource /* context */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1021 | int32_t /* put_offset */) |
[email protected] | 046fa1ac | 2014-04-01 09:06:43 | [diff] [blame] | 1022 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1023 | ppapi::HostResource /* context */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1024 | uint32_t /* size */, |
| 1025 | int32_t /* id */, |
[email protected] | 046fa1ac | 2014-04-01 09:06:43 | [diff] [blame] | 1026 | ppapi::proxy::SerializedHandle /* transfer_buffer */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 1027 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1028 | ppapi::HostResource /* context */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1029 | int32_t /* id */) |
erikchen | 438b044 | 2016-05-11 18:33:30 | [diff] [blame] | 1030 | // 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. |
| 1035 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_TakeFrontBuffer, |
| 1036 | ppapi::HostResource /* graphics_3d */) |
piman | b36392c2 | 2016-07-13 02:11:36 | [diff] [blame] | 1037 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBGraphics3D_SwapBuffers, |
dyen | ddfdbbb | 2016-01-14 22:21:38 | [diff] [blame] | 1038 | ppapi::HostResource /* graphics_3d */, |
erikchen | b13637b | 2016-07-08 09:38:56 | [diff] [blame] | 1039 | gpu::SyncToken /* sync_token */, |
piman | b36392c2 | 2016-07-13 02:11:36 | [diff] [blame] | 1040 | gfx::Size /* size */) |
piman | 39b1e10 | 2016-06-29 23:06:00 | [diff] [blame] | 1041 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible, |
| 1042 | ppapi::HostResource /* context */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 1043 | |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 1044 | // PPB_ImageData. |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 1045 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform, |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 1046 | PP_Instance /* instance */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1047 | int32_t /* format */, |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 1048 | PP_Size /* size */, |
| 1049 | PP_Bool /* init_to_zero */, |
| 1050 | ppapi::HostResource /* result_resource */, |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 1051 | PP_ImageDataDesc /* image_data_desc */, |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 1052 | ppapi::proxy::ImageHandle /* result */) |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 1053 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateSimple, |
[email protected] | 16b7b27 | 2012-07-25 21:54:49 | [diff] [blame] | 1054 | PP_Instance /* instance */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1055 | int32_t /* format */, |
[email protected] | 16b7b27 | 2012-07-25 21:54:49 | [diff] [blame] | 1056 | PP_Size /* size */, |
| 1057 | PP_Bool /* init_to_zero */, |
| 1058 | ppapi::HostResource /* result_resource */, |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 1059 | PP_ImageDataDesc /* image_data_desc */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1060 | ppapi::proxy::SerializedHandle /* result */) |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 1061 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1062 | // PPB_Instance. |
| 1063 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, |
| 1064 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1065 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1066 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, |
| 1067 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1068 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 473ef7d | 2012-12-03 23:39:05 | [diff] [blame] | 1069 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics, |
| 1070 | PP_Instance /* instance */, |
| 1071 | PP_Resource /* device */) |
[email protected] | c59ed589 | 2012-02-18 01:10:19 | [diff] [blame] | 1072 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1073 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, |
| 1074 | PP_Instance /* instance */, |
| 1075 | uint32_t /* result */) |
| 1076 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1077 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, |
| 1078 | PP_Instance /* instance */, |
| 1079 | uint32_t /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1080 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, |
| 1081 | PP_Instance /* instance */, |
| 1082 | PP_Bool /* result */) |
| 1083 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript, |
| 1084 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1085 | ppapi::proxy::SerializedVar /* script */, |
| 1086 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1087 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 8d770e49 | 2011-10-11 04:54:31 | [diff] [blame] | 1088 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet, |
| 1089 | PP_Instance /* instance */, |
| 1090 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 1091 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, |
| 1092 | PP_Instance /* instance */, |
| 1093 | PP_Bool /* fullscreen */, |
| 1094 | PP_Bool /* result */) |
| 1095 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, |
| 1096 | PP_Instance /* instance */, |
| 1097 | PP_Bool /* result */, |
| 1098 | PP_Size /* size */) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 1099 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
| 1100 | PP_Instance /* instance */, |
| 1101 | bool /* is_filtering */, |
| 1102 | uint32_t /* event_classes */) |
| 1103 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
| 1104 | PP_Instance /* instance */, |
| 1105 | uint32_t /* event_classes */) |
[email protected] | 55a5a52 | 2011-07-06 22:52:40 | [diff] [blame] | 1106 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, |
| 1107 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1108 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1109 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, |
| 1110 | PP_Instance /* instance */) |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 1111 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, |
| 1112 | PP_Instance /* instance */) |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 1113 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, |
| 1114 | PP_Instance /* instance */, |
| 1115 | ppapi::proxy::SerializedVar /* relative */, |
| 1116 | ppapi::proxy::SerializedVar /* result */) |
| 1117 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest, |
| 1118 | PP_Instance /* instance */, |
| 1119 | ppapi::proxy::SerializedVar /* relative */, |
| 1120 | PP_Bool /* result */) |
| 1121 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument, |
| 1122 | PP_Instance /* active */, |
| 1123 | PP_Instance /* target */, |
| 1124 | PP_Bool /* result */) |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 1125 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL, |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 1126 | PP_Instance /* active */, |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 1127 | PP_URLComponents_Dev /* components */, |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 1128 | ppapi::proxy::SerializedVar /* result */) |
| 1129 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL, |
| 1130 | PP_Instance /* active */, |
| 1131 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | f5a1402 | 2013-09-07 15:47:40 | [diff] [blame] | 1132 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginReferrerURL, |
| 1133 | PP_Instance /* instance */, |
| 1134 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 33ec5056 | 2012-04-08 20:28:43 | [diff] [blame] | 1135 | IPC_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] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1140 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1141 | PP_Instance /* instance */, |
| 1142 | PP_TextInput_Type /* type */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1143 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1144 | PP_Instance /* instance */, |
| 1145 | PP_Rect /* caret */, |
| 1146 | PP_Rect /* bounding_box */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1147 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1148 | PP_Instance /* instance */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1149 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText, |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 1150 | PP_Instance /* instance */, |
| 1151 | std::string /* text */, |
| 1152 | uint32_t /* caret */, |
| 1153 | uint32_t /* anchor */) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1154 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1155 | // PPB_Var. |
[email protected] | 154eca1 | 2014-07-14 23:55:37 | [diff] [blame] | 1156 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVar_AddRefObject, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1157 | int64_t /* object_id */) |
| 1158 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, int64_t /* object_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1159 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1160 | ppapi::proxy::SerializedVar /* object */, |
| 1161 | ppapi::proxy::SerializedVar /* property */, |
| 1162 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1163 | PP_Bool /* result */) |
| 1164 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1165 | ppapi::proxy::SerializedVar /* object */, |
| 1166 | ppapi::proxy::SerializedVar /* method */, |
| 1167 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1168 | PP_Bool /* result */) |
| 1169 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1170 | ppapi::proxy::SerializedVar /* object */, |
| 1171 | ppapi::proxy::SerializedVar /* property */, |
| 1172 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1173 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1174 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1175 | ppapi::proxy::SerializedVar /* object */, |
| 1176 | ppapi::proxy::SerializedVar /* property */, |
| 1177 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1178 | PP_Bool /* result */) |
| 1179 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1180 | ppapi::proxy::SerializedVar /* object */, |
| 1181 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 1182 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1183 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1184 | ppapi::proxy::SerializedVar /* object */, |
| 1185 | ppapi::proxy::SerializedVar /* name */, |
| 1186 | ppapi::proxy::SerializedVar /* value */, |
| 1187 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1188 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1189 | 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] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1194 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1195 | ppapi::proxy::SerializedVar /* object */, |
| 1196 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1197 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1198 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1199 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1200 | ppapi::proxy::SerializedVar /* var */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1201 | int64_t /* object_class */, |
| 1202 | int64_t /* object-data */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1203 | PP_Bool /* result */) |
| 1204 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 1205 | PP_Instance /* instance */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1206 | int64_t /* object_class */, |
| 1207 | int64_t /* object_data */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1208 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 6239d34 | 2011-05-06 22:55:47 | [diff] [blame] | 1209 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1210 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1211 | // PPB_Broker. |
| 1212 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, |
| 1213 | PP_Instance /* instance */, |
| 1214 | ppapi::HostResource /* result_resource */) |
| 1215 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, |
| 1216 | ppapi::HostResource /* broker */) |
| 1217 | |
| 1218 | // PPB_Buffer. |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1219 | IPC_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] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1225 | |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 1226 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1227 | |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1228 | // PPB_Testing. |
| 1229 | IPC_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 */) |
| 1235 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1236 | PP_Instance /* instance */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1237 | uint32_t /* result */) |
tommycli | ee0a49b | 2015-05-05 19:40:49 | [diff] [blame] | 1238 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBTesting_PostPowerSaverStatus, |
| 1239 | PP_Instance /* instance */) |
| 1240 | IPC_SYNC_MESSAGE_ROUTED1_0( |
| 1241 | PpapiHostMsg_PPBTesting_SubscribeToPowerSaverNotifications, |
| 1242 | PP_Instance /* instance */) |
dmichael | edf95fc8 | 2014-11-11 00:55:46 | [diff] [blame] | 1243 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, |
| 1244 | PP_Instance /* instance */, |
| 1245 | ppapi::InputEventData /* input_event */) |
[email protected] | 38f428f1 | 2013-04-19 14:46:05 | [diff] [blame] | 1246 | IPC_SYNC_MESSAGE_ROUTED1_0( |
| 1247 | PpapiHostMsg_PPBTesting_SetMinimumArrayBufferSizeForShmem, |
| 1248 | uint32_t /* threshold */) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1249 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1250 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1251 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 1252 | // PPB_VideoDecoder_Dev. |
| 1253 | // (Messages from plugin to renderer.) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1254 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, |
| 1255 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1256 | ppapi::HostResource /* context */, |
[email protected] | 2ffc31a | 2011-09-01 03:18:28 | [diff] [blame] | 1257 | PP_VideoDecoder_Profile /* profile */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1258 | ppapi::HostResource /* result */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1259 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1260 | ppapi::HostResource /* video_decoder */, |
| 1261 | ppapi::HostResource /* bitstream buffer */, |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 1262 | int32_t /* bitstream buffer id */, |
| 1263 | uint32_t /* size of buffer */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1264 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1265 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1266 | std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
| 1267 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1268 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1269 | int32_t /* picture buffer id */) |
| 1270 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1271 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1272 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1273 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1274 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1275 | ppapi::HostResource /* video_decoder */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1276 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 1277 | // PPB_VideoDecoder_Dev. |
| 1278 | // (Messages from renderer to plugin to notify it to run callbacks.) |
| 1279 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
| 1280 | ppapi::HostResource /* video_decoder */, |
| 1281 | int32_t /* bitstream buffer id */, |
| 1282 | int32_t /* PP_CompletionCallback result */) |
| 1283 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, |
| 1284 | ppapi::HostResource /* video_decoder */, |
| 1285 | int32_t /* PP_CompletionCallback result */) |
| 1286 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, |
| 1287 | ppapi::HostResource /* video_decoder */, |
| 1288 | int32_t /* PP_CompletionCallback result */) |
| 1289 | |
| 1290 | // PPP_VideoDecoder_Dev. |
| 1291 | IPC_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 */) |
| 1296 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, |
| 1297 | ppapi::HostResource /* video_decoder */, |
| 1298 | int32_t /* picture buffer id */) |
| 1299 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady, |
| 1300 | ppapi::HostResource /* video_decoder */, |
| 1301 | PP_Picture_Dev /* output picture */) |
| 1302 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError, |
| 1303 | ppapi::HostResource /* video_decoder */, |
| 1304 | PP_VideoDecodeError_Dev /* error */) |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1305 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1306 | |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 1307 | // PPB_X509Certificate_Private |
| 1308 | IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, |
| 1309 | std::vector<char> /* der */, |
| 1310 | bool /* succeeded */, |
| 1311 | ppapi::PPB_X509Certificate_Fields /* result */) |
| 1312 | |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1313 | //----------------------------------------------------------------------------- |
| 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. |
| 1325 | IPC_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. |
| 1331 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed, |
| 1332 | PP_Resource /* resource */) |
| 1333 | |
[email protected] | db70c13 | 2012-12-05 00:41:20 | [diff] [blame] | 1334 | // 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). |
| 1344 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost, |
| 1345 | PP_Resource /* resource */, |
| 1346 | int /* pending_host_id */) |
| 1347 | |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1348 | // 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. |
| 1351 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall, |
| 1352 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1353 | IPC::Message /* nested_msg */) |
[email protected] | 0d586af | 2013-07-31 21:58:06 | [diff] [blame] | 1354 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_InProcessResourceCall, |
| 1355 | int /* routing_id */, |
| 1356 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1357 | IPC::Message /* nested_msg */) |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1358 | |
| 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. |
| 1362 | IPC_MESSAGE_CONTROL2( |
| 1363 | PpapiPluginMsg_ResourceReply, |
| 1364 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1365 | IPC::Message /* nested_msg */) |
[email protected] | 0d586af | 2013-07-31 21:58:06 | [diff] [blame] | 1366 | IPC_MESSAGE_ROUTED2( |
| 1367 | PpapiHostMsg_InProcessResourceReply, |
| 1368 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1369 | IPC::Message /* nested_msg */) |
| 1370 | |
[email protected] | ff44fc1 | 2012-10-03 00:52:16 | [diff] [blame] | 1371 | IPC_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] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1377 | // This message is sent from the renderer to the browser when it wants to create |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1378 | // ResourceHosts in the browser. It contains the process ID of the plugin and |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1379 | // 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] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1381 | // The nested messages are ResourceHost creation messages. |
[email protected] | 44dc236 | 2013-07-09 23:41:53 | [diff] [blame] | 1382 | IPC_MESSAGE_CONTROL5( |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1383 | PpapiHostMsg_CreateResourceHostsFromHost, |
[email protected] | 44dc236 | 2013-07-09 23:41:53 | [diff] [blame] | 1384 | int /* routing_id */, |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1385 | int /* child_process_id */, |
| 1386 | ppapi::proxy::ResourceMessageCallParams /* params */, |
| 1387 | PP_Instance /* instance */, |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1388 | std::vector<IPC::Message> /* nested_msgs */) |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1389 | |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1390 | // 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] | 44dc236 | 2013-07-09 23:41:53 | [diff] [blame] | 1395 | IPC_MESSAGE_ROUTED2( |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1396 | PpapiHostMsg_CreateResourceHostsFromHostReply, |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1397 | int32_t /* sequence */, |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1398 | std::vector<int> /* pending_host_ids */) |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1399 | |
[email protected] | eccf8031 | 2012-07-14 15:43:42 | [diff] [blame] | 1400 | //----------------------------------------------------------------------------- |
| 1401 | // Messages for resources using call/reply above. |
| 1402 | |
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 1403 | // Broker ---------------------------------------------------------------------- |
| 1404 | IPC_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. |
| 1409 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) |
| 1410 | |
[email protected] | 4564949 | 2014-01-24 20:49:34 | [diff] [blame] | 1411 | // UMA |
| 1412 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_Create) |
| 1413 | IPC_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 */) |
| 1419 | IPC_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 */) |
| 1425 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, |
| 1426 | std::string /* name */, |
| 1427 | int32_t /* sample */, |
| 1428 | int32_t /* boundary_value */) |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1429 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled) |
| 1430 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply) |
[email protected] | 4564949 | 2014-01-24 20:49:34 | [diff] [blame] | 1431 | |
[email protected] | eccf8031 | 2012-07-14 15:43:42 | [diff] [blame] | 1432 | // File chooser. |
| 1433 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1434 | IPC_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 */) |
| 1439 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 1440 | std::vector<ppapi::FileRefCreateInfo> /* files */) |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1441 | |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1442 | // FileIO |
| 1443 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) |
| 1444 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, |
| 1445 | PP_Resource /* file_ref_resource */, |
| 1446 | int32_t /* open_flags */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1447 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply, |
| 1448 | PP_Resource /* quota_file_system */, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1449 | int64_t /* file_size */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1450 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1451 | ppapi::FileGrowth /* file_growth */) |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1452 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, |
| 1453 | PP_Time /* last_access_time */, |
| 1454 | PP_Time /* last_modified_time */) |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1455 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, |
| 1456 | int64_t /* length */) |
| 1457 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) |
[email protected] | 8f96cef | 2013-04-01 16:51:13 | [diff] [blame] | 1458 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) |
| 1459 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1460 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) |
| 1461 | |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1462 | // FileRef |
[email protected] | 7d63439 | 2013-07-22 21:03:21 | [diff] [blame] | 1463 | // Creates a FileRef to a path on an external file system. This message may |
| 1464 | // only be sent from the renderer. |
[email protected] | 2e0ec62 | 2014-04-11 07:18:32 | [diff] [blame] | 1465 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS, |
[email protected] | 7d63439 | 2013-07-22 21:03:21 | [diff] [blame] | 1466 | base::FilePath /* external_path */) |
| 1467 | |
[email protected] | 2e0ec62 | 2014-04-11 07:18:32 | [diff] [blame] | 1468 | // 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. |
| 1470 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI, |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1471 | 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. |
| 1476 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_MakeDirectory, |
[email protected] | 491af3c | 2014-01-10 11:34:12 | [diff] [blame] | 1477 | int32_t /* make_directory_flags */) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1478 | IPC_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. |
| 1482 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_Touch, |
| 1483 | PP_Time /* last_accessed */, |
| 1484 | PP_Time /* last_modified */) |
| 1485 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_TouchReply) |
| 1486 | |
| 1487 | // Requests that the browser delete a file or directory at the location |
| 1488 | // indicated by the FileRef. |
| 1489 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Delete) |
| 1490 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_DeleteReply) |
| 1491 | |
| 1492 | // Requests that the browser rename a file or directory at the location |
| 1493 | // indicated by the FileRef. |
| 1494 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_Rename, |
| 1495 | PP_Resource /* new_file_ref */) |
| 1496 | IPC_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. |
| 1500 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Query) |
| 1501 | IPC_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. |
| 1506 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries) |
| 1507 | |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 1508 | // FileRefCreateInfo does not provide file type information, so two |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1509 | // corresponding vectors are returned. |
| 1510 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply, |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 1511 | std::vector<ppapi::FileRefCreateInfo> /* files */, |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1512 | std::vector<PP_FileType> /* file_types */) |
| 1513 | |
| 1514 | // Requests that the browser reply with the absolute path to the indicated |
| 1515 | // file. |
| 1516 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_GetAbsolutePath) |
| 1517 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_GetAbsolutePathReply, |
| 1518 | std::string /* absolute_path */) |
| 1519 | |
[email protected] | ef9225f | 2013-04-12 20:28:14 | [diff] [blame] | 1520 | // FileSystem |
| 1521 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create, |
| 1522 | PP_FileSystemType /* type */) |
| 1523 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open, |
| 1524 | int64_t /* expected_size */) |
| 1525 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply) |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 1526 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_InitIsolatedFileSystem, |
| 1527 | std::string /* fsid */, |
| 1528 | PP_IsolatedFileSystemType_Private /* type */) |
[email protected] | d6e3c79 | 2013-08-26 19:30:27 | [diff] [blame] | 1529 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_InitIsolatedFileSystemReply) |
[email protected] | 17d69d8 | 2013-10-31 10:59:03 | [diff] [blame] | 1530 | // Passed from renderer to browser. Creates an already-open file system with a |
| 1531 | // given |root_url| and |file_system_type|. |
| 1532 | IPC_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. |
| 1538 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost, |
| 1539 | PP_FileSystemType /* file_system_type */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1540 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota, |
| 1541 | int64_t /* amount */, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1542 | ppapi::FileGrowthMap /* file_growths */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1543 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply, |
| 1544 | int64_t /* amount */, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1545 | ppapi::FileSizeMap /* file_sizes */) |
[email protected] | ef9225f | 2013-04-12 20:28:14 | [diff] [blame] | 1546 | |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1547 | // Gamepad. |
| 1548 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
[email protected] | 00c0d04 | 2012-09-10 07:06:39 | [diff] [blame] | 1549 | |
| 1550 | // Requests that the gamepad host send the shared memory handle to the plugin |
| 1551 | // process. |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1552 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) |
[email protected] | 00c0d04 | 2012-09-10 07:06:39 | [diff] [blame] | 1553 | |
| 1554 | // Reply to a RequestMemory call. This supplies the shared memory handle. The |
| 1555 | // actual handle is passed in the ReplyParams struct. |
| 1556 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) |
| 1557 | |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1558 | |
| 1559 | // Graphics2D, plugin -> host |
| 1560 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create, |
| 1561 | PP_Size /* size */, |
| 1562 | PP_Bool /* is_always_opaque */) |
| 1563 | IPC_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 */) |
| 1568 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, |
| 1569 | bool /* clip_specified */, |
| 1570 | PP_Rect /* clip */, |
| 1571 | PP_Point /* amount */) |
| 1572 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, |
| 1573 | ppapi::HostResource /* image_data */) |
[email protected] | bd51beb | 2014-04-03 00:39:47 | [diff] [blame] | 1574 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale, |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1575 | float /* scale */) |
alessandroa | d55efd0 | 2016-04-21 19:35:25 | [diff] [blame] | 1576 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_SetLayerTransform, |
| 1577 | float /* scale */, |
| 1578 | PP_FloatPoint /* translate */) |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1579 | |
| 1580 | // Graphics2D, plugin -> host -> plugin |
miletus | 12dae55 | 2015-07-27 19:42:15 | [diff] [blame] | 1581 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Graphics2D_Flush) |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1582 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
| 1583 | |
| 1584 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
| 1585 | PP_Resource /* image */, |
| 1586 | PP_Point /* top_left */) |
| 1587 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
| 1588 | |
jchuang | fa1f143 | 2015-02-20 08:22:30 | [diff] [blame] | 1589 | // CameraDevice ---------------------------------------------------------------- |
| 1590 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_CameraDevice_Create) |
| 1591 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_CameraDevice_Close) |
jchuang | add2f05 | 2015-02-17 10:10:50 | [diff] [blame] | 1592 | |
jchuang | fa1f143 | 2015-02-20 08:22:30 | [diff] [blame] | 1593 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_CameraDevice_Open, |
jchuang | add2f05 | 2015-02-17 10:10:50 | [diff] [blame] | 1594 | std::string /* camera_source_id */) |
jchuang | fa1f143 | 2015-02-20 08:22:30 | [diff] [blame] | 1595 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_CameraDevice_OpenReply) |
jchuang | add2f05 | 2015-02-17 10:10:50 | [diff] [blame] | 1596 | |
jchuang | 512b0a0d | 2015-02-20 03:42:49 | [diff] [blame] | 1597 | IPC_MESSAGE_CONTROL0( |
jchuang | fa1f143 | 2015-02-20 08:22:30 | [diff] [blame] | 1598 | PpapiHostMsg_CameraDevice_GetSupportedVideoCaptureFormats) |
jchuang | 512b0a0d | 2015-02-20 03:42:49 | [diff] [blame] | 1599 | IPC_MESSAGE_CONTROL1( |
jchuang | fa1f143 | 2015-02-20 08:22:30 | [diff] [blame] | 1600 | PpapiPluginMsg_CameraDevice_GetSupportedVideoCaptureFormatsReply, |
jchuang | 512b0a0d | 2015-02-20 03:42:49 | [diff] [blame] | 1601 | std::vector<PP_VideoCaptureFormat> /* video_capture_formats */) |
jchuang | add2f05 | 2015-02-17 10:10:50 | [diff] [blame] | 1602 | |
| 1603 | // IsolatedFileSystem ---------------------------------------------------------- |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 1604 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create) |
| 1605 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen, |
| 1606 | PP_IsolatedFileSystemType_Private /* type */) |
| 1607 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply, |
| 1608 | std::string /* fsid */) |
| 1609 | |
[email protected] | 03bf382f | 2014-01-16 05:49:50 | [diff] [blame] | 1610 | // MediaStream ----------------------------------------------------------------- |
[email protected] | 2b7a6d3 | 2014-02-06 02:50:23 | [diff] [blame] | 1611 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamAudioTrack_CreateFromPendingHost, |
| 1612 | std::string /* track_id */) |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 1613 | IPC_MESSAGE_CONTROL1( |
| 1614 | PpapiHostMsg_MediaStreamAudioTrack_Configure, |
| 1615 | ppapi::MediaStreamAudioTrackShared::Attributes /* attributes */) |
| 1616 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_MediaStreamAudioTrack_ConfigureReply) |
[email protected] | 03bf382f | 2014-01-16 05:49:50 | [diff] [blame] | 1617 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_CreateFromPendingHost, |
| 1618 | std::string /* track_id */) |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1619 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamVideoTrack_Create) |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 1620 | IPC_MESSAGE_CONTROL1( |
| 1621 | PpapiHostMsg_MediaStreamVideoTrack_Configure, |
| 1622 | ppapi::MediaStreamVideoTrackShared::Attributes /* attributes */) |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1623 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_ConfigureReply, |
| 1624 | std::string /* track_id */) |
[email protected] | 2b7a6d3 | 2014-02-06 02:50:23 | [diff] [blame] | 1625 | |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1626 | // Message for init buffers. It also takes a shared memory handle which is put |
| 1627 | // in the outer ResourceReplyMessage. |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1628 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_MediaStreamTrack_InitBuffers, |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1629 | int32_t /* number_of_buffers */, |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1630 | int32_t /* buffer_size */, |
| 1631 | bool /* readonly */) |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1632 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffer, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1633 | int32_t /* index */) |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1634 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_MediaStreamTrack_EnqueueBuffer, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1635 | int32_t /* index */) |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1636 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffers, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1637 | std::vector<int32_t> /* indices */) |
[email protected] | 03bf382f | 2014-01-16 05:49:50 | [diff] [blame] | 1638 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamTrack_Close) |
| 1639 | |
[email protected] | 07d0a6bf | 2013-09-17 04:15:10 | [diff] [blame] | 1640 | // NetworkMonitor. |
| 1641 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create) |
| 1642 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList, |
| 1643 | ppapi::proxy::SerializedNetworkList /* network_list */) |
| 1644 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden) |
| 1645 | |
[email protected] | 226dea4 | 2013-06-24 21:05:36 | [diff] [blame] | 1646 | // NetworkProxy ---------------------------------------------------------------- |
| 1647 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create) |
| 1648 | |
| 1649 | // Query the browser for the proxy server to use for the given URL. |
| 1650 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL, |
| 1651 | std::string /* url */) |
| 1652 | |
| 1653 | // Reply message for GetProxyForURL containing the proxy server. |
| 1654 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply, |
| 1655 | std::string /* proxy */) |
| 1656 | |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 1657 | // TrueTypeFont. |
| 1658 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create) |
| 1659 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies) |
| 1660 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply, |
| 1661 | std::vector<std::string> /* font_families */) |
[email protected] | 720e1e62 | 2013-04-19 03:50:35 | [diff] [blame] | 1662 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily, |
| 1663 | std::string /* family */) |
| 1664 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply, |
| 1665 | std::vector<ppapi::proxy::SerializedTrueTypeFontDesc> |
| 1666 | /* fonts */) |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 1667 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create, |
| 1668 | ppapi::proxy::SerializedTrueTypeFontDesc /* desc */) |
[email protected] | c0ec8161 | 2014-06-26 21:28:18 | [diff] [blame] | 1669 | // Unsolicited reply to return the actual font's desc to the plugin. |
| 1670 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TrueTypeFont_CreateReply, |
| 1671 | ppapi::proxy::SerializedTrueTypeFontDesc /* desc */, |
| 1672 | int32_t /* result */) |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 1673 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags) |
| 1674 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply, |
| 1675 | std::vector<uint32_t> /* tags */) |
| 1676 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable, |
| 1677 | uint32_t /* table */, |
| 1678 | int32_t /* offset */, |
| 1679 | int32_t /* max_data_length */) |
| 1680 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply, |
| 1681 | std::string /* data */) |
| 1682 | |
[email protected] | f31e55c | 2013-06-20 08:44:37 | [diff] [blame] | 1683 | // Host Resolver --------------------------------------------------------------- |
| 1684 | // Creates a PPB_HostResolver resource. |
| 1685 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_Create) |
| 1686 | |
| 1687 | // Creates a PPB_HostResolver_Private resource. |
| 1688 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_CreatePrivate) |
| 1689 | |
| 1690 | // Resolves the given hostname. |
| 1691 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolver_Resolve, |
[email protected] | 6a68537 | 2013-02-12 12:50:46 | [diff] [blame] | 1692 | ppapi::HostPortPair /* host_port */, |
| 1693 | PP_HostResolver_Private_Hint /* hint */) |
[email protected] | f31e55c | 2013-06-20 08:44:37 | [diff] [blame] | 1694 | |
| 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. |
| 1698 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, |
[email protected] | 6a68537 | 2013-02-12 12:50:46 | [diff] [blame] | 1699 | std::string /* canonical_name */, |
| 1700 | std::vector<PP_NetAddress_Private> /* net_address_list */) |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1701 | |
[email protected] | e9cb0b79 | 2012-09-07 07:11:06 | [diff] [blame] | 1702 | // Printing. |
| 1703 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
| 1704 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
| 1705 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
| 1706 | PP_PrintSettings_Dev /* print_settings */) |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1707 | |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1708 | // TCP Socket ------------------------------------------------------------------ |
| 1709 | // Creates a PPB_TCPSocket resource. |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 1710 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Create, |
| 1711 | ppapi::TCPSocketVersion /* version */) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1712 | |
| 1713 | // Creates a PPB_TCPSocket_Private resource. |
| 1714 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate) |
| 1715 | |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 1716 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Bind, |
| 1717 | PP_NetAddress_Private /* net_addr */) |
| 1718 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_BindReply, |
| 1719 | PP_NetAddress_Private /* local_addr */) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1720 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect, |
| 1721 | std::string /* host */, |
| 1722 | uint16_t /* port */) |
| 1723 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress, |
| 1724 | PP_NetAddress_Private /* net_addr */) |
| 1725 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply, |
| 1726 | PP_NetAddress_Private /* local_addr */, |
| 1727 | PP_NetAddress_Private /* remote_addr */) |
| 1728 | IPC_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 */) |
| 1733 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply, |
| 1734 | ppapi::PPB_X509Certificate_Fields /* certificate_fields */) |
| 1735 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read, |
| 1736 | int32_t /* bytes_to_read */) |
| 1737 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply, |
| 1738 | std::string /* data */) |
| 1739 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write, |
| 1740 | std::string /* data */) |
| 1741 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply) |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 1742 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Listen, |
| 1743 | int32_t /* backlog */) |
| 1744 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_ListenReply) |
| 1745 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Accept) |
| 1746 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPSocket_AcceptReply, |
| 1747 | int /* pending_host_id*/, |
| 1748 | PP_NetAddress_Private /* local_addr */, |
| 1749 | PP_NetAddress_Private /* remote_addr */) |
| 1750 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Close) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1751 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption, |
| 1752 | PP_TCPSocket_Option /* name */, |
| 1753 | ppapi::SocketOptionData /* value */) |
| 1754 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply) |
| 1755 | |
[email protected] | 1f9ed19 | 2013-08-05 11:59:42 | [diff] [blame] | 1756 | // TCP Server Socket ----------------------------------------------------------- |
| 1757 | // Creates a PPB_TCPServerSocket_Private resource. |
| 1758 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) |
| 1759 | |
| 1760 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, |
| 1761 | PP_NetAddress_Private /* addr */, |
| 1762 | int32_t /* backlog */) |
| 1763 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, |
| 1764 | PP_NetAddress_Private /* local_addr */) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1765 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept) |
[email protected] | 1f9ed19 | 2013-08-05 11:59:42 | [diff] [blame] | 1766 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1767 | int /* pending_resource_id */, |
[email protected] | 1f9ed19 | 2013-08-05 11:59:42 | [diff] [blame] | 1768 | PP_NetAddress_Private /* local_addr */, |
| 1769 | PP_NetAddress_Private /* remote_addr */) |
| 1770 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) |
| 1771 | |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1772 | // UDP Socket ------------------------------------------------------------------ |
| 1773 | // Creates a PPB_UDPSocket resource. |
| 1774 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) |
| 1775 | |
| 1776 | // Creates a PPB_UDPSocket_Private resource. |
| 1777 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) |
| 1778 | |
| 1779 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, |
[email protected] | 8de1329 | 2013-06-24 06:04:39 | [diff] [blame] | 1780 | PP_UDPSocket_Option /* name */, |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1781 | ppapi::SocketOptionData /* value */) |
| 1782 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply) |
| 1783 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind, |
| 1784 | PP_NetAddress_Private /* net_addr */) |
| 1785 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply, |
| 1786 | PP_NetAddress_Private /* bound_addr */) |
yzshen | 024dba2f | 2014-09-17 00:19:01 | [diff] [blame] | 1787 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_UDPSocket_PushRecvResult, |
| 1788 | int32_t /* result */, |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1789 | std::string /* data */, |
| 1790 | PP_NetAddress_Private /* remote_addr */) |
yzshen | 024dba2f | 2014-09-17 00:19:01 | [diff] [blame] | 1791 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_RecvSlotAvailable) |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1792 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo, |
| 1793 | std::string /* data */, |
| 1794 | PP_NetAddress_Private /* net_addr */) |
| 1795 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply, |
| 1796 | int32_t /* bytes_written */) |
| 1797 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close) |
eduardo.lima | 8171d46 | 2015-03-13 15:40:21 | [diff] [blame] | 1798 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_JoinGroup, |
| 1799 | PP_NetAddress_Private /* net_addr */) |
| 1800 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_JoinGroupReply) |
| 1801 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_LeaveGroup, |
| 1802 | PP_NetAddress_Private /* net_addr */) |
| 1803 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_LeaveGroupReply) |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1804 | |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 1805 | // URLLoader ------------------------------------------------------------------ |
| 1806 | |
| 1807 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create) |
| 1808 | |
| 1809 | // These messages correspond to PPAPI calls and all should get a |
| 1810 | // CallbackComplete message. |
| 1811 | IPC_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). |
| 1824 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading, |
| 1825 | bool /* defers_loading */) |
| 1826 | |
| 1827 | // Closes the URLLoader. There is no reply. |
| 1828 | IPC_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. |
| 1833 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess) |
| 1834 | |
| 1835 | // Push notification that a response is available. |
| 1836 | IPC_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. |
| 1842 | IPC_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. |
| 1847 | IPC_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. |
| 1854 | IPC_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] | 30e1cb75 | 2013-03-19 20:42:33 | [diff] [blame] | 1860 | // Shared memory --------------------------------------------------------------- |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 1861 | |
[email protected] | 30e1cb75 | 2013-03-19 20:42:33 | [diff] [blame] | 1862 | // 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(). |
| 1866 | IPC_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 | |
brucedawson | cd71d45 | 2016-07-07 00:12:13 | [diff] [blame] | 1872 | // VpnProvider ---------------------------------------------------------------- |
| 1873 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VpnProvider_Create) |
| 1874 | |
| 1875 | // VpnProvider plugin -> host -> plugin |
| 1876 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VpnProvider_Bind, |
| 1877 | std::string /* configuration_id */, |
| 1878 | std::string /* configuration_name */) |
| 1879 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VpnProvider_BindReply, |
| 1880 | uint32_t /* queue_size */, |
| 1881 | uint32_t /* max_packet_size */, |
| 1882 | int32_t /* status */) |
| 1883 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VpnProvider_SendPacket, |
| 1884 | uint32_t /* packet_size */, |
| 1885 | uint32_t /* id */) |
| 1886 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VpnProvider_SendPacketReply, |
| 1887 | uint32_t /* id */) |
| 1888 | |
| 1889 | // VpnProvider host -> plugin |
| 1890 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VpnProvider_OnUnbind) |
| 1891 | |
| 1892 | // VpnProvider host -> plugin -> host |
| 1893 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VpnProvider_OnPacketReceived, |
| 1894 | uint32_t /* packet_size */, |
| 1895 | uint32_t /* id */) |
| 1896 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VpnProvider_OnPacketReceivedReply, |
| 1897 | uint32_t /* id */) |
| 1898 | |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 1899 | // WebSocket ------------------------------------------------------------------- |
| 1900 | |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1901 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
| 1902 | |
| 1903 | // Establishes the connection to a server. This message requires |
| 1904 | // WebSocket_ConnectReply as a reply message. |
| 1905 | IPC_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. |
| 1911 | IPC_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. |
| 1916 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText, |
| 1917 | std::string /* message */) |
| 1918 | |
| 1919 | // Sends a binary frame to the server. No reply is defined. |
| 1920 | IPC_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. |
| 1925 | IPC_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. |
| 1935 | IPC_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. |
| 1944 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1945 | uint64_t /* buffered_amount */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1946 | bool /* was_clean */, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1947 | uint16_t /* code */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1948 | std::string /* reason */) |
| 1949 | |
| 1950 | // Unsolicited reply message to transmit a receiving text frame. |
| 1951 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply, |
| 1952 | std::string /* message */) |
| 1953 | |
| 1954 | // Unsolicited reply message to transmit a receiving binary frame. |
| 1955 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply, |
| 1956 | std::vector<uint8_t> /* message */) |
| 1957 | |
| 1958 | // Unsolicited reply message to notify a error on underlying network connetion. |
| 1959 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply) |
| 1960 | |
| 1961 | // Unsolicited reply message to update the buffered amount value. |
| 1962 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1963 | uint64_t /* buffered_amount */) |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1964 | |
| 1965 | // Unsolicited reply message to update |state| because of incoming external |
| 1966 | // events, e.g., protocol error, or unexpected network closure. |
| 1967 | IPC_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. |
| 1973 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1974 | uint64_t /* buffered_amount */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1975 | bool /* was_clean */, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1976 | uint16_t /* code */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1977 | std::string /* reason */) |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 1978 | |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 1979 | // VideoDecoder ------------------------------------------------------ |
| 1980 | |
| 1981 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create) |
lpique | 9dd55e54 | 2015-08-20 01:06:53 | [diff] [blame] | 1982 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_VideoDecoder_Initialize, |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 1983 | ppapi::HostResource /* graphics_context */, |
| 1984 | PP_VideoProfile /* profile */, |
lpique | 9dd55e54 | 2015-08-20 01:06:53 | [diff] [blame] | 1985 | PP_HardwareAcceleration /* acceleration */, |
| 1986 | uint32_t /* min_picture_count */) |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 1987 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply) |
| 1988 | IPC_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. |
| 1992 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply, |
| 1993 | uint32_t /* shm_size */) |
| 1994 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Decode, |
| 1995 | uint32_t /* shm_id */, |
| 1996 | uint32_t /* size */, |
| 1997 | int32_t /* decode_id */) |
| 1998 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply, |
| 1999 | uint32_t /* shm_id */) |
Antoine Labour | 04cb3b2 | 2018-06-01 23:25:10 | [diff] [blame] | 2000 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_RequestTextures, |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 2001 | uint32_t /* num_textures */, |
| 2002 | PP_Size /* size */, |
Antoine Labour | 04cb3b2 | 2018-06-01 23:25:10 | [diff] [blame] | 2003 | uint32_t /* texture_target */) |
| 2004 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_AssignTextures, |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 2005 | PP_Size /* size */, |
Antoine Labour | 04cb3b2 | 2018-06-01 23:25:10 | [diff] [blame] | 2006 | std::vector<uint32_t> /* texture_ids */, |
| 2007 | std::vector<gpu::Mailbox> /* mailboxes */) |
Bill Budge | 2d4bf3a | 2014-11-06 22:31:21 | [diff] [blame] | 2008 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_PictureReady, |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 2009 | int32_t /* decode_id */, |
Bill Budge | 2d4bf3a | 2014-11-06 22:31:21 | [diff] [blame] | 2010 | uint32_t /* texture_id */, |
| 2011 | PP_Rect /* visible_rect */) |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 2012 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture, |
| 2013 | uint32_t /* texture_id */) |
| 2014 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture, |
| 2015 | uint32_t /* texture_id */) |
| 2016 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush) |
| 2017 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply) |
| 2018 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset) |
| 2019 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) |
| 2020 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, |
| 2021 | int32_t /* error */) |
| 2022 | |
lionel.g.landwerlin | c3f1512 | 2015-02-25 01:20:58 | [diff] [blame] | 2023 | // VideoEncoder ------------------------------------------------------ |
| 2024 | |
| 2025 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Create) |
| 2026 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetSupportedProfiles) |
| 2027 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_GetSupportedProfilesReply, |
| 2028 | std::vector<PP_VideoProfileDescription> /* results */) |
| 2029 | IPC_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 */) |
| 2035 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoEncoder_InitializeReply, |
| 2036 | uint32_t /* input_frame_count */, |
| 2037 | PP_Size /* input_coded_size */) |
| 2038 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_BitstreamBuffers, |
| 2039 | uint32_t /* buffer_length */) |
| 2040 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_GetVideoFrames) |
| 2041 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_GetVideoFramesReply, |
| 2042 | uint32_t /* frame_count */, |
| 2043 | uint32_t /* frame_length */, |
| 2044 | PP_Size /* frame_size */) |
| 2045 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_Encode, |
| 2046 | uint32_t /* frame_id */, |
| 2047 | bool /* force_keyframe */) |
| 2048 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_EncodeReply, |
| 2049 | uint32_t /* frame_id */) |
| 2050 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoEncoder_BitstreamBufferReady, |
| 2051 | uint32_t /* buffer_id */, |
| 2052 | uint32_t /* buffer_size */, |
| 2053 | bool /* key_frame */) |
| 2054 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoEncoder_RecycleBitstreamBuffer, |
| 2055 | uint32_t /* buffer_id */) |
| 2056 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoEncoder_RequestEncodingParametersChange, |
| 2057 | uint32_t /* bitrate */, |
| 2058 | uint32_t /* framerate */) |
| 2059 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoEncoder_NotifyError, |
| 2060 | int32_t /* error */) |
| 2061 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoEncoder_Close) |
| 2062 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 2063 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | a1686e27 | 2012-11-01 23:39:34 | [diff] [blame] | 2064 | |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 2065 | // Audio input. |
| 2066 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 2067 | IPC_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. |
| 2073 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply) |
| 2074 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) |
| 2075 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) |
| 2076 | |
xzhang | 3a2a470 | 2017-04-07 16:34:30 | [diff] [blame] | 2077 | // Audio output. |
| 2078 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioOutput_Create) |
| 2079 | IPC_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. |
| 2085 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioOutput_OpenReply) |
| 2086 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioOutput_StartOrStop, bool /* playback */) |
| 2087 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioOutput_Close) |
| 2088 | |
[email protected] | a6d81c0 | 2012-12-20 21:17:00 | [diff] [blame] | 2089 | // BrowserFont ----------------------------------------------------------------- |
| 2090 | |
| 2091 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_Create) |
| 2092 | |
| 2093 | // Requests that the browser reply with the list of font families via |
| 2094 | // PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply. |
| 2095 | IPC_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. |
| 2100 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply, |
| 2101 | std::string /* families */) |
| 2102 | |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2103 | // Flash ----------------------------------------------------------------------- |
[email protected] | a6d81c0 | 2012-12-20 21:17:00 | [diff] [blame] | 2104 | |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 2105 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2106 | |
| 2107 | // Message to notify the browser to register an update in system activity. |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 2108 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity) |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2109 | |
| 2110 | // Query the browser for the proxy server to use for the given URL. |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 2111 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */) |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2112 | // Reply message for GetProxyForURL containing the proxy server. |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 2113 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply, |
| 2114 | std::string /* proxy */) |
| 2115 | |
[email protected] | c9246538 | 2012-12-17 23:51:21 | [diff] [blame] | 2116 | // Queries the browser for the local time zone offset for a given time. |
| 2117 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset, |
| 2118 | base::Time /* time */) |
| 2119 | // Reply to GetLocalTimeZoneOffset containing the time zone offset as a double. |
| 2120 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply, |
| 2121 | double /* offset */) |
| 2122 | |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2123 | // Query the browser for the restrictions on storing Flash LSOs. |
| 2124 | IPC_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. |
| 2127 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply, |
| 2128 | int32_t /* restrictions */) |
| 2129 | |
[email protected] | 24f40c1 | 2012-12-19 20:17:42 | [diff] [blame] | 2130 | // Notifies the renderer whether the Flash instance is in windowed mode. No |
| 2131 | // reply is sent. |
| 2132 | IPC_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. |
| 2139 | IPC_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. |
| 2145 | IPC_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. |
| 2154 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost, |
| 2155 | PP_Rect /* rect */) |
| 2156 | |
[email protected] | 6a77ef2 | 2012-12-21 23:31:36 | [diff] [blame] | 2157 | // Notifies the renderer to invoke printing for the given plugin instance. No |
| 2158 | // reply is sent. |
| 2159 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_InvokePrinting) |
| 2160 | |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2161 | // DeviceEnumeration ----------------------------------------------------------- |
[email protected] | 4f01c76 | 2012-12-05 02:44:18 | [diff] [blame] | 2162 | // Device enumeration messages used by audio input and video capture. |
| 2163 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices) |
| 2164 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply, |
| 2165 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 2166 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange, |
| 2167 | uint32_t /* callback_id */) |
| 2168 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange) |
| 2169 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange, |
| 2170 | uint32_t /* callback_id */, |
| 2171 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 2172 | |
[email protected] | a1686e27 | 2012-11-01 23:39:34 | [diff] [blame] | 2173 | // Flash clipboard. |
| 2174 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create) |
| 2175 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat, |
| 2176 | std::string /* format_name */) |
| 2177 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply, |
| 2178 | uint32_t /* format */) |
| 2179 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable, |
| 2180 | uint32_t /* clipboard_type */, |
| 2181 | uint32_t /* format */) |
| 2182 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData, |
| 2183 | uint32_t /* clipboard_type */, |
| 2184 | uint32_t /* format */) |
| 2185 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply, |
| 2186 | std::string /* result */) |
| 2187 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData, |
| 2188 | uint32_t /* clipboard_type */, |
| 2189 | std::vector<uint32_t> /* formats */, |
| 2190 | std::vector<std::string> /* data */) |
[email protected] | 3391ebb | 2014-01-28 01:45:33 | [diff] [blame] | 2191 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_GetSequenceNumber, |
| 2192 | uint32_t /* clipboard_type */) |
| 2193 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply, |
| 2194 | uint64_t /* sequence_number */) |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 2195 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 2196 | // Flash DRM. |
| 2197 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create) |
| 2198 | |
| 2199 | // Requests the device ID. |
| 2200 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID) |
| 2201 | // Reply for GetDeviceID which includes the device ID as a string. |
| 2202 | IPC_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. |
| 2207 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetHmonitor) |
| 2208 | // Reply message for GetHmonitor which contains the HMONITOR as an int64_t. |
| 2209 | IPC_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. |
| 2214 | IPC_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. |
| 2217 | IPC_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. |
| 2222 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_MonitorIsExternal) |
| 2223 | // Reply message for MonitorIsExternal which contains the value indicating if |
| 2224 | // the monitor is external. |
| 2225 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_MonitorIsExternalReply, |
| 2226 | PP_Bool /* is_external */) |
| 2227 | |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 2228 | // Flash file. |
| 2229 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create) |
| 2230 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile, |
| 2231 | ppapi::PepperFilePath /* path */, |
[email protected] | 0ef197f | 2013-07-31 05:46:48 | [diff] [blame] | 2232 | int /* pp_open_flags */) |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 2233 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile, |
| 2234 | ppapi::PepperFilePath /* from_path */, |
| 2235 | ppapi::PepperFilePath /* to_path */) |
| 2236 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir, |
| 2237 | ppapi::PepperFilePath /* path */, |
| 2238 | bool /* recursive */) |
| 2239 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir, |
| 2240 | ppapi::PepperFilePath /* path */) |
| 2241 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile, |
| 2242 | ppapi::PepperFilePath /* path */) |
| 2243 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply, |
[email protected] | 141bcc5 | 2014-01-27 21:36:00 | [diff] [blame] | 2244 | base::File::Info /* file_info */) |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 2245 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents, |
| 2246 | ppapi::PepperFilePath /* path */) |
| 2247 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply, |
| 2248 | ppapi::DirContents /* entries */) |
| 2249 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile) |
| 2250 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 2251 | // Flash font file. |
| 2252 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, |
| 2253 | ppapi::proxy::SerializedFontDescription /* description */, |
| 2254 | PP_PrivateFontCharset /* charset */) |
| 2255 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, |
| 2256 | uint32_t /* table */) |
| 2257 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, |
| 2258 | std::string /* output */) |
[email protected] | 11d0c36 | 2012-10-11 02:02:11 | [diff] [blame] | 2259 | |
[email protected] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 2260 | // Flash fullscreen. |
| 2261 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create) |
| 2262 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen, |
| 2263 | bool /* fullscreen */) |
| 2264 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 2265 | // FlashMenu. |
[email protected] | 97f5813 | 2012-11-15 20:41:32 | [diff] [blame] | 2266 | |
| 2267 | // Creates the flash menu with the given data. |
| 2268 | IPC_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. |
| 2272 | IPC_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. |
| 2277 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply, |
| 2278 | int32_t /* selected_id */) |
| 2279 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 2280 | // PPB_Flash_MessageLoop. |
| 2281 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, |
| 2282 | PP_Instance /* instance */, |
| 2283 | ppapi::HostResource /* result */) |
| 2284 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, |
| 2285 | ppapi::HostResource /* flash_message_loop */, |
| 2286 | int32_t /* result */) |
| 2287 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, |
| 2288 | ppapi::HostResource /* flash_message_loop */) |
| 2289 | |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2290 | // PDF ------------------------------------------------------------------------ |
| 2291 | |
| 2292 | // Creates the PDF resource. |
| 2293 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create) |
| 2294 | |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2295 | // Notifies the renderer that the PDF started loading. |
| 2296 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading) |
| 2297 | |
| 2298 | // Notifies the renderer that the PDF stopped loading. |
| 2299 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading) |
| 2300 | |
| 2301 | // Sets any restrictions on the PDF content. |
| 2302 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetContentRestriction, |
| 2303 | int /* restrictions */) |
| 2304 | |
| 2305 | // Requests that the specified action be recorded with UMA. |
| 2306 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_UserMetricsRecordAction, |
| 2307 | std::string /* action */) |
| 2308 | |
| 2309 | // Notifies the renderer that the current PDF uses an unsupported feature. |
| 2310 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature) |
| 2311 | |
| 2312 | // Notifies the renderer to print the current PDF. |
| 2313 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print) |
| 2314 | |
Dan Sinclair | 2e884f7 | 2018-03-26 16:43:05 | [diff] [blame] | 2315 | // Notifies the renderer to display an alert dialog. |
| 2316 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_ShowAlertDialog, |
| 2317 | std::string /* message */) |
| 2318 | // Reply from the renderer that the alert has been acknowledged. |
| 2319 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_PDF_ShowAlertDialogReply) |
| 2320 | |
| 2321 | // Notifies the renderer to display a confirmation dialog. |
| 2322 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_ShowConfirmDialog, |
| 2323 | std::string /* message */) |
| 2324 | // Reply from the renderer with the results of the confirm dialog. |
| 2325 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_ShowConfirmDialogReply, |
| 2326 | bool /* bool result */) |
| 2327 | |
| 2328 | // Notifies the renderer to display a prompt dialog. |
| 2329 | IPC_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. |
| 2333 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_ShowPromptDialogReply, |
| 2334 | std::string /* str_result */) |
| 2335 | |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2336 | // Notifies the renderer to save the current PDF. |
| 2337 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) |
| 2338 | |
[email protected] | 72b1a22 | 2014-01-15 04:26:11 | [diff] [blame] | 2339 | // Called by the plugin when its selection changes. |
| 2340 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText, |
| 2341 | base::string16 /* selected_text */) |
| 2342 | |
[email protected] | 5eda9629 | 2014-02-03 06:55:14 | [diff] [blame] | 2343 | // Called by the plugin to set the link under the cursor. |
| 2344 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor, |
| 2345 | std::string /* url */) |
| 2346 | |
dmazzoni | c3547a3 | 2016-06-02 05:47:15 | [diff] [blame] | 2347 | // Called by the plugin to describe the viewport for accessibility support. |
| 2348 | IPC_MESSAGE_CONTROL1( |
| 2349 | PpapiHostMsg_PDF_SetAccessibilityViewportInfo, |
| 2350 | PP_PrivateAccessibilityViewportInfo /* viewport_info */) |
| 2351 | |
| 2352 | // Send information about the whole document for accessibility support. |
| 2353 | IPC_MESSAGE_CONTROL1( |
| 2354 | PpapiHostMsg_PDF_SetAccessibilityDocInfo, |
| 2355 | PP_PrivateAccessibilityDocInfo /* doc_info */) |
| 2356 | |
| 2357 | // Send information about one page for accessibility support. |
| 2358 | IPC_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 Sinclair | f50e9f3 | 2017-07-25 21:06:41 | [diff] [blame] | 2364 | // Send information about the selection coordinates. |
| 2365 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_PDF_SelectionChanged, |
| 2366 | PP_FloatPoint /* left */, |
| 2367 | int32_t /* left_height */, |
| 2368 | PP_FloatPoint /* right */, |
| 2369 | int32_t /* right_height */) |
| 2370 | |
jchuang | add2f05 | 2015-02-17 10:10:50 | [diff] [blame] | 2371 | // VideoCapture ---------------------------------------------------------------- |
| 2372 | |
[email protected] | cc12387 | 2012-11-16 07:53:08 | [diff] [blame] | 2373 | // VideoCapture_Dev, plugin -> host |
| 2374 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) |
| 2375 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) |
| 2376 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, |
| 2377 | uint32_t /* buffer */) |
| 2378 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) |
| 2379 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) |
| 2380 | |
| 2381 | // VideoCapture_Dev, plugin -> host -> plugin |
[email protected] | cc12387 | 2012-11-16 07:53:08 | [diff] [blame] | 2382 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open, |
| 2383 | std::string /* device_id */, |
| 2384 | PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 2385 | uint32_t /* buffer_count */) |
| 2386 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply) |
| 2387 | |
| 2388 | // VideoCapture_Dev, host -> plugin |
| 2389 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo, |
| 2390 | PP_VideoCaptureDeviceInfo_Dev /* info */, |
| 2391 | std::vector<ppapi::HostResource> /* buffers */, |
| 2392 | uint32_t /* buffer_size */) |
| 2393 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
| 2394 | uint32_t /* status */) |
| 2395 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
| 2396 | uint32_t /* error */) |
| 2397 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
| 2398 | uint32_t /* buffer */) |
| 2399 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 2400 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
Daniel Bratell | bcbca532 | 2017-09-01 10:00:53 | [diff] [blame] | 2401 | |
| 2402 | #endif // PPAPI_PROXY_PPAPI_MESSAGES_H_ |