[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 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 5 | // Multiply-included message header, no traditional include guard. |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 6 | #include <map> |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 7 | #include <string> |
| 8 | #include <vector> |
| 9 | |
| 10 | #include "base/basictypes.h" |
[email protected] | 5799981 | 2013-02-24 05:40:52 | [diff] [blame] | 11 | #include "base/files/file_path.h" |
[email protected] | 8299b71 | 2013-07-17 19:55:23 | [diff] [blame] | 12 | #include "base/memory/shared_memory.h" |
[email protected] | 1575659 | 2013-07-25 14:17:53 | [diff] [blame] | 13 | #include "base/process/process.h" |
[email protected] | 896d161f | 2013-06-11 22:52:24 | [diff] [blame] | 14 | #include "base/strings/string16.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 15 | #include "base/sync_socket.h" |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 16 | #include "gpu/command_buffer/common/command_buffer.h" |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 17 | #include "gpu/command_buffer/common/mailbox.h" |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 18 | #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 19 | #include "ipc/ipc_channel_handle.h" |
| 20 | #include "ipc/ipc_message_macros.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 21 | #include "ipc/ipc_message_utils.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 22 | #include "ipc/ipc_platform_file.h" |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 23 | #include "ppapi/c/dev/pp_video_capture_dev.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 24 | #include "ppapi/c/dev/pp_video_dev.h" |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 25 | #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 26 | #include "ppapi/c/dev/ppb_url_util_dev.h" |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 27 | #include "ppapi/c/dev/ppp_printing_dev.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 28 | #include "ppapi/c/pp_bool.h" |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 29 | #include "ppapi/c/pp_codecs.h" |
[email protected] | ea505a9d | 2011-07-07 18:34:40 | [diff] [blame] | 30 | #include "ppapi/c/pp_file_info.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 31 | #include "ppapi/c/pp_instance.h" |
| 32 | #include "ppapi/c/pp_module.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 33 | #include "ppapi/c/pp_point.h" |
| 34 | #include "ppapi/c/pp_rect.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 35 | #include "ppapi/c/pp_resource.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 36 | #include "ppapi/c/pp_size.h" |
[email protected] | 3b98ced7 | 2012-03-09 02:08:33 | [diff] [blame] | 37 | #include "ppapi/c/pp_time.h" |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 38 | #include "ppapi/c/ppb_audio_config.h" |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 39 | #include "ppapi/c/ppb_compositor_layer.h" |
[email protected] | 38f61e8f | 2013-05-11 19:23:38 | [diff] [blame] | 40 | #include "ppapi/c/ppb_image_data.h" |
[email protected] | b838eea | 2013-06-22 22:17:22 | [diff] [blame] | 41 | #include "ppapi/c/ppb_tcp_socket.h" |
[email protected] | d33b11a | 2013-08-07 09:57:28 | [diff] [blame] | 42 | #include "ppapi/c/ppb_text_input_controller.h" |
[email protected] | 8de1329 | 2013-06-24 06:04:39 | [diff] [blame] | 43 | #include "ppapi/c/ppb_udp_socket.h" |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 44 | #include "ppapi/c/private/pp_content_decryptor.h" |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 45 | #include "ppapi/c/private/pp_private_font_charset.h" |
[email protected] | ea628e3 | 2012-08-02 21:50:16 | [diff] [blame] | 46 | #include "ppapi/c/private/ppb_flash.h" |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 47 | #include "ppapi/c/private/ppb_host_resolver_private.h" |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 48 | #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 49 | #include "ppapi/c/private/ppb_net_address_private.h" |
[email protected] | f5869d8be | 2013-04-06 00:33:10 | [diff] [blame] | 50 | #include "ppapi/c/private/ppb_pdf.h" |
[email protected] | ce97d745 | 2013-06-07 19:02:09 | [diff] [blame] | 51 | #include "ppapi/c/private/ppb_talk_private.h" |
[email protected] | 8299b71 | 2013-07-17 19:55:23 | [diff] [blame] | 52 | #include "ppapi/c/private/ppp_flash_browser_operations.h" |
[email protected] | 6a68537 | 2013-02-12 12:50:46 | [diff] [blame] | 53 | #include "ppapi/proxy/host_resolver_private_resource.h" |
[email protected] | 07d0a6bf | 2013-09-17 04:15:10 | [diff] [blame] | 54 | #include "ppapi/proxy/network_list_resource.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 55 | #include "ppapi/proxy/ppapi_param_traits.h" |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 56 | #include "ppapi/proxy/ppapi_proxy_export.h" |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 57 | #include "ppapi/proxy/resource_message_params.h" |
[email protected] | 7358d57 | 2011-02-15 18:44:40 | [diff] [blame] | 58 | #include "ppapi/proxy/serialized_flash_menu.h" |
[email protected] | eb5960da | 2013-01-16 23:23:53 | [diff] [blame] | 59 | #include "ppapi/proxy/serialized_handle.h" |
[email protected] | fb35dcf | 2010-11-14 17:08:00 | [diff] [blame] | 60 | #include "ppapi/proxy/serialized_structs.h" |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 61 | #include "ppapi/proxy/serialized_var.h" |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 62 | #include "ppapi/shared_impl/compositor_layer_data.h" |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 63 | #include "ppapi/shared_impl/dir_contents.h" |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 64 | #include "ppapi/shared_impl/file_growth.h" |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 65 | #include "ppapi/shared_impl/file_path.h" |
[email protected] | dc000e8 | 2013-06-26 04:10:41 | [diff] [blame] | 66 | #include "ppapi/shared_impl/file_ref_create_info.h" |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 67 | #include "ppapi/shared_impl/media_stream_audio_track_shared.h" |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 68 | #include "ppapi/shared_impl/media_stream_video_track_shared.h" |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 69 | #include "ppapi/shared_impl/ppapi_nacl_plugin_args.h" |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 70 | #include "ppapi/shared_impl/ppapi_preferences.h" |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 71 | #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
[email protected] | 9a57839 | 2011-12-07 18:59:27 | [diff] [blame] | 72 | #include "ppapi/shared_impl/ppb_input_event_shared.h" |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 73 | #include "ppapi/shared_impl/ppb_tcp_socket_shared.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 74 | #include "ppapi/shared_impl/ppb_view_shared.h" |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 75 | #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 76 | #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 77 | #include "ppapi/shared_impl/socket_option_data.h" |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 78 | #include "ppapi/shared_impl/url_request_info_data.h" |
[email protected] | 844fecb | 2012-11-16 20:11:06 | [diff] [blame] | 79 | #include "ppapi/shared_impl/url_response_info_data.h" |
[email protected] | 8062ab26 | 2014-05-27 16:56:43 | [diff] [blame] | 80 | #include "ui/events/ipc/latency_info_param_traits.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 81 | |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 82 | #undef IPC_MESSAGE_EXPORT |
| 83 | #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 84 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 85 | #define IPC_MESSAGE_START PpapiMsgStart |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 86 | |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 87 | IPC_ENUM_TRAITS_MAX_VALUE(ppapi::TCPSocketVersion, |
| 88 | ppapi::TCP_SOCKET_VERSION_1_1_OR_ABOVE) |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 89 | IPC_ENUM_TRAITS(PP_AudioSampleRate) |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 90 | IPC_ENUM_TRAITS_MAX_VALUE(PP_BlendMode, PP_BLENDMODE_LAST) |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 91 | IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 92 | IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 93 | IPC_ENUM_TRAITS(PP_SessionType) |
| 94 | IPC_ENUM_TRAITS(PP_CdmExceptionCode) |
[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) |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 97 | IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
| 98 | IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
[email protected] | ea628e3 | 2012-08-02 21:50:16 | [diff] [blame] | 99 | IPC_ENUM_TRAITS(PP_FlashSetting) |
[email protected] | 38f61e8f | 2013-05-11 19:23:38 | [diff] [blame] | 100 | IPC_ENUM_TRAITS(PP_ImageDataFormat) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 101 | IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 102 | IPC_ENUM_TRAITS(PP_InputEvent_Type) |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 103 | IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, |
[email protected] | c54d990 | 2013-11-20 13:44:37 | [diff] [blame] | 104 | PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) |
[email protected] | ddecdae | 2013-06-24 23:17:46 | [diff] [blame] | 105 | IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private, |
| 106 | PP_NETADDRESSFAMILY_PRIVATE_IPV6) |
[email protected] | 86fbad28 | 2013-09-22 06:34:03 | [diff] [blame] | 107 | IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP) |
| 108 | IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR) |
[email protected] | 772a7462 | 2012-06-14 21:15:50 | [diff] [blame] | 109 | IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) |
| 110 | IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) |
| 111 | IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 112 | IPC_ENUM_TRAITS(PP_PrivateFontCharset) |
[email protected] | f5869d8be | 2013-04-06 00:33:10 | [diff] [blame] | 113 | IPC_ENUM_TRAITS(PP_ResourceImage) |
| 114 | IPC_ENUM_TRAITS(PP_ResourceString) |
[email protected] | ce97d745 | 2013-06-07 19:02:09 | [diff] [blame] | 115 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkEvent, PP_TALKEVENT_NUM_EVENTS - 1) |
| 116 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TalkPermission, |
| 117 | PP_TALKPERMISSION_NUM_PERMISSIONS - 1) |
[email protected] | b838eea | 2013-06-22 22:17:22 | [diff] [blame] | 118 | IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option, |
[email protected] | 5c2f0399 | 2013-09-23 19:22:46 | [diff] [blame] | 119 | PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 120 | IPC_ENUM_TRAITS(PP_TextInput_Type) |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 121 | IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) |
| 122 | IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
| 123 | IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
| 124 | IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
| 125 | IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
[email protected] | 8de1329 | 2013-06-24 06:04:39 | [diff] [blame] | 126 | IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 127 | PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 128 | IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 129 | IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 130 | IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 131 | IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 132 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 133 | IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 134 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 135 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 136 | IPC_STRUCT_TRAITS_END() |
| 137 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 138 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 139 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 140 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 141 | IPC_STRUCT_TRAITS_END() |
| 142 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 143 | IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
| 144 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 145 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 146 | IPC_STRUCT_TRAITS_END() |
| 147 | |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 148 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatSize) |
| 149 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 150 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 151 | IPC_STRUCT_TRAITS_END() |
| 152 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 153 | IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
| 154 | IPC_STRUCT_TRAITS_MEMBER(point) |
| 155 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 156 | IPC_STRUCT_TRAITS_END() |
| 157 | |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 158 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatRect) |
| 159 | IPC_STRUCT_TRAITS_MEMBER(point) |
| 160 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 161 | IPC_STRUCT_TRAITS_END() |
| 162 | |
[email protected] | 38f61e8f | 2013-05-11 19:23:38 | [diff] [blame] | 163 | IPC_STRUCT_TRAITS_BEGIN(PP_ImageDataDesc) |
| 164 | IPC_STRUCT_TRAITS_MEMBER(format) |
| 165 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 166 | IPC_STRUCT_TRAITS_MEMBER(stride) |
| 167 | IPC_STRUCT_TRAITS_END() |
| 168 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 169 | IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) |
| 170 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 171 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 172 | IPC_STRUCT_TRAITS_MEMBER(texture_id) |
| 173 | IPC_STRUCT_TRAITS_END() |
| 174 | |
| 175 | IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev) |
| 176 | IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id) |
| 177 | IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id) |
| 178 | IPC_STRUCT_TRAITS_END() |
| 179 | |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 180 | IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev) |
| 181 | IPC_STRUCT_TRAITS_MEMBER(first_page_number) |
| 182 | IPC_STRUCT_TRAITS_MEMBER(last_page_number) |
| 183 | IPC_STRUCT_TRAITS_END() |
| 184 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 185 | IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev) |
| 186 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 187 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 188 | IPC_STRUCT_TRAITS_MEMBER(frames_per_second) |
| 189 | IPC_STRUCT_TRAITS_END() |
| 190 | |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 191 | IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint) |
| 192 | IPC_STRUCT_TRAITS_MEMBER(family) |
| 193 | IPC_STRUCT_TRAITS_MEMBER(flags) |
| 194 | IPC_STRUCT_TRAITS_END() |
| 195 | |
[email protected] | 772a7462 | 2012-06-14 21:15:50 | [diff] [blame] | 196 | IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev) |
| 197 | IPC_STRUCT_TRAITS_MEMBER(printable_area) |
| 198 | IPC_STRUCT_TRAITS_MEMBER(content_area) |
| 199 | IPC_STRUCT_TRAITS_MEMBER(paper_size) |
| 200 | IPC_STRUCT_TRAITS_MEMBER(dpi) |
| 201 | IPC_STRUCT_TRAITS_MEMBER(orientation) |
| 202 | IPC_STRUCT_TRAITS_MEMBER(print_scaling_option) |
| 203 | IPC_STRUCT_TRAITS_MEMBER(grayscale) |
| 204 | IPC_STRUCT_TRAITS_MEMBER(format) |
| 205 | IPC_STRUCT_TRAITS_END() |
| 206 | |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 207 | IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) |
| 208 | IPC_STRUCT_TRAITS_MEMBER(begin) |
| 209 | IPC_STRUCT_TRAITS_MEMBER(len) |
| 210 | IPC_STRUCT_TRAITS_END() |
| 211 | |
| 212 | IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev) |
| 213 | IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 214 | IPC_STRUCT_TRAITS_MEMBER(username) |
| 215 | IPC_STRUCT_TRAITS_MEMBER(password) |
| 216 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 217 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 218 | IPC_STRUCT_TRAITS_MEMBER(path) |
| 219 | IPC_STRUCT_TRAITS_MEMBER(query) |
| 220 | IPC_STRUCT_TRAITS_MEMBER(ref) |
| 221 | IPC_STRUCT_TRAITS_END() |
| 222 | |
[email protected] | 11c6a7f1 | 2013-11-12 02:29:19 | [diff] [blame] | 223 | IPC_STRUCT_TRAITS_BEGIN(PP_FileInfo) |
| 224 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 225 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 226 | IPC_STRUCT_TRAITS_MEMBER(system_type) |
| 227 | IPC_STRUCT_TRAITS_MEMBER(creation_time) |
| 228 | IPC_STRUCT_TRAITS_MEMBER(last_access_time) |
| 229 | IPC_STRUCT_TRAITS_MEMBER(last_modified_time) |
| 230 | IPC_STRUCT_TRAITS_END() |
| 231 | |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 232 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FileGrowth) |
| 233 | IPC_STRUCT_TRAITS_MEMBER(max_written_offset) |
| 234 | IPC_STRUCT_TRAITS_MEMBER(append_mode_write_amount) |
| 235 | IPC_STRUCT_TRAITS_END() |
| 236 | |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 237 | IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData) |
| 238 | IPC_STRUCT_TRAITS_MEMBER(common) |
| 239 | IPC_STRUCT_TRAITS_MEMBER(color) |
| 240 | IPC_STRUCT_TRAITS_MEMBER(texture) |
| 241 | IPC_STRUCT_TRAITS_MEMBER(image) |
| 242 | IPC_STRUCT_TRAITS_END() |
| 243 | |
| 244 | IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::LayerCommon) |
| 245 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 246 | IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
| 247 | IPC_STRUCT_TRAITS_MEMBER(transform) |
| 248 | IPC_STRUCT_TRAITS_MEMBER(blend_mode) |
| 249 | IPC_STRUCT_TRAITS_MEMBER(opacity) |
| 250 | IPC_STRUCT_TRAITS_MEMBER(resource_id) |
| 251 | IPC_STRUCT_TRAITS_END() |
| 252 | |
| 253 | IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ColorLayer) |
| 254 | IPC_STRUCT_TRAITS_MEMBER(red) |
| 255 | IPC_STRUCT_TRAITS_MEMBER(green) |
| 256 | IPC_STRUCT_TRAITS_MEMBER(blue) |
| 257 | IPC_STRUCT_TRAITS_MEMBER(alpha) |
| 258 | IPC_STRUCT_TRAITS_END() |
| 259 | |
| 260 | IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::ImageLayer) |
| 261 | IPC_STRUCT_TRAITS_MEMBER(resource) |
| 262 | IPC_STRUCT_TRAITS_MEMBER(source_rect) |
| 263 | IPC_STRUCT_TRAITS_END() |
| 264 | |
| 265 | IPC_STRUCT_TRAITS_BEGIN(ppapi::CompositorLayerData::TextureLayer) |
| 266 | IPC_STRUCT_TRAITS_MEMBER(mailbox) |
| 267 | IPC_STRUCT_TRAITS_MEMBER(sync_point) |
| 268 | IPC_STRUCT_TRAITS_MEMBER(source_rect) |
| 269 | IPC_STRUCT_TRAITS_MEMBER(premult_alpha) |
| 270 | IPC_STRUCT_TRAITS_END() |
| 271 | |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 272 | IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
| 273 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 274 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 275 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 276 | IPC_STRUCT_TRAITS_END() |
| 277 | |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 278 | IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry) |
| 279 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 280 | IPC_STRUCT_TRAITS_MEMBER(is_dir) |
| 281 | IPC_STRUCT_TRAITS_END() |
| 282 | |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 283 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRefCreateInfo) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 284 | IPC_STRUCT_TRAITS_MEMBER(file_system_type) |
| 285 | IPC_STRUCT_TRAITS_MEMBER(internal_path) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 286 | IPC_STRUCT_TRAITS_MEMBER(display_name) |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 287 | IPC_STRUCT_TRAITS_MEMBER(browser_pending_host_resource_id) |
| 288 | IPC_STRUCT_TRAITS_MEMBER(renderer_pending_host_resource_id) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 289 | IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource) |
| 290 | IPC_STRUCT_TRAITS_END() |
| 291 | |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 292 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting) |
| 293 | IPC_STRUCT_TRAITS_MEMBER(site) |
| 294 | IPC_STRUCT_TRAITS_MEMBER(permission) |
| 295 | IPC_STRUCT_TRAITS_END() |
| 296 | |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 297 | IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamAudioTrackShared::Attributes) |
| 298 | IPC_STRUCT_TRAITS_MEMBER(buffers) |
[email protected] | e6b863c6e | 2014-07-31 12:54:12 | [diff] [blame^] | 299 | IPC_STRUCT_TRAITS_MEMBER(duration) |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 300 | IPC_STRUCT_TRAITS_END() |
| 301 | |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 302 | IPC_STRUCT_TRAITS_BEGIN(ppapi::MediaStreamVideoTrackShared::Attributes) |
| 303 | IPC_STRUCT_TRAITS_MEMBER(buffers) |
| 304 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 305 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 306 | IPC_STRUCT_TRAITS_MEMBER(format) |
| 307 | IPC_STRUCT_TRAITS_END() |
| 308 | |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 309 | IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) |
| 310 | IPC_STRUCT_TRAITS_MEMBER(rect) |
| 311 | IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) |
| 312 | IPC_STRUCT_TRAITS_MEMBER(is_page_visible) |
| 313 | IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
[email protected] | 0cd5b9df | 2012-06-28 19:33:33 | [diff] [blame] | 314 | IPC_STRUCT_TRAITS_MEMBER(device_scale) |
| 315 | IPC_STRUCT_TRAITS_MEMBER(css_scale) |
[email protected] | 5015a07 | 2014-06-19 01:48:14 | [diff] [blame] | 316 | IPC_STRUCT_TRAITS_MEMBER(scroll_offset) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 317 | IPC_STRUCT_TRAITS_END() |
| 318 | |
[email protected] | cdf4e91 | 2012-06-21 23:15:10 | [diff] [blame] | 319 | IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint) |
| 320 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 321 | IPC_STRUCT_TRAITS_MEMBER(position) |
| 322 | IPC_STRUCT_TRAITS_MEMBER(radius) |
| 323 | IPC_STRUCT_TRAITS_MEMBER(rotation_angle) |
| 324 | IPC_STRUCT_TRAITS_MEMBER(pressure) |
| 325 | IPC_STRUCT_TRAITS_END() |
| 326 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 327 | IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) |
[email protected] | 966d1e1 | 2012-05-18 07:20:32 | [diff] [blame] | 328 | IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map) |
| 329 | IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map) |
| 330 | IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map) |
| 331 | IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 332 | IPC_STRUCT_TRAITS_MEMBER(default_font_size) |
| 333 | IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) |
[email protected] | 6b4dcb07 | 2012-06-18 22:26:51 | [diff] [blame] | 334 | IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores) |
[email protected] | e0d8c42 | 2012-06-04 22:57:19 | [diff] [blame] | 335 | IPC_STRUCT_TRAITS_MEMBER(is_3d_supported) |
| 336 | IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported) |
[email protected] | 4abba3b4 | 2013-02-12 03:45:54 | [diff] [blame] | 337 | IPC_STRUCT_TRAITS_MEMBER(is_stage3d_baseline_supported) |
[email protected] | 6013c79 | 2014-03-07 00:18:33 | [diff] [blame] | 338 | IPC_STRUCT_TRAITS_MEMBER(is_accelerated_video_decode_enabled) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 339 | IPC_STRUCT_TRAITS_END() |
| 340 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 341 | IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 342 | IPC_STRUCT_TRAITS_MEMBER(is_filtered) |
| 343 | IPC_STRUCT_TRAITS_MEMBER(event_type) |
| 344 | IPC_STRUCT_TRAITS_MEMBER(event_time_stamp) |
| 345 | IPC_STRUCT_TRAITS_MEMBER(event_modifiers) |
| 346 | IPC_STRUCT_TRAITS_MEMBER(mouse_button) |
| 347 | IPC_STRUCT_TRAITS_MEMBER(mouse_position) |
| 348 | IPC_STRUCT_TRAITS_MEMBER(mouse_click_count) |
[email protected] | 8047326 | 2011-08-31 17:15:18 | [diff] [blame] | 349 | IPC_STRUCT_TRAITS_MEMBER(mouse_movement) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 350 | IPC_STRUCT_TRAITS_MEMBER(wheel_delta) |
| 351 | IPC_STRUCT_TRAITS_MEMBER(wheel_ticks) |
| 352 | IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) |
| 353 | IPC_STRUCT_TRAITS_MEMBER(key_code) |
[email protected] | f0287d3 | 2013-09-14 11:50:27 | [diff] [blame] | 354 | IPC_STRUCT_TRAITS_MEMBER(code) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 355 | IPC_STRUCT_TRAITS_MEMBER(character_text) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 356 | IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) |
| 357 | IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) |
| 358 | IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) |
| 359 | IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) |
[email protected] | cdf4e91 | 2012-06-21 23:15:10 | [diff] [blame] | 360 | IPC_STRUCT_TRAITS_MEMBER(touches) |
| 361 | IPC_STRUCT_TRAITS_MEMBER(changed_touches) |
| 362 | IPC_STRUCT_TRAITS_MEMBER(target_touches) |
[email protected] | 8062ab26 | 2014-05-27 16:56:43 | [diff] [blame] | 363 | IPC_STRUCT_TRAITS_MEMBER(latency_info) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 364 | IPC_STRUCT_TRAITS_END() |
| 365 | |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 366 | IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair) |
| 367 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 368 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 369 | IPC_STRUCT_TRAITS_END() |
| 370 | |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 371 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 372 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 373 | IPC_STRUCT_TRAITS_MEMBER(method) |
| 374 | IPC_STRUCT_TRAITS_MEMBER(headers) |
| 375 | IPC_STRUCT_TRAITS_MEMBER(stream_to_file) |
| 376 | IPC_STRUCT_TRAITS_MEMBER(follow_redirects) |
| 377 | IPC_STRUCT_TRAITS_MEMBER(record_download_progress) |
| 378 | IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) |
| 379 | IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url) |
| 380 | IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url) |
| 381 | IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests) |
| 382 | IPC_STRUCT_TRAITS_MEMBER(allow_credentials) |
| 383 | IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding) |
| 384 | IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding) |
| 385 | IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold) |
| 386 | IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold) |
[email protected] | c094eaf | 2012-07-10 16:09:01 | [diff] [blame] | 387 | IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent) |
| 388 | IPC_STRUCT_TRAITS_MEMBER(custom_user_agent) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 389 | IPC_STRUCT_TRAITS_MEMBER(body) |
| 390 | IPC_STRUCT_TRAITS_END() |
| 391 | |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 392 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 393 | IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 394 | IPC_STRUCT_TRAITS_MEMBER(data) |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 395 | IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 396 | IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 397 | IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 398 | IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 399 | IPC_STRUCT_TRAITS_END() |
| 400 | |
[email protected] | 844fecb | 2012-11-16 20:11:06 | [diff] [blame] | 401 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData) |
| 402 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 403 | IPC_STRUCT_TRAITS_MEMBER(headers) |
| 404 | IPC_STRUCT_TRAITS_MEMBER(status_code) |
| 405 | IPC_STRUCT_TRAITS_MEMBER(status_text) |
| 406 | IPC_STRUCT_TRAITS_MEMBER(redirect_url) |
| 407 | IPC_STRUCT_TRAITS_MEMBER(body_as_file_ref) |
| 408 | IPC_STRUCT_TRAITS_END() |
| 409 | |
[email protected] | 07d0a6bf | 2013-09-17 04:15:10 | [diff] [blame] | 410 | IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedNetworkInfo) |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 411 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 412 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 413 | IPC_STRUCT_TRAITS_MEMBER(state) |
| 414 | IPC_STRUCT_TRAITS_MEMBER(addresses) |
| 415 | IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 416 | IPC_STRUCT_TRAITS_MEMBER(mtu) |
| 417 | IPC_STRUCT_TRAITS_END() |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 418 | |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 419 | // Only whitelisted switches passed through PpapiNaClPluginArgs. |
[email protected] | ac07ec5 | 2013-04-22 17:32:45 | [diff] [blame] | 420 | // The list of switches can be found in: |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 421 | // components/nacl/browser/nacl_process_host.cc |
| 422 | IPC_STRUCT_TRAITS_BEGIN(ppapi::PpapiNaClPluginArgs) |
[email protected] | ac07ec5 | 2013-04-22 17:32:45 | [diff] [blame] | 423 | IPC_STRUCT_TRAITS_MEMBER(off_the_record) |
| 424 | IPC_STRUCT_TRAITS_MEMBER(permissions) |
[email protected] | 6da661c5a | 2014-03-26 18:28:30 | [diff] [blame] | 425 | IPC_STRUCT_TRAITS_MEMBER(keepalive_throttle_interval_milliseconds) |
[email protected] | ac07ec5 | 2013-04-22 17:32:45 | [diff] [blame] | 426 | IPC_STRUCT_TRAITS_MEMBER(switch_names) |
| 427 | IPC_STRUCT_TRAITS_MEMBER(switch_values) |
| 428 | IPC_STRUCT_TRAITS_END() |
| 429 | |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 430 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 431 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 432 | IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
| 433 | IPC_STRUCT_TRAITS_MEMBER(resource) |
| 434 | IPC_STRUCT_TRAITS_MEMBER(handle) |
| 435 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 436 | IPC_STRUCT_TRAITS_END() |
| 437 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 438 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 439 | |
[email protected] | eb415bf0e | 2011-04-14 02:45:42 | [diff] [blame] | 440 | // These are from the browser to the plugin. |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 441 | // Loads the given plugin. |
[email protected] | 84350ef | 2013-12-19 17:10:50 | [diff] [blame] | 442 | IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 443 | base::FilePath /* path */, |
[email protected] | 84350ef | 2013-12-19 17:10:50 | [diff] [blame] | 444 | ppapi::PpapiPermissions /* permissions */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 445 | |
| 446 | // Creates a channel to talk to a renderer. The plugin will respond with |
| 447 | // PpapiHostMsg_ChannelCreated. |
[email protected] | 108fd34 | 2013-01-04 20:46:54 | [diff] [blame] | 448 | IPC_MESSAGE_CONTROL3(PpapiMsg_CreateChannel, |
| 449 | base::ProcessId /* renderer_pid */, |
| 450 | int /* renderer_child_id */, |
[email protected] | bc2eeb4 | 2012-05-02 22:35:53 | [diff] [blame] | 451 | bool /* incognito */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 452 | |
[email protected] | 73af633 | 2014-02-06 23:28:10 | [diff] [blame] | 453 | // Initializes the IPC dispatchers in the NaCl plugin. |
| 454 | IPC_MESSAGE_CONTROL1(PpapiMsg_InitializeNaClDispatcher, |
| 455 | ppapi::PpapiNaClPluginArgs /* args */) |
[email protected] | 8510d28 | 2012-08-30 19:47:38 | [diff] [blame] | 456 | |
[email protected] | 029bd94 | 2013-01-22 08:30:33 | [diff] [blame] | 457 | // Instructs the plugin process to crash. |
| 458 | IPC_MESSAGE_CONTROL0(PpapiMsg_Crash) |
| 459 | |
| 460 | // Instructs the plugin process to hang. |
| 461 | IPC_MESSAGE_CONTROL0(PpapiMsg_Hang) |
| 462 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 463 | // Each plugin may be referenced by multiple renderers. We need the instance |
| 464 | // IDs to be unique within a plugin, despite coming from different renderers, |
| 465 | // and unique within a renderer, despite going to different plugins. This means |
| 466 | // that neither the renderer nor the plugin can generate instance IDs without |
| 467 | // consulting the other. |
| 468 | // |
| 469 | // We resolve this by having the renderer generate a unique instance ID inside |
| 470 | // its process. It then asks the plugin to reserve that ID by sending this sync |
| 471 | // message. If the plugin has not yet seen this ID, it will remember it as used |
| 472 | // (to prevent a race condition if another renderer tries to then use the same |
| 473 | // instance), and set usable as true. |
| 474 | // |
| 475 | // If the plugin has already seen the instance ID, it will set usable as false |
| 476 | // and the renderer must retry a new instance ID. |
| 477 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId, |
| 478 | PP_Instance /* instance */, |
| 479 | bool /* usable */) |
| 480 | |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 481 | // Passes the WebKit preferences to the plugin. |
| 482 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 483 | ppapi::Preferences) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 484 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 485 | // Sent in both directions to see if the other side supports the given |
| 486 | // interface. |
| 487 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
| 488 | std::string /* interface_name */, |
| 489 | bool /* result */) |
| 490 | |
[email protected] | ea44183 | 2014-02-05 15:34:21 | [diff] [blame] | 491 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_LogInterfaceUsage, |
| 492 | int /* interface_hash */) |
| 493 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 494 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 495 | // Network state notification from the browser for implementing |
| 496 | // PPP_NetworkState_Dev. |
| 497 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
| 498 | bool /* online */) |
| 499 | |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 500 | // Requests a list of sites that have data stored from the plugin. The plugin |
| 501 | // process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used |
| 502 | // for Flash. |
| 503 | IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData, |
| 504 | uint32 /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 505 | base::FilePath /* plugin_data_path */) |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 506 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult, |
| 507 | uint32 /* request_id */, |
| 508 | std::vector<std::string> /* sites */) |
| 509 | |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 510 | // Instructs the plugin to clear data for the given site & time. The plugin |
| 511 | // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used |
| 512 | // for Flash. |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 513 | IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData, |
| 514 | uint32 /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 515 | base::FilePath /* plugin_data_path */, |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 516 | std::string /* site */, |
| 517 | uint64 /* flags */, |
| 518 | uint64 /* max_age */) |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 519 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult, |
| 520 | uint32 /* request_id */, |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 521 | bool /* success */) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 522 | |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 523 | IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses, |
| 524 | uint32 /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 525 | base::FilePath /* plugin_data_path */) |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 526 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult, |
| 527 | uint32 /* request_id */, |
| 528 | bool /* success */) |
| 529 | |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 530 | IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings, |
| 531 | uint32 /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 532 | base::FilePath /* plugin_data_path */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 533 | PP_Flash_BrowserOperations_SettingType /* setting_type */) |
| 534 | IPC_MESSAGE_CONTROL4( |
| 535 | PpapiHostMsg_GetPermissionSettingsResult, |
| 536 | uint32 /* request_id */, |
| 537 | bool /* success */, |
| 538 | PP_Flash_BrowserOperations_Permission /* default_permission */, |
| 539 | ppapi::FlashSiteSettings /* sites */) |
| 540 | |
| 541 | IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission, |
| 542 | uint32 /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 543 | base::FilePath /* plugin_data_path */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 544 | PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 545 | PP_Flash_BrowserOperations_Permission /* permission */, |
| 546 | bool /* clear_site_specific */) |
| 547 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult, |
| 548 | uint32 /* request_id */, |
| 549 | bool /* success */) |
| 550 | |
| 551 | IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission, |
| 552 | uint32 /* request_id */, |
[email protected] | d30a36f | 2013-02-07 04:16:26 | [diff] [blame] | 553 | base::FilePath /* plugin_data_path */, |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 554 | PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 555 | ppapi::FlashSiteSettings /* sites */) |
| 556 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult, |
| 557 | uint32 /* request_id */, |
| 558 | bool /* success */) |
| 559 | |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 560 | // Broker Process. |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 561 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 562 | PP_Instance /* instance */, |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 563 | IPC::PlatformFileForTransit /* handle */, |
| 564 | int32_t /* result */) |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 565 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 566 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 567 | // PPB_Audio. |
| 568 | |
| 569 | // Notifies the result of the audio stream create call. This is called in |
| 570 | // both error cases and in the normal success case. These cases are |
| 571 | // differentiated by the result code, which is one of the standard PPAPI |
| 572 | // result codes. |
| 573 | // |
| 574 | // The handler of this message should always close all of the handles passed |
| 575 | // in, since some could be valid even in the error case. |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 576 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 577 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 578 | int32_t /* result_code (will be != PP_OK on failure) */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 579 | ppapi::proxy::SerializedHandle /* socket_handle */, |
| 580 | ppapi::proxy::SerializedHandle /* handle */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 581 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 582 | // PPB_Graphics3D. |
| 583 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 584 | ppapi::HostResource /* graphics_3d */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 585 | int32_t /* pp_error */) |
| 586 | |
[email protected] | c4283577 | 2012-08-22 18:22:13 | [diff] [blame] | 587 | // PPB_ImageData. |
| 588 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData, |
| 589 | ppapi::HostResource /* old_image_data */) |
| 590 | |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 591 | // PPB_Instance. |
| 592 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete, |
| 593 | PP_Instance /* instance */, |
| 594 | int32_t /* result */) |
| 595 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 596 | // PPP_Class. |
| 597 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
| 598 | int64 /* ppp_class */, |
| 599 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 600 | ppapi::proxy::SerializedVar /* property */, |
| 601 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 602 | bool /* result */) |
| 603 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
| 604 | int64 /* ppp_class */, |
| 605 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 606 | ppapi::proxy::SerializedVar /* method */, |
| 607 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 608 | bool /* result */) |
| 609 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty, |
| 610 | int64 /* ppp_class */, |
| 611 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 612 | ppapi::proxy::SerializedVar /* property */, |
| 613 | ppapi::proxy::SerializedVar /* out_exception */, |
| 614 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 615 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties, |
| 616 | int64 /* ppp_class */, |
| 617 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 618 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 619 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 620 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty, |
| 621 | int64 /* ppp_class */, |
| 622 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 623 | ppapi::proxy::SerializedVar /* name */, |
| 624 | ppapi::proxy::SerializedVar /* value */, |
| 625 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 626 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty, |
| 627 | int64 /* ppp_class */, |
| 628 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 629 | ppapi::proxy::SerializedVar /* property */, |
| 630 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 631 | IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call, |
| 632 | int64 /* ppp_class */, |
| 633 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 634 | ppapi::proxy::SerializedVar /* method_name */, |
| 635 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 636 | ppapi::proxy::SerializedVar /* out_exception */, |
| 637 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 638 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
| 639 | int64 /* ppp_class */, |
| 640 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 641 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 642 | ppapi::proxy::SerializedVar /* out_exception */, |
| 643 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 644 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
| 645 | int64 /* ppp_class */, |
| 646 | int64 /* object */) |
| 647 | |
[email protected] | 8c3bd1d | 2011-04-12 20:01:42 | [diff] [blame] | 648 | // PPP_Graphics3D_Dev. |
| 649 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, |
| 650 | PP_Instance /* instance */) |
| 651 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 652 | // PPP_InputEvent. |
| 653 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent, |
| 654 | PP_Instance /* instance */, |
| 655 | ppapi::InputEventData /* data */) |
| 656 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent, |
| 657 | PP_Instance /* instance */, |
| 658 | ppapi::InputEventData /* data */, |
| 659 | PP_Bool /* result */) |
| 660 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 661 | // PPP_Instance. |
| 662 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
| 663 | PP_Instance /* instance */, |
| 664 | std::vector<std::string> /* argn */, |
| 665 | std::vector<std::string> /* argv */, |
| 666 | PP_Bool /* result */) |
[email protected] | 5e5d0b0 | 2011-04-04 19:32:07 | [diff] [blame] | 667 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, |
| 668 | PP_Instance /* instance */) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 669 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 670 | PP_Instance /* instance */, |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 671 | ppapi::ViewData /* new_data */, |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 672 | PP_Bool /* flash_fullscreen */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 673 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, |
| 674 | PP_Instance /* instance */, |
| 675 | PP_Bool /* has_focus */) |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 676 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_HandleDocumentLoad, |
| 677 | PP_Instance /* instance */, |
| 678 | int /* pending_loader_host_id */, |
| 679 | ppapi::URLResponseInfoData /* response */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 680 | |
[email protected] | e87640bd | 2014-06-18 16:44:00 | [diff] [blame] | 681 | // PPP_Messaging and PPP_MessageHandler. |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 682 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, |
| 683 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 684 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | e87640bd | 2014-06-18 16:44:00 | [diff] [blame] | 685 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPMessageHandler_HandleBlockingMessage, |
| 686 | PP_Instance /* instance */, |
| 687 | ppapi::proxy::SerializedVar /* message */, |
| 688 | ppapi::proxy::SerializedVar /* result */, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 689 | bool /* was_handled */) |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 690 | |
[email protected] | 1314f5f | 2011-10-16 02:26:56 | [diff] [blame] | 691 | // PPP_MouseLock. |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 692 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, |
| 693 | PP_Instance /* instance */) |
| 694 | |
[email protected] | ec15840 | 2014-02-06 11:40:25 | [diff] [blame] | 695 | // PPP_Pdf |
| 696 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPPdf_Rotate, |
| 697 | PP_Instance /* instance */, |
| 698 | bool /* clockwise */) |
| 699 | |
[email protected] | 54ea9ff | 2014-03-20 00:27:54 | [diff] [blame] | 700 | // Find |
| 701 | IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_StartFind, |
| 702 | PP_Instance /* instance */, |
| 703 | std::string /* text */) |
| 704 | IPC_MESSAGE_ROUTED2(PpapiPluginMsg_PPPFind_SelectFindResult, |
| 705 | PP_Instance /* instance */, |
| 706 | PP_Bool /* forward */) |
| 707 | IPC_MESSAGE_ROUTED1(PpapiPluginMsg_PPPFind_StopFind, |
| 708 | PP_Instance /* instance */) |
| 709 | |
| 710 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_SetPluginToHandleFindRequests, |
| 711 | PP_Instance /* instance */) |
| 712 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_NumberOfFindResultsChanged, |
| 713 | PP_Instance /* instance */, |
| 714 | int32_t /* total */, |
| 715 | PP_Bool /* final_result */) |
| 716 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SelectFindResultChanged, |
| 717 | PP_Instance /* instance */, |
| 718 | int32_t /* index */) |
[email protected] | fb0115f6c | 2014-03-30 17:21:08 | [diff] [blame] | 719 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTickmarks, |
| 720 | PP_Instance /* instance */, |
| 721 | std::vector<PP_Rect> /* tickmarks */) |
[email protected] | 54ea9ff | 2014-03-20 00:27:54 | [diff] [blame] | 722 | |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 723 | // PPP_Printing |
| 724 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats, |
| 725 | PP_Instance /* instance */, |
| 726 | uint32_t /* result */) |
| 727 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin, |
| 728 | PP_Instance /* instance */, |
| 729 | std::string /* settings_string */, |
| 730 | int32_t /* result */) |
| 731 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages, |
| 732 | PP_Instance /* instance */, |
| 733 | std::vector<PP_PrintPageNumberRange_Dev> /* pages */, |
| 734 | ppapi::HostResource /* result */) |
| 735 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End, |
| 736 | PP_Instance /* instance */) |
| 737 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled, |
| 738 | PP_Instance /* instance */, |
| 739 | bool /* result */) |
| 740 | |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 741 | // PPP_TextInput. |
| 742 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText, |
| 743 | PP_Instance /* instance */, |
| 744 | uint32_t /* desired_number_of_characters */) |
| 745 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 746 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 747 | // PPB_Broker. |
| 748 | IPC_MESSAGE_ROUTED3( |
| 749 | PpapiMsg_PPBBroker_ConnectComplete, |
| 750 | ppapi::HostResource /* broker */, |
| 751 | IPC::PlatformFileForTransit /* handle */, |
| 752 | int32_t /* result */) |
| 753 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 754 | // PPP_ContentDecryptor_Dev |
[email protected] | dc45e79 | 2013-11-14 01:34:24 | [diff] [blame] | 755 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_Initialize, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 756 | PP_Instance /* instance */, |
[email protected] | dc45e79 | 2013-11-14 01:34:24 | [diff] [blame] | 757 | ppapi::proxy::SerializedVar /* key_system, String */) |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 758 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPPContentDecryptor_CreateSession, |
[email protected] | 38a995d9 | 2013-09-20 06:34:51 | [diff] [blame] | 759 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 760 | uint32_t /* promise_id */, |
| 761 | ppapi::proxy::SerializedVar /* init_data_type, String */, |
| 762 | ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */, |
| 763 | PP_SessionType /* session_type */) |
[email protected] | bef80732 | 2014-02-12 19:09:32 | [diff] [blame] | 764 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_LoadSession, |
| 765 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 766 | uint32_t /* promise_id */, |
[email protected] | bef80732 | 2014-02-12 19:09:32 | [diff] [blame] | 767 | ppapi::proxy::SerializedVar /* web_session_id, String */) |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 768 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_UpdateSession, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 769 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 770 | uint32_t /* promise_id */, |
| 771 | ppapi::proxy::SerializedVar /* web_session_id, String */, |
[email protected] | da34aa7 | 2013-11-30 05:24:47 | [diff] [blame] | 772 | ppapi::proxy::SerializedVar /* response, ArrayBuffer */) |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 773 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ReleaseSession, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 774 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 775 | uint32_t /* promise_id */, |
| 776 | ppapi::proxy::SerializedVar /* web_session_id, String */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 777 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, |
| 778 | PP_Instance /* instance */, |
| 779 | ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 780 | std::string /* serialized_block_info */) |
[email protected] | e9d3a102 | 2012-10-11 23:43:55 | [diff] [blame] | 781 | IPC_MESSAGE_ROUTED3( |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 782 | PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, |
| 783 | PP_Instance /* instance */, |
| 784 | std::string /* serialized_decoder_config */, |
| 785 | ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) |
| 786 | IPC_MESSAGE_ROUTED3( |
[email protected] | e9d3a102 | 2012-10-11 23:43:55 | [diff] [blame] | 787 | PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder, |
| 788 | PP_Instance /* instance */, |
| 789 | std::string /* serialized_decoder_config */, |
| 790 | ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */) |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 791 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder, |
| 792 | PP_Instance /* instance */, |
| 793 | PP_DecryptorStreamType /* decoder_type */, |
| 794 | uint32_t /* request_id */) |
| 795 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder, |
| 796 | PP_Instance /* instance */, |
| 797 | PP_DecryptorStreamType /* decoder_type */, |
| 798 | uint32_t /* request_id */) |
[email protected] | 467434d | 2012-10-12 10:48:53 | [diff] [blame] | 799 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 800 | PP_Instance /* instance */, |
[email protected] | 467434d | 2012-10-12 10:48:53 | [diff] [blame] | 801 | PP_DecryptorStreamType /* decoder_type */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 802 | ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
| 803 | std::string /* serialized_block_info */) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 804 | |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 805 | // PPP_Instance_Private. |
| 806 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 807 | PP_Instance /* instance */, |
| 808 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 809 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 810 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 811 | |
[email protected] | 200c918 | 2013-12-18 23:37:11 | [diff] [blame] | 812 | // Reports to the browser that a plugin has been active. |
| 813 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Keepalive) |
| 814 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 815 | // ----------------------------------------------------------------------------- |
| 816 | // These are from the plugin to the renderer. |
| 817 | |
| 818 | // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel |
| 819 | // could not be established. This could be because the IPC could not be created |
| 820 | // for some weird reason, but more likely that the plugin failed to load or |
| 821 | // initialize properly. |
| 822 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, |
| 823 | IPC::ChannelHandle /* handle */) |
| 824 | |
[email protected] | 43fb4f8 | 2014-04-23 11:53:13 | [diff] [blame] | 825 | // Notify the renderer that the PPAPI channel gets ready in the plugin. |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 826 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_StartupInitializationComplete) |
[email protected] | 43fb4f8 | 2014-04-23 11:53:13 | [diff] [blame] | 827 | |
[email protected] | ae5f7f8 | 2014-05-02 23:24:52 | [diff] [blame] | 828 | // Calls renderer to open a resource file for nacl_irt_open_resource(). |
| 829 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiHostMsg_OpenResource, |
| 830 | std::string /* key */, |
| 831 | ppapi::proxy::SerializedHandle /* fd */) |
| 832 | |
[email protected] | a9b16dd | 2012-01-31 05:00:26 | [diff] [blame] | 833 | // Logs the given message to the console of all instances. |
| 834 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource, |
| 835 | PP_Instance /* instance */, |
| 836 | int /* log_level */, |
| 837 | std::string /* source */, |
| 838 | std::string /* value */) |
| 839 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 840 | // PPB_Audio. |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 841 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 842 | PP_Instance /* instance_id */, |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 843 | int32_t /* sample_rate */, |
| 844 | uint32_t /* sample_frame_count */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 845 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 846 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 847 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 848 | bool /* play */) |
| 849 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 850 | // PPB_Core. |
| 851 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 852 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 853 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 854 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 855 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 856 | // PPB_Graphics3D. |
[email protected] | 9ed07f8 | 2012-05-29 21:54:55 | [diff] [blame] | 857 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 858 | PP_Instance /* instance */, |
[email protected] | 9ed07f8 | 2012-05-29 21:54:55 | [diff] [blame] | 859 | ppapi::HostResource /* share_context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 860 | std::vector<int32_t> /* attrib_list */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 861 | ppapi::HostResource /* result */) |
[email protected] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 862 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 863 | ppapi::HostResource /* context */, |
[email protected] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 864 | int32 /* transfer_buffer_id */) |
[email protected] | 7fe4198b | 2014-03-18 21:52:36 | [diff] [blame] | 865 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForTokenInRange, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 866 | ppapi::HostResource /* context */, |
[email protected] | 7fe4198b | 2014-03-18 21:52:36 | [diff] [blame] | 867 | int32 /* start */, |
| 868 | int32 /* end */, |
| 869 | gpu::CommandBuffer::State /* state */, |
| 870 | bool /* success */) |
| 871 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_WaitForGetOffsetInRange, |
| 872 | ppapi::HostResource /* context */, |
| 873 | int32 /* start */, |
| 874 | int32 /* end */, |
[email protected] | 571b35e8 | 2012-05-19 00:04:35 | [diff] [blame] | 875 | gpu::CommandBuffer::State /* state */, |
| 876 | bool /* success */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 877 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 878 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 879 | int32 /* put_offset */) |
[email protected] | 046fa1ac | 2014-04-01 09:06:43 | [diff] [blame] | 880 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 881 | ppapi::HostResource /* context */, |
[email protected] | b31199e | 2012-12-12 00:48:29 | [diff] [blame] | 882 | uint32 /* size */, |
[email protected] | 046fa1ac | 2014-04-01 09:06:43 | [diff] [blame] | 883 | int32 /* id */, |
| 884 | ppapi::proxy::SerializedHandle /* transfer_buffer */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 885 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 886 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 887 | int32 /* id */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 888 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 889 | ppapi::HostResource /* graphics_3d */) |
[email protected] | b096d03 | 2013-03-08 03:08:01 | [diff] [blame] | 890 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertSyncPoint, |
| 891 | ppapi::HostResource /* context */, |
| 892 | uint32 /* sync_point */) |
[email protected] | 7035bc9 | 2014-07-01 00:27:22 | [diff] [blame] | 893 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_InsertFutureSyncPoint, |
| 894 | ppapi::HostResource /* context */, |
| 895 | uint32 /* sync_point */) |
| 896 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_RetireSyncPoint, |
| 897 | ppapi::HostResource /* context */, |
| 898 | uint32 /* sync_point */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 899 | |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 900 | // PPB_ImageData. |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 901 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform, |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 902 | PP_Instance /* instance */, |
| 903 | int32 /* format */, |
| 904 | PP_Size /* size */, |
| 905 | PP_Bool /* init_to_zero */, |
| 906 | ppapi::HostResource /* result_resource */, |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 907 | PP_ImageDataDesc /* image_data_desc */, |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 908 | ppapi::proxy::ImageHandle /* result */) |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 909 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateSimple, |
[email protected] | 16b7b27 | 2012-07-25 21:54:49 | [diff] [blame] | 910 | PP_Instance /* instance */, |
| 911 | int32 /* format */, |
| 912 | PP_Size /* size */, |
| 913 | PP_Bool /* init_to_zero */, |
| 914 | ppapi::HostResource /* result_resource */, |
[email protected] | 4e1b91e | 2013-06-12 00:18:13 | [diff] [blame] | 915 | PP_ImageDataDesc /* image_data_desc */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 916 | ppapi::proxy::SerializedHandle /* result */) |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 917 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 918 | // PPB_Instance. |
| 919 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, |
| 920 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 921 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 922 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, |
| 923 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 924 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 473ef7d | 2012-12-03 23:39:05 | [diff] [blame] | 925 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_BindGraphics, |
| 926 | PP_Instance /* instance */, |
| 927 | PP_Resource /* device */) |
[email protected] | c59ed589 | 2012-02-18 01:10:19 | [diff] [blame] | 928 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 929 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, |
| 930 | PP_Instance /* instance */, |
| 931 | uint32_t /* result */) |
| 932 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 933 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, |
| 934 | PP_Instance /* instance */, |
| 935 | uint32_t /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 936 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, |
| 937 | PP_Instance /* instance */, |
| 938 | PP_Bool /* result */) |
| 939 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript, |
| 940 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 941 | ppapi::proxy::SerializedVar /* script */, |
| 942 | ppapi::proxy::SerializedVar /* out_exception */, |
| 943 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 8d770e49 | 2011-10-11 04:54:31 | [diff] [blame] | 944 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet, |
| 945 | PP_Instance /* instance */, |
| 946 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 947 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, |
| 948 | PP_Instance /* instance */, |
| 949 | PP_Bool /* fullscreen */, |
| 950 | PP_Bool /* result */) |
| 951 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, |
| 952 | PP_Instance /* instance */, |
| 953 | PP_Bool /* result */, |
| 954 | PP_Size /* size */) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 955 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
| 956 | PP_Instance /* instance */, |
| 957 | bool /* is_filtering */, |
| 958 | uint32_t /* event_classes */) |
| 959 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
| 960 | PP_Instance /* instance */, |
| 961 | uint32_t /* event_classes */) |
[email protected] | 8062ab26 | 2014-05-27 16:56:43 | [diff] [blame] | 962 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_StartTrackingLatency, |
| 963 | PP_Instance /* instance */) |
[email protected] | 55a5a52 | 2011-07-06 22:52:40 | [diff] [blame] | 964 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, |
| 965 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 966 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 967 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, |
| 968 | PP_Instance /* instance */) |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 969 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, |
| 970 | PP_Instance /* instance */) |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 971 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, |
| 972 | PP_Instance /* instance */, |
| 973 | ppapi::proxy::SerializedVar /* relative */, |
| 974 | ppapi::proxy::SerializedVar /* result */) |
| 975 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest, |
| 976 | PP_Instance /* instance */, |
| 977 | ppapi::proxy::SerializedVar /* relative */, |
| 978 | PP_Bool /* result */) |
| 979 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument, |
| 980 | PP_Instance /* active */, |
| 981 | PP_Instance /* target */, |
| 982 | PP_Bool /* result */) |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 983 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL, |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 984 | PP_Instance /* active */, |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 985 | PP_URLComponents_Dev /* components */, |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 986 | ppapi::proxy::SerializedVar /* result */) |
| 987 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL, |
| 988 | PP_Instance /* active */, |
| 989 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | f5a1402 | 2013-09-07 15:47:40 | [diff] [blame] | 990 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginReferrerURL, |
| 991 | PP_Instance /* instance */, |
| 992 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 33ec5056 | 2012-04-08 20:28:43 | [diff] [blame] | 993 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor, |
| 994 | PP_Instance /* instance */, |
| 995 | int32_t /* type */, |
| 996 | ppapi::HostResource /* custom_image */, |
| 997 | PP_Point /* hot_spot */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 998 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 999 | PP_Instance /* instance */, |
| 1000 | PP_TextInput_Type /* type */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1001 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1002 | PP_Instance /* instance */, |
| 1003 | PP_Rect /* caret */, |
| 1004 | PP_Rect /* bounding_box */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1005 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1006 | PP_Instance /* instance */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1007 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText, |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 1008 | PP_Instance /* instance */, |
| 1009 | std::string /* text */, |
| 1010 | uint32_t /* caret */, |
| 1011 | uint32_t /* anchor */) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1012 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1013 | // PPB_Var. |
[email protected] | 154eca1 | 2014-07-14 23:55:37 | [diff] [blame] | 1014 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVar_AddRefObject, |
| 1015 | int64 /* object_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1016 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, |
| 1017 | int64 /* object_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1018 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1019 | ppapi::proxy::SerializedVar /* object */, |
| 1020 | ppapi::proxy::SerializedVar /* property */, |
| 1021 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1022 | PP_Bool /* result */) |
| 1023 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1024 | ppapi::proxy::SerializedVar /* object */, |
| 1025 | ppapi::proxy::SerializedVar /* method */, |
| 1026 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1027 | PP_Bool /* result */) |
| 1028 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1029 | ppapi::proxy::SerializedVar /* object */, |
| 1030 | ppapi::proxy::SerializedVar /* property */, |
| 1031 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1032 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1033 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1034 | ppapi::proxy::SerializedVar /* object */, |
| 1035 | ppapi::proxy::SerializedVar /* property */, |
| 1036 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1037 | PP_Bool /* result */) |
| 1038 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1039 | ppapi::proxy::SerializedVar /* object */, |
| 1040 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 1041 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1042 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1043 | ppapi::proxy::SerializedVar /* object */, |
| 1044 | ppapi::proxy::SerializedVar /* name */, |
| 1045 | ppapi::proxy::SerializedVar /* value */, |
| 1046 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1047 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1048 | ppapi::proxy::SerializedVar /* object */, |
| 1049 | ppapi::proxy::SerializedVar /* method_name */, |
| 1050 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1051 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1052 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1053 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1054 | ppapi::proxy::SerializedVar /* object */, |
| 1055 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1056 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1057 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1058 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1059 | ppapi::proxy::SerializedVar /* var */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1060 | int64 /* object_class */, |
| 1061 | int64 /* object-data */, |
| 1062 | PP_Bool /* result */) |
| 1063 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 1064 | PP_Instance /* instance */, |
| 1065 | int64 /* object_class */, |
| 1066 | int64 /* object_data */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1067 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 6239d34 | 2011-05-06 22:55:47 | [diff] [blame] | 1068 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1069 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1070 | // PPB_Broker. |
| 1071 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, |
| 1072 | PP_Instance /* instance */, |
| 1073 | ppapi::HostResource /* result_resource */) |
| 1074 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, |
| 1075 | ppapi::HostResource /* broker */) |
| 1076 | |
| 1077 | // PPB_Buffer. |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1078 | IPC_SYNC_MESSAGE_ROUTED2_2( |
| 1079 | PpapiHostMsg_PPBBuffer_Create, |
| 1080 | PP_Instance /* instance */, |
| 1081 | uint32_t /* size */, |
| 1082 | ppapi::HostResource /* result_resource */, |
| 1083 | ppapi::proxy::SerializedHandle /* result_shm_handle */) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1084 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1085 | // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1086 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PromiseResolved, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1087 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1088 | uint32_t /* promise_id */) |
| 1089 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_PromiseResolvedWithSession, |
| 1090 | PP_Instance /* instance */, |
| 1091 | uint32_t /* promise_id */, |
[email protected] | a267ff1 | 2013-12-10 07:25:54 | [diff] [blame] | 1092 | ppapi::proxy::SerializedVar /* web_session_id, String */) |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1093 | IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_PromiseRejected, |
| 1094 | PP_Instance /* instance */, |
| 1095 | uint32_t /* promise_id */, |
| 1096 | PP_CdmExceptionCode /* exception_code */, |
| 1097 | int32_t /* system_code */, |
| 1098 | ppapi::proxy::SerializedVar /* error_description, String */) |
[email protected] | da34aa7 | 2013-11-30 05:24:47 | [diff] [blame] | 1099 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SessionMessage, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1100 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1101 | ppapi::proxy::SerializedVar /* web_session_id, String */, |
[email protected] | a6e4fbf | 2012-12-12 05:25:00 | [diff] [blame] | 1102 | ppapi::proxy::SerializedVar /* message, ArrayBuffer */, |
[email protected] | da34aa7 | 2013-11-30 05:24:47 | [diff] [blame] | 1103 | ppapi::proxy::SerializedVar /* destination_url, String */) |
| 1104 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionReady, |
| 1105 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1106 | ppapi::proxy::SerializedVar /* web_session_id, String */) |
[email protected] | da34aa7 | 2013-11-30 05:24:47 | [diff] [blame] | 1107 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SessionClosed, |
| 1108 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1109 | ppapi::proxy::SerializedVar /* web_session_id, String */) |
| 1110 | IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_SessionError, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1111 | PP_Instance /* instance */, |
[email protected] | 0dbea5f | 2014-06-07 08:54:25 | [diff] [blame] | 1112 | ppapi::proxy::SerializedVar /* web_session_id, String */, |
| 1113 | PP_CdmExceptionCode /* exception_code */, |
| 1114 | int32_t /* system_code */, |
| 1115 | ppapi::proxy::SerializedVar /* error_description, String */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1116 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, |
| 1117 | PP_Instance /* instance */, |
| 1118 | PP_Resource /* decrypted_block, PPB_Buffer_Dev */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 1119 | std::string /* serialized_block_info */) |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 1120 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, |
[email protected] | e9d3a102 | 2012-10-11 23:43:55 | [diff] [blame] | 1121 | PP_Instance /* instance */, |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 1122 | PP_DecryptorStreamType /* decoder_type */, |
| 1123 | uint32_t /* request_id */, |
| 1124 | PP_Bool /* success */) |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 1125 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, |
| 1126 | PP_Instance /* instance */, |
| 1127 | PP_DecryptorStreamType /* decoder_type */, |
| 1128 | uint32_t /* request_id */) |
| 1129 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone, |
| 1130 | PP_Instance /* instance */, |
| 1131 | PP_DecryptorStreamType /* decoder_type */, |
| 1132 | uint32_t /* request_id */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1133 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame, |
| 1134 | PP_Instance /* instance */, |
| 1135 | PP_Resource /* decrypted_frame, PPB_Buffer_Dev */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 1136 | std::string /* serialized_block_info */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1137 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples, |
| 1138 | PP_Instance /* instance */, |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 1139 | PP_Resource /* audio_frames, PPB_Buffer_Dev */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 1140 | std::string /* serialized_block_info */) |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 1141 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1142 | |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1143 | // PPB_Testing. |
| 1144 | IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1145 | PpapiHostMsg_PPBTesting_ReadImageData, |
| 1146 | ppapi::HostResource /* device_context_2d */, |
| 1147 | ppapi::HostResource /* image */, |
| 1148 | PP_Point /* top_left */, |
| 1149 | PP_Bool /* result */) |
| 1150 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1151 | PP_Instance /* instance */, |
| 1152 | uint32 /* result */) |
[email protected] | 82ad9b9f | 2013-06-14 00:35:33 | [diff] [blame] | 1153 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBTesting_SimulateInputEvent, |
| 1154 | PP_Instance /* instance */, |
| 1155 | ppapi::InputEventData /* input_event */) |
[email protected] | 38f428f1 | 2013-04-19 14:46:05 | [diff] [blame] | 1156 | IPC_SYNC_MESSAGE_ROUTED1_0( |
| 1157 | PpapiHostMsg_PPBTesting_SetMinimumArrayBufferSizeForShmem, |
| 1158 | uint32_t /* threshold */) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1159 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1160 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1161 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 1162 | // PPB_VideoDecoder_Dev. |
| 1163 | // (Messages from plugin to renderer.) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1164 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, |
| 1165 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1166 | ppapi::HostResource /* context */, |
[email protected] | 2ffc31a | 2011-09-01 03:18:28 | [diff] [blame] | 1167 | PP_VideoDecoder_Profile /* profile */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1168 | ppapi::HostResource /* result */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1169 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1170 | ppapi::HostResource /* video_decoder */, |
| 1171 | ppapi::HostResource /* bitstream buffer */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1172 | int32 /* bitstream buffer id */, |
[email protected] | b31199e | 2012-12-12 00:48:29 | [diff] [blame] | 1173 | uint32 /* size of buffer */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1174 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1175 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1176 | std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
| 1177 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1178 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1179 | int32_t /* picture buffer id */) |
| 1180 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1181 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1182 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1183 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1184 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1185 | ppapi::HostResource /* video_decoder */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1186 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 1187 | // PPB_VideoDecoder_Dev. |
| 1188 | // (Messages from renderer to plugin to notify it to run callbacks.) |
| 1189 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
| 1190 | ppapi::HostResource /* video_decoder */, |
| 1191 | int32_t /* bitstream buffer id */, |
| 1192 | int32_t /* PP_CompletionCallback result */) |
| 1193 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, |
| 1194 | ppapi::HostResource /* video_decoder */, |
| 1195 | int32_t /* PP_CompletionCallback result */) |
| 1196 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, |
| 1197 | ppapi::HostResource /* video_decoder */, |
| 1198 | int32_t /* PP_CompletionCallback result */) |
| 1199 | |
| 1200 | // PPP_VideoDecoder_Dev. |
| 1201 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers, |
| 1202 | ppapi::HostResource /* video_decoder */, |
| 1203 | uint32_t /* requested number of buffers */, |
| 1204 | PP_Size /* dimensions of buffers */, |
| 1205 | uint32_t /* texture_target */) |
| 1206 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, |
| 1207 | ppapi::HostResource /* video_decoder */, |
| 1208 | int32_t /* picture buffer id */) |
| 1209 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady, |
| 1210 | ppapi::HostResource /* video_decoder */, |
| 1211 | PP_Picture_Dev /* output picture */) |
| 1212 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError, |
| 1213 | ppapi::HostResource /* video_decoder */, |
| 1214 | PP_VideoDecodeError_Dev /* error */) |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1215 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1216 | |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 1217 | // PPB_X509Certificate_Private |
| 1218 | IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, |
| 1219 | std::vector<char> /* der */, |
| 1220 | bool /* succeeded */, |
| 1221 | ppapi::PPB_X509Certificate_Fields /* result */) |
| 1222 | |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1223 | //----------------------------------------------------------------------------- |
| 1224 | // Resource call/reply messages. |
| 1225 | // |
| 1226 | // These are the new-style resource implementations where the resource is only |
| 1227 | // implemented in the proxy and "resource messages" are sent between this and a |
| 1228 | // host object. Resource messages are a wrapper around some general routing |
| 1229 | // information and a separate message of a type defined by the specific resource |
| 1230 | // sending/receiving it. The extra paremeters allow the nested message to be |
| 1231 | // routed automatically to the correct resource. |
| 1232 | |
| 1233 | // Notification that a resource has been created in the plugin. The nested |
| 1234 | // message will be resource-type-specific. |
| 1235 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated, |
| 1236 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1237 | PP_Instance /* instance */, |
| 1238 | IPC::Message /* nested_msg */) |
| 1239 | |
| 1240 | // Notification that a resource has been destroyed in the plugin. |
| 1241 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed, |
| 1242 | PP_Resource /* resource */) |
| 1243 | |
[email protected] | db70c13 | 2012-12-05 00:41:20 | [diff] [blame] | 1244 | // Most resources are created by the plugin, which then sends a ResourceCreated |
| 1245 | // message to create a corresponding ResourceHost in the renderer or browser |
| 1246 | // host process. However, some resources are first created in the host and |
| 1247 | // "pushed" or returned to the plugin. |
| 1248 | // |
| 1249 | // In this case, the host will create a "pending" ResourceHost object which |
| 1250 | // is identified by an ID. The ID is sent to the plugin process and the |
| 1251 | // PluginResource object is created. This message is sent from the plugin to |
| 1252 | // the host process to connect the PluginResource and the pending ResourceHost |
| 1253 | // (at which point, it's no longer pending). |
| 1254 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost, |
| 1255 | PP_Resource /* resource */, |
| 1256 | int /* pending_host_id */) |
| 1257 | |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1258 | // A resource call is a request from the plugin to the host. It may or may not |
| 1259 | // require a reply, depending on the params. The nested message will be |
| 1260 | // resource-type-specific. |
| 1261 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall, |
| 1262 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1263 | IPC::Message /* nested_msg */) |
[email protected] | 0d586af | 2013-07-31 21:58:06 | [diff] [blame] | 1264 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_InProcessResourceCall, |
| 1265 | int /* routing_id */, |
| 1266 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1267 | IPC::Message /* nested_msg */) |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1268 | |
| 1269 | // A resource reply is a response to a ResourceCall from a host to the |
| 1270 | // plugin. The resource ID + sequence number in the params will correspond to |
| 1271 | // that of the previous ResourceCall. |
| 1272 | IPC_MESSAGE_CONTROL2( |
| 1273 | PpapiPluginMsg_ResourceReply, |
| 1274 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1275 | IPC::Message /* nested_msg */) |
[email protected] | 0d586af | 2013-07-31 21:58:06 | [diff] [blame] | 1276 | IPC_MESSAGE_ROUTED2( |
| 1277 | PpapiHostMsg_InProcessResourceReply, |
| 1278 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1279 | IPC::Message /* nested_msg */) |
| 1280 | |
[email protected] | ff44fc1 | 2012-10-03 00:52:16 | [diff] [blame] | 1281 | IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, |
| 1282 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1283 | IPC::Message /* nested_msg */, |
| 1284 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1285 | IPC::Message /* reply_msg */) |
| 1286 | |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1287 | // 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] | 1288 | // ResourceHosts in the browser. It contains the process ID of the plugin and |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1289 | // the instance of the plugin for which to create the resource for. params |
| 1290 | // contains the sequence number for the message to track the response. |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1291 | // The nested messages are ResourceHost creation messages. |
[email protected] | 44dc236 | 2013-07-09 23:41:53 | [diff] [blame] | 1292 | IPC_MESSAGE_CONTROL5( |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1293 | PpapiHostMsg_CreateResourceHostsFromHost, |
[email protected] | 44dc236 | 2013-07-09 23:41:53 | [diff] [blame] | 1294 | int /* routing_id */, |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1295 | int /* child_process_id */, |
| 1296 | ppapi::proxy::ResourceMessageCallParams /* params */, |
| 1297 | PP_Instance /* instance */, |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1298 | std::vector<IPC::Message> /* nested_msgs */) |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1299 | |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1300 | // This message is sent from the browser to the renderer when it has created |
| 1301 | // ResourceHosts for the renderer. It contains the sequence number that was sent |
| 1302 | // in the request and the IDs of the pending ResourceHosts which were created in |
| 1303 | // the browser. These IDs are only useful for the plugin which can attach to the |
| 1304 | // ResourceHosts in the browser. |
[email protected] | 44dc236 | 2013-07-09 23:41:53 | [diff] [blame] | 1305 | IPC_MESSAGE_ROUTED2( |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1306 | PpapiHostMsg_CreateResourceHostsFromHostReply, |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1307 | int32_t /* sequence */, |
[email protected] | 6790107 | 2013-08-22 00:43:40 | [diff] [blame] | 1308 | std::vector<int> /* pending_host_ids */) |
[email protected] | c542557 | 2013-06-07 22:15:25 | [diff] [blame] | 1309 | |
[email protected] | eccf8031 | 2012-07-14 15:43:42 | [diff] [blame] | 1310 | //----------------------------------------------------------------------------- |
| 1311 | // Messages for resources using call/reply above. |
| 1312 | |
[email protected] | 83d12c8d | 2012-12-10 19:28:46 | [diff] [blame] | 1313 | // Broker ---------------------------------------------------------------------- |
| 1314 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) |
| 1315 | |
| 1316 | // Queries whether the plugin has permission to connect to the Pepper broker. |
| 1317 | // The response is contained in the error value of the |
| 1318 | // ResourceMessageReplyParams in the reply message. |
| 1319 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) |
| 1320 | |
[email protected] | 4564949 | 2014-01-24 20:49:34 | [diff] [blame] | 1321 | // UMA |
| 1322 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_Create) |
| 1323 | IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomTimes, |
| 1324 | std::string /* name */, |
| 1325 | int64_t /* sample */, |
| 1326 | int64_t /* min */, |
| 1327 | int64_t /* max */, |
| 1328 | uint32_t /* bucket_count */) |
| 1329 | IPC_MESSAGE_CONTROL5(PpapiHostMsg_UMA_HistogramCustomCounts, |
| 1330 | std::string /* name */, |
| 1331 | int32_t /* sample */, |
| 1332 | int32_t /* min */, |
| 1333 | int32_t /* max */, |
| 1334 | uint32_t /* bucket_count */) |
| 1335 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_UMA_HistogramEnumeration, |
| 1336 | std::string /* name */, |
| 1337 | int32_t /* sample */, |
| 1338 | int32_t /* boundary_value */) |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1339 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UMA_IsCrashReportingEnabled) |
| 1340 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UMA_IsCrashReportingEnabledReply) |
[email protected] | 4564949 | 2014-01-24 20:49:34 | [diff] [blame] | 1341 | |
[email protected] | c44620b | 2014-06-16 14:20:26 | [diff] [blame] | 1342 | // Compositor |
| 1343 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Compositor_Create) |
| 1344 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_Compositor_CommitLayers, |
| 1345 | std::vector<ppapi::CompositorLayerData> /* layers */, |
| 1346 | bool /* reset */) |
| 1347 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Compositor_CommitLayersReply) |
| 1348 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_Compositor_ReleaseResource, |
| 1349 | int32_t /* id */, |
| 1350 | uint32_t /* sync_point */, |
| 1351 | bool /* is_lost */) |
| 1352 | |
[email protected] | eccf8031 | 2012-07-14 15:43:42 | [diff] [blame] | 1353 | // File chooser. |
| 1354 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1355 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1356 | bool /* save_as */, |
| 1357 | bool /* open_multiple */, |
| 1358 | std::string /* suggested_file_name */, |
| 1359 | std::vector<std::string> /* accept_mime_types */) |
| 1360 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 1361 | std::vector<ppapi::FileRefCreateInfo> /* files */) |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1362 | |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1363 | // FileIO |
| 1364 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) |
| 1365 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, |
| 1366 | PP_Resource /* file_ref_resource */, |
| 1367 | int32_t /* open_flags */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1368 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileIO_OpenReply, |
| 1369 | PP_Resource /* quota_file_system */, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1370 | int64_t /* file_size */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1371 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_Close, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1372 | ppapi::FileGrowth /* file_growth */) |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1373 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, |
| 1374 | PP_Time /* last_access_time */, |
| 1375 | PP_Time /* last_modified_time */) |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1376 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, |
| 1377 | int64_t /* length */) |
| 1378 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) |
[email protected] | 8f96cef | 2013-04-01 16:51:13 | [diff] [blame] | 1379 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) |
| 1380 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) |
[email protected] | c7714472 | 2013-01-19 04:16:36 | [diff] [blame] | 1381 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) |
| 1382 | |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1383 | // FileRef |
[email protected] | 7d63439 | 2013-07-22 21:03:21 | [diff] [blame] | 1384 | // Creates a FileRef to a path on an external file system. This message may |
| 1385 | // only be sent from the renderer. |
[email protected] | 2e0ec62 | 2014-04-11 07:18:32 | [diff] [blame] | 1386 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS, |
[email protected] | 7d63439 | 2013-07-22 21:03:21 | [diff] [blame] | 1387 | base::FilePath /* external_path */) |
| 1388 | |
[email protected] | 2e0ec62 | 2014-04-11 07:18:32 | [diff] [blame] | 1389 | // Creates a FileRef to a path on a file system that uses fileapi. |
| 1390 | // This message may be sent from the renderer or the plugin. |
| 1391 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI, |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1392 | PP_Resource /* file_system */, |
| 1393 | std::string /* internal_path */) |
| 1394 | |
| 1395 | // Requests that the browser create a directory at the location indicated by |
| 1396 | // the FileRef. |
| 1397 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_MakeDirectory, |
[email protected] | 491af3c | 2014-01-10 11:34:12 | [diff] [blame] | 1398 | int32_t /* make_directory_flags */) |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1399 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_MakeDirectoryReply) |
| 1400 | |
| 1401 | // Requests that the browser update the last accessed and last modified times |
| 1402 | // at the location indicated by the FileRef. |
| 1403 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_Touch, |
| 1404 | PP_Time /* last_accessed */, |
| 1405 | PP_Time /* last_modified */) |
| 1406 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_TouchReply) |
| 1407 | |
| 1408 | // Requests that the browser delete a file or directory at the location |
| 1409 | // indicated by the FileRef. |
| 1410 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Delete) |
| 1411 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_DeleteReply) |
| 1412 | |
| 1413 | // Requests that the browser rename a file or directory at the location |
| 1414 | // indicated by the FileRef. |
| 1415 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_Rename, |
| 1416 | PP_Resource /* new_file_ref */) |
| 1417 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileRef_RenameReply) |
| 1418 | |
| 1419 | // Requests that the browser retrieve metadata information for a file or |
| 1420 | // directory at the location indicated by the FileRef. |
| 1421 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_Query) |
| 1422 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_QueryReply, |
| 1423 | PP_FileInfo /* file_info */) |
| 1424 | |
| 1425 | // Requests that the browser retrieve then entries in a directory at the |
| 1426 | // location indicated by the FileRef. |
| 1427 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_ReadDirectoryEntries) |
| 1428 | |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 1429 | // FileRefCreateInfo does not provide file type information, so two |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1430 | // corresponding vectors are returned. |
| 1431 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileRef_ReadDirectoryEntriesReply, |
[email protected] | c6420f08 | 2013-09-18 22:42:41 | [diff] [blame] | 1432 | std::vector<ppapi::FileRefCreateInfo> /* files */, |
[email protected] | d1967ed | 2013-06-18 01:10:21 | [diff] [blame] | 1433 | std::vector<PP_FileType> /* file_types */) |
| 1434 | |
| 1435 | // Requests that the browser reply with the absolute path to the indicated |
| 1436 | // file. |
| 1437 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileRef_GetAbsolutePath) |
| 1438 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileRef_GetAbsolutePathReply, |
| 1439 | std::string /* absolute_path */) |
| 1440 | |
[email protected] | ef9225f | 2013-04-12 20:28:14 | [diff] [blame] | 1441 | // FileSystem |
| 1442 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create, |
| 1443 | PP_FileSystemType /* type */) |
| 1444 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open, |
| 1445 | int64_t /* expected_size */) |
| 1446 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply) |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 1447 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_InitIsolatedFileSystem, |
| 1448 | std::string /* fsid */, |
| 1449 | PP_IsolatedFileSystemType_Private /* type */) |
[email protected] | d6e3c79 | 2013-08-26 19:30:27 | [diff] [blame] | 1450 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_InitIsolatedFileSystemReply) |
[email protected] | 17d69d8 | 2013-10-31 10:59:03 | [diff] [blame] | 1451 | // Passed from renderer to browser. Creates an already-open file system with a |
| 1452 | // given |root_url| and |file_system_type|. |
| 1453 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_CreateFromRenderer, |
| 1454 | std::string /* root_url */, |
| 1455 | PP_FileSystemType /* file_system_type */) |
| 1456 | // Nested within a ResourceVar for file systems being passed from the renderer |
| 1457 | // to the plugin. Creates an already-open file system resource on the plugin, |
| 1458 | // linked to the existing resource host given in the ResourceVar. |
| 1459 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileSystem_CreateFromPendingHost, |
| 1460 | PP_FileSystemType /* file_system_type */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1461 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileSystem_ReserveQuota, |
| 1462 | int64_t /* amount */, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1463 | ppapi::FileGrowthMap /* file_growths */) |
[email protected] | 7a90b85 | 2013-12-28 17:54:27 | [diff] [blame] | 1464 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FileSystem_ReserveQuotaReply, |
| 1465 | int64_t /* amount */, |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 1466 | ppapi::FileSizeMap /* file_sizes */) |
[email protected] | ef9225f | 2013-04-12 20:28:14 | [diff] [blame] | 1467 | |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1468 | // Gamepad. |
| 1469 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
[email protected] | 00c0d04 | 2012-09-10 07:06:39 | [diff] [blame] | 1470 | |
| 1471 | // Requests that the gamepad host send the shared memory handle to the plugin |
| 1472 | // process. |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1473 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) |
[email protected] | 00c0d04 | 2012-09-10 07:06:39 | [diff] [blame] | 1474 | |
| 1475 | // Reply to a RequestMemory call. This supplies the shared memory handle. The |
| 1476 | // actual handle is passed in the ReplyParams struct. |
| 1477 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) |
| 1478 | |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1479 | |
| 1480 | // Graphics2D, plugin -> host |
| 1481 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_Create, |
| 1482 | PP_Size /* size */, |
| 1483 | PP_Bool /* is_always_opaque */) |
| 1484 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_Graphics2D_PaintImageData, |
| 1485 | ppapi::HostResource /* image_data */, |
| 1486 | PP_Point /* top_left */, |
| 1487 | bool /* src_rect_specified */, |
| 1488 | PP_Rect /* src_rect */) |
| 1489 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_Graphics2D_Scroll, |
| 1490 | bool /* clip_specified */, |
| 1491 | PP_Rect /* clip */, |
| 1492 | PP_Point /* amount */) |
| 1493 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_ReplaceContents, |
| 1494 | ppapi::HostResource /* image_data */) |
[email protected] | bd51beb | 2014-04-03 00:39:47 | [diff] [blame] | 1495 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_SetScale, |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1496 | float /* scale */) |
| 1497 | |
| 1498 | // Graphics2D, plugin -> host -> plugin |
[email protected] | 8062ab26 | 2014-05-27 16:56:43 | [diff] [blame] | 1499 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Graphics2D_Flush, |
| 1500 | std::vector<ui::LatencyInfo> /* latency_info */) |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1501 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_FlushAck) |
| 1502 | |
| 1503 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_Graphics2D_ReadImageData, |
| 1504 | PP_Resource /* image */, |
| 1505 | PP_Point /* top_left */) |
| 1506 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Graphics2D_ReadImageDataAck) |
| 1507 | |
[email protected] | 43594574 | 2013-11-08 06:31:11 | [diff] [blame] | 1508 | // IsolatedFileSystem |
| 1509 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_IsolatedFileSystem_Create) |
| 1510 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_IsolatedFileSystem_BrowserOpen, |
| 1511 | PP_IsolatedFileSystemType_Private /* type */) |
| 1512 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_IsolatedFileSystem_BrowserOpenReply, |
| 1513 | std::string /* fsid */) |
| 1514 | |
[email protected] | 03bf382f | 2014-01-16 05:49:50 | [diff] [blame] | 1515 | // MediaStream ----------------------------------------------------------------- |
[email protected] | 2b7a6d3 | 2014-02-06 02:50:23 | [diff] [blame] | 1516 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamAudioTrack_CreateFromPendingHost, |
| 1517 | std::string /* track_id */) |
[email protected] | 5e19b8b | 2014-06-03 13:36:42 | [diff] [blame] | 1518 | IPC_MESSAGE_CONTROL1( |
| 1519 | PpapiHostMsg_MediaStreamAudioTrack_Configure, |
| 1520 | ppapi::MediaStreamAudioTrackShared::Attributes /* attributes */) |
| 1521 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_MediaStreamAudioTrack_ConfigureReply) |
[email protected] | 03bf382f | 2014-01-16 05:49:50 | [diff] [blame] | 1522 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_CreateFromPendingHost, |
| 1523 | std::string /* track_id */) |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1524 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamVideoTrack_Create) |
[email protected] | 61ebd74e | 2014-02-26 00:44:05 | [diff] [blame] | 1525 | IPC_MESSAGE_CONTROL1( |
| 1526 | PpapiHostMsg_MediaStreamVideoTrack_Configure, |
| 1527 | ppapi::MediaStreamVideoTrackShared::Attributes /* attributes */) |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1528 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamVideoTrack_ConfigureReply, |
| 1529 | std::string /* track_id */) |
[email protected] | 2b7a6d3 | 2014-02-06 02:50:23 | [diff] [blame] | 1530 | |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1531 | // Message for init buffers. It also takes a shared memory handle which is put |
| 1532 | // in the outer ResourceReplyMessage. |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1533 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_MediaStreamTrack_InitBuffers, |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1534 | int32_t /* number_of_buffers */, |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1535 | int32_t /* buffer_size */, |
| 1536 | bool /* readonly */) |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1537 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffer, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1538 | int32_t /* index */) |
[email protected] | a2c5dcd | 2014-02-08 03:20:15 | [diff] [blame] | 1539 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_MediaStreamTrack_EnqueueBuffer, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1540 | int32_t /* index */) |
[email protected] | 5294ec9 | 2014-05-05 23:36:52 | [diff] [blame] | 1541 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_MediaStreamTrack_EnqueueBuffers, |
[email protected] | b2c1c33 | 2014-06-26 06:08:40 | [diff] [blame] | 1542 | std::vector<int32_t> /* indices */) |
[email protected] | 03bf382f | 2014-01-16 05:49:50 | [diff] [blame] | 1543 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_MediaStreamTrack_Close) |
| 1544 | |
[email protected] | 07d0a6bf | 2013-09-17 04:15:10 | [diff] [blame] | 1545 | // NetworkMonitor. |
| 1546 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkMonitor_Create) |
| 1547 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkMonitor_NetworkList, |
| 1548 | ppapi::proxy::SerializedNetworkList /* network_list */) |
| 1549 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_NetworkMonitor_Forbidden) |
| 1550 | |
[email protected] | 226dea4 | 2013-06-24 21:05:36 | [diff] [blame] | 1551 | // NetworkProxy ---------------------------------------------------------------- |
| 1552 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_NetworkProxy_Create) |
| 1553 | |
| 1554 | // Query the browser for the proxy server to use for the given URL. |
| 1555 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_NetworkProxy_GetProxyForURL, |
| 1556 | std::string /* url */) |
| 1557 | |
| 1558 | // Reply message for GetProxyForURL containing the proxy server. |
| 1559 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_NetworkProxy_GetProxyForURLReply, |
| 1560 | std::string /* proxy */) |
| 1561 | |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 1562 | // TrueTypeFont. |
| 1563 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_Create) |
| 1564 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFontSingleton_GetFontFamilies) |
| 1565 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontFamiliesReply, |
| 1566 | std::vector<std::string> /* font_families */) |
[email protected] | 720e1e62 | 2013-04-19 03:50:35 | [diff] [blame] | 1567 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily, |
| 1568 | std::string /* family */) |
| 1569 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply, |
| 1570 | std::vector<ppapi::proxy::SerializedTrueTypeFontDesc> |
| 1571 | /* fonts */) |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 1572 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TrueTypeFont_Create, |
| 1573 | ppapi::proxy::SerializedTrueTypeFontDesc /* desc */) |
[email protected] | c0ec8161 | 2014-06-26 21:28:18 | [diff] [blame] | 1574 | // Unsolicited reply to return the actual font's desc to the plugin. |
| 1575 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TrueTypeFont_CreateReply, |
| 1576 | ppapi::proxy::SerializedTrueTypeFontDesc /* desc */, |
| 1577 | int32_t /* result */) |
[email protected] | 725056b7 | 2013-03-16 09:57:51 | [diff] [blame] | 1578 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TrueTypeFont_GetTableTags) |
| 1579 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableTagsReply, |
| 1580 | std::vector<uint32_t> /* tags */) |
| 1581 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_TrueTypeFont_GetTable, |
| 1582 | uint32_t /* table */, |
| 1583 | int32_t /* offset */, |
| 1584 | int32_t /* max_data_length */) |
| 1585 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TrueTypeFont_GetTableReply, |
| 1586 | std::string /* data */) |
| 1587 | |
[email protected] | f31e55c | 2013-06-20 08:44:37 | [diff] [blame] | 1588 | // Host Resolver --------------------------------------------------------------- |
| 1589 | // Creates a PPB_HostResolver resource. |
| 1590 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_Create) |
| 1591 | |
| 1592 | // Creates a PPB_HostResolver_Private resource. |
| 1593 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_HostResolver_CreatePrivate) |
| 1594 | |
| 1595 | // Resolves the given hostname. |
| 1596 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_HostResolver_Resolve, |
[email protected] | 6a68537 | 2013-02-12 12:50:46 | [diff] [blame] | 1597 | ppapi::HostPortPair /* host_port */, |
| 1598 | PP_HostResolver_Private_Hint /* hint */) |
[email protected] | f31e55c | 2013-06-20 08:44:37 | [diff] [blame] | 1599 | |
| 1600 | // This message is a reply to HostResolver_Resolve. On success, |
| 1601 | // |canonical_name| contains the canonical name of the host; |net_address_list| |
| 1602 | // is a list of network addresses. On failure, both fields are set to empty. |
| 1603 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, |
[email protected] | 6a68537 | 2013-02-12 12:50:46 | [diff] [blame] | 1604 | std::string /* canonical_name */, |
| 1605 | std::vector<PP_NetAddress_Private> /* net_address_list */) |
[email protected] | 08e65c1 | 2012-11-29 18:53:29 | [diff] [blame] | 1606 | |
[email protected] | b1a9d9a9 | 2013-09-17 20:58:27 | [diff] [blame] | 1607 | // Platform Verification ------------------------------------------------------- |
| 1608 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PlatformVerification_Create) |
[email protected] | b1a9d9a9 | 2013-09-17 20:58:27 | [diff] [blame] | 1609 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PlatformVerification_ChallengePlatform, |
| 1610 | std::string /* service_id */, |
| 1611 | std::vector<uint8_t> /* challenge */) |
| 1612 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PlatformVerification_ChallengePlatformReply, |
| 1613 | std::vector<uint8_t> /* signed_data */, |
| 1614 | std::vector<uint8_t> /* signed_data_signature */, |
| 1615 | std::string /* platform_key_certificate */) |
| 1616 | |
[email protected] | e9cb0b79 | 2012-09-07 07:11:06 | [diff] [blame] | 1617 | // Printing. |
| 1618 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
| 1619 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
| 1620 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
| 1621 | PP_PrintSettings_Dev /* print_settings */) |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1622 | |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1623 | // TCP Socket ------------------------------------------------------------------ |
| 1624 | // Creates a PPB_TCPSocket resource. |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 1625 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Create, |
| 1626 | ppapi::TCPSocketVersion /* version */) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1627 | |
| 1628 | // Creates a PPB_TCPSocket_Private resource. |
| 1629 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate) |
| 1630 | |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 1631 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Bind, |
| 1632 | PP_NetAddress_Private /* net_addr */) |
| 1633 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_BindReply, |
| 1634 | PP_NetAddress_Private /* local_addr */) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1635 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect, |
| 1636 | std::string /* host */, |
| 1637 | uint16_t /* port */) |
| 1638 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress, |
| 1639 | PP_NetAddress_Private /* net_addr */) |
| 1640 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply, |
| 1641 | PP_NetAddress_Private /* local_addr */, |
| 1642 | PP_NetAddress_Private /* remote_addr */) |
| 1643 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake, |
| 1644 | std::string /* server_name */, |
| 1645 | uint16_t /* server_port */, |
| 1646 | std::vector<std::vector<char> > /* trusted_certs */, |
| 1647 | std::vector<std::vector<char> > /* untrusted_certs */) |
| 1648 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply, |
| 1649 | ppapi::PPB_X509Certificate_Fields /* certificate_fields */) |
| 1650 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read, |
| 1651 | int32_t /* bytes_to_read */) |
| 1652 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply, |
| 1653 | std::string /* data */) |
| 1654 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write, |
| 1655 | std::string /* data */) |
| 1656 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply) |
[email protected] | 9257679 | 2013-09-20 15:29:13 | [diff] [blame] | 1657 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Listen, |
| 1658 | int32_t /* backlog */) |
| 1659 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_ListenReply) |
| 1660 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Accept) |
| 1661 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPSocket_AcceptReply, |
| 1662 | int /* pending_host_id*/, |
| 1663 | PP_NetAddress_Private /* local_addr */, |
| 1664 | PP_NetAddress_Private /* remote_addr */) |
| 1665 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Close) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1666 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption, |
| 1667 | PP_TCPSocket_Option /* name */, |
| 1668 | ppapi::SocketOptionData /* value */) |
| 1669 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply) |
| 1670 | |
[email protected] | 1f9ed19 | 2013-08-05 11:59:42 | [diff] [blame] | 1671 | // TCP Server Socket ----------------------------------------------------------- |
| 1672 | // Creates a PPB_TCPServerSocket_Private resource. |
| 1673 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) |
| 1674 | |
| 1675 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, |
| 1676 | PP_NetAddress_Private /* addr */, |
| 1677 | int32_t /* backlog */) |
| 1678 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, |
| 1679 | PP_NetAddress_Private /* local_addr */) |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1680 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept) |
[email protected] | 1f9ed19 | 2013-08-05 11:59:42 | [diff] [blame] | 1681 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, |
[email protected] | 8522332e | 2013-08-28 19:42:59 | [diff] [blame] | 1682 | int /* pending_resource_id */, |
[email protected] | 1f9ed19 | 2013-08-05 11:59:42 | [diff] [blame] | 1683 | PP_NetAddress_Private /* local_addr */, |
| 1684 | PP_NetAddress_Private /* remote_addr */) |
| 1685 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) |
| 1686 | |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1687 | // UDP Socket ------------------------------------------------------------------ |
| 1688 | // Creates a PPB_UDPSocket resource. |
| 1689 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) |
| 1690 | |
| 1691 | // Creates a PPB_UDPSocket_Private resource. |
| 1692 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) |
| 1693 | |
| 1694 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, |
[email protected] | 8de1329 | 2013-06-24 06:04:39 | [diff] [blame] | 1695 | PP_UDPSocket_Option /* name */, |
[email protected] | 64a61fc | 2013-06-19 13:30:59 | [diff] [blame] | 1696 | ppapi::SocketOptionData /* value */) |
| 1697 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_UDPSocket_SetOptionReply) |
| 1698 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_Bind, |
| 1699 | PP_NetAddress_Private /* net_addr */) |
| 1700 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_BindReply, |
| 1701 | PP_NetAddress_Private /* bound_addr */) |
| 1702 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_UDPSocket_RecvFrom, |
| 1703 | int32_t /* num_bytes */) |
| 1704 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_UDPSocket_RecvFromReply, |
| 1705 | std::string /* data */, |
| 1706 | PP_NetAddress_Private /* remote_addr */) |
| 1707 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SendTo, |
| 1708 | std::string /* data */, |
| 1709 | PP_NetAddress_Private /* net_addr */) |
| 1710 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_UDPSocket_SendToReply, |
| 1711 | int32_t /* bytes_written */) |
| 1712 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Close) |
| 1713 | |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 1714 | // URLLoader ------------------------------------------------------------------ |
| 1715 | |
| 1716 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Create) |
| 1717 | |
| 1718 | // These messages correspond to PPAPI calls and all should get a |
| 1719 | // CallbackComplete message. |
| 1720 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_Open, |
| 1721 | ppapi::URLRequestInfoData /* request_data */) |
| 1722 | |
| 1723 | // The plugin can tell the host to defer a load to hold off on sending more |
| 1724 | // data because the buffer in the plugin is full. When defers_loading is set to |
| 1725 | // false, data streaming will resume. |
| 1726 | // |
| 1727 | // When auditing redirects (no auto follow) the load will be automatically |
| 1728 | // deferred each time we get a redirect. The plugin will reset this to false |
| 1729 | // by sending this message when it wants to continue following the redirect. |
| 1730 | // |
| 1731 | // When streaming data, the host may still send more data after this call (for |
| 1732 | // example, it could already be in-flight at the time of this request). |
| 1733 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_URLLoader_SetDeferLoading, |
| 1734 | bool /* defers_loading */) |
| 1735 | |
| 1736 | // Closes the URLLoader. There is no reply. |
| 1737 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_Close) |
| 1738 | |
| 1739 | // Requests that cross-site restrictions be ignored. The plugin must have |
| 1740 | // the private permission set. Otherwise this message will be ignored by the |
| 1741 | // renderer. There is no reply. |
| 1742 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_URLLoader_GrantUniversalAccess) |
| 1743 | |
| 1744 | // Push notification that a response is available. |
| 1745 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_ReceivedResponse, |
| 1746 | ppapi::URLResponseInfoData /* response */) |
| 1747 | |
| 1748 | // Push notification with load data from the renderer. It is a custom generated |
| 1749 | // message with the response data (array of bytes stored via WriteData) |
| 1750 | // appended. |
| 1751 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_URLLoader_SendData) |
| 1752 | |
| 1753 | // Push notification indicating that all data has been sent, either via |
| 1754 | // SendData or by streaming it to a file. Note that since this is a push |
| 1755 | // notification, we don't use the result field of the ResourceMessageReply. |
| 1756 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_URLLoader_FinishedLoading, |
| 1757 | int32_t /* result */) |
| 1758 | |
| 1759 | // Push notification from the renderer to the plugin to tell it about download |
| 1760 | // and upload progress. This will only be sent if the plugin has requested |
| 1761 | // progress updates, and only the fields requested by the plugin will be |
| 1762 | // valid. |
| 1763 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_URLLoader_UpdateProgress, |
| 1764 | int64_t /* bytes_sent */, |
| 1765 | int64_t /* total_bytes_to_be_sent */, |
| 1766 | int64_t /* bytes_received */, |
| 1767 | int64_t /* total_bytes_to_be_received */) |
| 1768 | |
[email protected] | 30e1cb75 | 2013-03-19 20:42:33 | [diff] [blame] | 1769 | // Shared memory --------------------------------------------------------------- |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 1770 | |
[email protected] | 30e1cb75 | 2013-03-19 20:42:33 | [diff] [blame] | 1771 | // Creates shared memory on the host side, returning a handle to the shared |
| 1772 | // memory on the plugin and keeping the memory mapped in on the host. |
| 1773 | // We return a "host handle_id" that can be mapped back to the |
| 1774 | // handle on the host side by PpapiGlobals::UntrackSharedMemoryHandle(). |
| 1775 | IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_SharedMemory_CreateSharedMemory, |
| 1776 | PP_Instance /* instance */, |
| 1777 | uint32_t /* size */, |
| 1778 | int /* host_handle_id */, |
| 1779 | ppapi::proxy::SerializedHandle /* plugin_handle */) |
| 1780 | |
[email protected] | 558c190 | 2013-06-20 07:59:15 | [diff] [blame] | 1781 | // MediaStream ----------------------------------------------------------------- |
| 1782 | |
| 1783 | // VideoDestination Private. |
| 1784 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Create) |
| 1785 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDestination_Open, |
| 1786 | std::string /* stream_url */) |
| 1787 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDestination_OpenReply) |
| 1788 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDestination_PutFrame, |
| 1789 | ppapi::HostResource /* image_data */, |
| 1790 | PP_TimeTicks /* timestamp */) |
| 1791 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDestination_Close) |
| 1792 | |
| 1793 | // VideoSource Private. |
| 1794 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Create) |
| 1795 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoSource_Open, |
| 1796 | std::string /* stream_url */) |
| 1797 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoSource_OpenReply) |
| 1798 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_GetFrame) |
| 1799 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoSource_GetFrameReply, |
| 1800 | ppapi::HostResource /* resource_id */, |
| 1801 | PP_ImageDataDesc /* image_data_desc */, |
| 1802 | PP_TimeTicks /* timestamp */) |
| 1803 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoSource_Close) |
| 1804 | |
[email protected] | 47cb253f | 2013-05-16 01:50:40 | [diff] [blame] | 1805 | // WebSocket ------------------------------------------------------------------- |
| 1806 | |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1807 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
| 1808 | |
| 1809 | // Establishes the connection to a server. This message requires |
| 1810 | // WebSocket_ConnectReply as a reply message. |
| 1811 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, |
| 1812 | std::string /* url */, |
| 1813 | std::vector<std::string> /* protocols */) |
| 1814 | |
| 1815 | // Closes established connection with graceful closing handshake. This message |
| 1816 | // requires WebSocket_CloseReply as a reply message. |
| 1817 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close, |
| 1818 | int32_t /* code */, |
| 1819 | std::string /* reason */) |
| 1820 | |
| 1821 | // Sends a text frame to the server. No reply is defined. |
| 1822 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText, |
| 1823 | std::string /* message */) |
| 1824 | |
| 1825 | // Sends a binary frame to the server. No reply is defined. |
| 1826 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary, |
| 1827 | std::vector<uint8_t> /* message */) |
| 1828 | |
| 1829 | // Fails the connection. This message invokes RFC6455 defined |
| 1830 | // _Fail the WebSocket Connection_ operation. No reply is defined. |
| 1831 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail, |
| 1832 | std::string /* message */) |
| 1833 | |
| 1834 | // This message is a reply to WebSocket_Connect. If the |url| and |protocols| |
| 1835 | // are invalid, WebSocket_ConnectReply is issued immediately and it contains |
| 1836 | // proper error code in its result. Otherwise, WebSocket_ConnectReply is sent |
| 1837 | // with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed |
| 1838 | // |protocols|, but a result of opening handshake negotiation. If the |
| 1839 | // connection can not be established successfully, WebSocket_ConnectReply is |
| 1840 | // not issued, but WebSocket_ClosedReply is sent instead. |
| 1841 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply, |
| 1842 | std::string /* url */, |
| 1843 | std::string /* protocol */) |
| 1844 | |
| 1845 | // This message is a reply to WebSocket_Close. If the operation fails, |
| 1846 | // WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED. |
| 1847 | // Otherwise, CloseReply will be issued after the closing handshake is |
| 1848 | // finished. All arguments will be valid iff the result is PP_OK and it means |
| 1849 | // that the client initiated closing handshake is finished gracefully. |
| 1850 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1851 | uint64_t /* buffered_amount */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1852 | bool /* was_clean */, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1853 | uint16_t /* code */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1854 | std::string /* reason */) |
| 1855 | |
| 1856 | // Unsolicited reply message to transmit a receiving text frame. |
| 1857 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply, |
| 1858 | std::string /* message */) |
| 1859 | |
| 1860 | // Unsolicited reply message to transmit a receiving binary frame. |
| 1861 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply, |
| 1862 | std::vector<uint8_t> /* message */) |
| 1863 | |
| 1864 | // Unsolicited reply message to notify a error on underlying network connetion. |
| 1865 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply) |
| 1866 | |
| 1867 | // Unsolicited reply message to update the buffered amount value. |
| 1868 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1869 | uint64_t /* buffered_amount */) |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1870 | |
| 1871 | // Unsolicited reply message to update |state| because of incoming external |
| 1872 | // events, e.g., protocol error, or unexpected network closure. |
| 1873 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply, |
| 1874 | int32_t /* state */) |
| 1875 | |
| 1876 | // Unsolicited reply message to notify that the connection is closed without |
| 1877 | // any WebSocket_Close request. Server initiated closing handshake or |
| 1878 | // unexpected network errors will invoke this message. |
| 1879 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1880 | uint64_t /* buffered_amount */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1881 | bool /* was_clean */, |
[email protected] | 76e6df0 | 2012-11-09 01:43:07 | [diff] [blame] | 1882 | uint16_t /* code */, |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1883 | std::string /* reason */) |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 1884 | |
[email protected] | a1ab6d8 | 2013-09-28 13:49:54 | [diff] [blame] | 1885 | // OutputProtection ----------------------------------------------------------- |
| 1886 | |
| 1887 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create) |
| 1888 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection, |
| 1889 | uint32_t /* desired_method_mask */) |
| 1890 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply) |
| 1891 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus) |
| 1892 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply, |
| 1893 | uint32_t /* link_mask */, |
| 1894 | uint32_t /* protection_mask */) |
| 1895 | |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 1896 | // VideoDecoder ------------------------------------------------------ |
| 1897 | |
| 1898 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create) |
| 1899 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Initialize, |
| 1900 | ppapi::HostResource /* graphics_context */, |
| 1901 | PP_VideoProfile /* profile */, |
| 1902 | bool /* allow_software_fallback */) |
| 1903 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply) |
| 1904 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm, |
| 1905 | uint32_t /* shm_id */, |
| 1906 | uint32_t /* shm_size */) |
| 1907 | // On success, a shm handle is passed in the ReplyParams struct. |
| 1908 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply, |
| 1909 | uint32_t /* shm_size */) |
| 1910 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Decode, |
| 1911 | uint32_t /* shm_id */, |
| 1912 | uint32_t /* size */, |
| 1913 | int32_t /* decode_id */) |
| 1914 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply, |
| 1915 | uint32_t /* shm_id */) |
[email protected] | 0ff052d | 2014-06-13 15:00:14 | [diff] [blame] | 1916 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_VideoDecoder_RequestTextures, |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 1917 | uint32_t /* num_textures */, |
| 1918 | PP_Size /* size */, |
[email protected] | 0ff052d | 2014-06-13 15:00:14 | [diff] [blame] | 1919 | uint32_t /* texture_target */, |
| 1920 | std::vector<gpu::Mailbox> /* mailboxes*/) |
[email protected] | dfb0d06f3 | 2014-05-30 22:45:56 | [diff] [blame] | 1921 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures, |
| 1922 | PP_Size /* size */, |
| 1923 | std::vector<uint32_t> /* texture_ids */) |
| 1924 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoDecoder_PictureReady, |
| 1925 | int32_t /* decode_id */, |
| 1926 | uint32_t /* texture_id */) |
| 1927 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture, |
| 1928 | uint32_t /* texture_id */) |
| 1929 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture, |
| 1930 | uint32_t /* texture_id */) |
| 1931 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush) |
| 1932 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply) |
| 1933 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset) |
| 1934 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) |
| 1935 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, |
| 1936 | int32_t /* error */) |
| 1937 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 1938 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | a1686e27 | 2012-11-01 23:39:34 | [diff] [blame] | 1939 | |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 1940 | // Audio input. |
| 1941 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 1942 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, |
| 1943 | std::string /* device_id */, |
| 1944 | PP_AudioSampleRate /* sample_rate */, |
| 1945 | uint32_t /* sample_frame_count */) |
| 1946 | // Reply to an Open call. This supplies a socket handle and a shared memory |
| 1947 | // handle. Both handles are passed in the ReplyParams struct. |
| 1948 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply) |
| 1949 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) |
| 1950 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) |
| 1951 | |
[email protected] | a6d81c0 | 2012-12-20 21:17:00 | [diff] [blame] | 1952 | // BrowserFont ----------------------------------------------------------------- |
| 1953 | |
| 1954 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_Create) |
| 1955 | |
| 1956 | // Requests that the browser reply with the list of font families via |
| 1957 | // PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply. |
| 1958 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_BrowserFontSingleton_GetFontFamilies) |
| 1959 | |
| 1960 | // Reply to PpapiHostMsg_BrowserFontSingleton_GetFontFamilies with the font |
| 1961 | // family list. The |families| result is encoded by separating each family name |
| 1962 | // by a null character. |
| 1963 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply, |
| 1964 | std::string /* families */) |
| 1965 | |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 1966 | // Flash ----------------------------------------------------------------------- |
[email protected] | a6d81c0 | 2012-12-20 21:17:00 | [diff] [blame] | 1967 | |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 1968 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 1969 | |
| 1970 | // Message to notify the browser to register an update in system activity. |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 1971 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity) |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 1972 | |
| 1973 | // Query the browser for the proxy server to use for the given URL. |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 1974 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */) |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 1975 | // Reply message for GetProxyForURL containing the proxy server. |
[email protected] | a9f2a621 | 2012-12-04 08:47:34 | [diff] [blame] | 1976 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetProxyForURLReply, |
| 1977 | std::string /* proxy */) |
| 1978 | |
[email protected] | c9246538 | 2012-12-17 23:51:21 | [diff] [blame] | 1979 | // Queries the browser for the local time zone offset for a given time. |
| 1980 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetLocalTimeZoneOffset, |
| 1981 | base::Time /* time */) |
| 1982 | // Reply to GetLocalTimeZoneOffset containing the time zone offset as a double. |
| 1983 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalTimeZoneOffsetReply, |
| 1984 | double /* offset */) |
| 1985 | |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 1986 | // Query the browser for the restrictions on storing Flash LSOs. |
| 1987 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_GetLocalDataRestrictions) |
| 1988 | // Reply message for GetLocalDataRestrictions containing the restrictions to |
| 1989 | // use. These are PP_FlashLSORestrictions cast to an int32_t. |
| 1990 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_GetLocalDataRestrictionsReply, |
| 1991 | int32_t /* restrictions */) |
| 1992 | |
[email protected] | 24f40c1 | 2012-12-19 20:17:42 | [diff] [blame] | 1993 | // Notifies the renderer whether the Flash instance is in windowed mode. No |
| 1994 | // reply is sent. |
| 1995 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_SetInstanceAlwaysOnTop, |
| 1996 | bool /* on_top */) |
| 1997 | |
| 1998 | // Notifies the renderer to draw text to the given PP_ImageData resource. All |
| 1999 | // parmeters for drawing (including the resource to draw to) are contianed in |
| 2000 | // the PPBFlash_DrawGlyphs_Params structure. An error code is sent in a reply |
| 2001 | // message indicating success. |
| 2002 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_DrawGlyphs, |
| 2003 | ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */) |
| 2004 | |
| 2005 | // Notifies the renderer to navigate to the given URL contained in the |
| 2006 | // URLRequestInfoData. An error code is sent in a reply message indicating |
| 2007 | // success. |
| 2008 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_Flash_Navigate, |
| 2009 | ppapi::URLRequestInfoData /* data */, |
| 2010 | std::string /* target */, |
| 2011 | bool /* from_user_action */) |
| 2012 | |
| 2013 | // Queries the renderer on whether the plugin instance is the topmost element |
| 2014 | // in the area of the instance specified by the given PP_Rect. PP_OK is sent as |
| 2015 | // the error code in a reply message if the rect is topmost otherwise |
| 2016 | // PP_ERROR_FAILED is sent. |
| 2017 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_IsRectTopmost, |
| 2018 | PP_Rect /* rect */) |
| 2019 | |
[email protected] | 6a77ef2 | 2012-12-21 23:31:36 | [diff] [blame] | 2020 | // Notifies the renderer to invoke printing for the given plugin instance. No |
| 2021 | // reply is sent. |
| 2022 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_InvokePrinting) |
| 2023 | |
[email protected] | db16e6d | 2012-12-19 03:32:57 | [diff] [blame] | 2024 | // DeviceEnumeration ----------------------------------------------------------- |
[email protected] | 4f01c76 | 2012-12-05 02:44:18 | [diff] [blame] | 2025 | // Device enumeration messages used by audio input and video capture. |
| 2026 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_EnumerateDevices) |
| 2027 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_DeviceEnumeration_EnumerateDevicesReply, |
| 2028 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 2029 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_DeviceEnumeration_MonitorDeviceChange, |
| 2030 | uint32_t /* callback_id */) |
| 2031 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_DeviceEnumeration_StopMonitoringDeviceChange) |
| 2032 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DeviceEnumeration_NotifyDeviceChange, |
| 2033 | uint32_t /* callback_id */, |
| 2034 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 2035 | |
[email protected] | a1686e27 | 2012-11-01 23:39:34 | [diff] [blame] | 2036 | // Flash clipboard. |
| 2037 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create) |
| 2038 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat, |
| 2039 | std::string /* format_name */) |
| 2040 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply, |
| 2041 | uint32_t /* format */) |
| 2042 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable, |
| 2043 | uint32_t /* clipboard_type */, |
| 2044 | uint32_t /* format */) |
| 2045 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData, |
| 2046 | uint32_t /* clipboard_type */, |
| 2047 | uint32_t /* format */) |
| 2048 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply, |
| 2049 | std::string /* result */) |
| 2050 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData, |
| 2051 | uint32_t /* clipboard_type */, |
| 2052 | std::vector<uint32_t> /* formats */, |
| 2053 | std::vector<std::string> /* data */) |
[email protected] | 3391ebb | 2014-01-28 01:45:33 | [diff] [blame] | 2054 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_GetSequenceNumber, |
| 2055 | uint32_t /* clipboard_type */) |
| 2056 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_GetSequenceNumberReply, |
| 2057 | uint64_t /* sequence_number */) |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame] | 2058 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 2059 | // Flash DRM. |
| 2060 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_Create) |
| 2061 | |
| 2062 | // Requests the device ID. |
| 2063 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetDeviceID) |
| 2064 | // Reply for GetDeviceID which includes the device ID as a string. |
| 2065 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetDeviceIDReply, |
| 2066 | std::string /* id */) |
| 2067 | |
| 2068 | // Requests the HMONITOR corresponding to the monitor on which the instance is |
| 2069 | // displayed. |
| 2070 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetHmonitor) |
| 2071 | // Reply message for GetHmonitor which contains the HMONITOR as an int64_t. |
| 2072 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply, |
| 2073 | int64_t /* hmonitor */) |
| 2074 | |
| 2075 | // Requests the voucher file which is used to verify the integrity of the Flash |
| 2076 | // module. A PPB_FileRef resource will be created. |
| 2077 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile) |
| 2078 | // Reply message for GetVoucherFile which contains the CreateInfo for a |
| 2079 | // PPB_FileRef which points to the voucher file. |
| 2080 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply, |
| 2081 | ppapi::FileRefCreateInfo /* file_info */) |
| 2082 | |
| 2083 | // Requests a value indicating whether the monitor on which the instance is |
| 2084 | // displayed is external. |
| 2085 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_MonitorIsExternal) |
| 2086 | // Reply message for MonitorIsExternal which contains the value indicating if |
| 2087 | // the monitor is external. |
| 2088 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_MonitorIsExternalReply, |
| 2089 | PP_Bool /* is_external */) |
| 2090 | |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 2091 | // Flash file. |
| 2092 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create) |
| 2093 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile, |
| 2094 | ppapi::PepperFilePath /* path */, |
[email protected] | 0ef197f | 2013-07-31 05:46:48 | [diff] [blame] | 2095 | int /* pp_open_flags */) |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 2096 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile, |
| 2097 | ppapi::PepperFilePath /* from_path */, |
| 2098 | ppapi::PepperFilePath /* to_path */) |
| 2099 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir, |
| 2100 | ppapi::PepperFilePath /* path */, |
| 2101 | bool /* recursive */) |
| 2102 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir, |
| 2103 | ppapi::PepperFilePath /* path */) |
| 2104 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile, |
| 2105 | ppapi::PepperFilePath /* path */) |
| 2106 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply, |
[email protected] | 141bcc5 | 2014-01-27 21:36:00 | [diff] [blame] | 2107 | base::File::Info /* file_info */) |
[email protected] | 0c92b0d | 2012-12-08 00:46:23 | [diff] [blame] | 2108 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents, |
| 2109 | ppapi::PepperFilePath /* path */) |
| 2110 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply, |
| 2111 | ppapi::DirContents /* entries */) |
| 2112 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile) |
| 2113 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 2114 | // Flash font file. |
| 2115 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, |
| 2116 | ppapi::proxy::SerializedFontDescription /* description */, |
| 2117 | PP_PrivateFontCharset /* charset */) |
| 2118 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, |
| 2119 | uint32_t /* table */) |
| 2120 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, |
| 2121 | std::string /* output */) |
[email protected] | 11d0c36 | 2012-10-11 02:02:11 | [diff] [blame] | 2122 | |
[email protected] | 22fdaa6 | 2012-11-30 01:55:44 | [diff] [blame] | 2123 | // Flash fullscreen. |
| 2124 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFullscreen_Create) |
| 2125 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFullscreen_SetFullscreen, |
| 2126 | bool /* fullscreen */) |
| 2127 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 2128 | // FlashMenu. |
[email protected] | 97f5813 | 2012-11-15 20:41:32 | [diff] [blame] | 2129 | |
| 2130 | // Creates the flash menu with the given data. |
| 2131 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Create, |
| 2132 | ppapi::proxy::SerializedFlashMenu /* menu_data */) |
| 2133 | |
| 2134 | // Shows the menu at the given location relative to the plugin instance. |
| 2135 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashMenu_Show, |
| 2136 | PP_Point /* location */) |
| 2137 | |
| 2138 | // Reply to a show command. If the resource reply is PP_OK, the selected_id |
| 2139 | // will be the menu item ID chosen by the user. |
| 2140 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashMenu_ShowReply, |
| 2141 | int32_t /* selected_id */) |
| 2142 | |
[email protected] | bf398e26 | 2014-03-26 19:22:24 | [diff] [blame] | 2143 | // PPB_Flash_MessageLoop. |
| 2144 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, |
| 2145 | PP_Instance /* instance */, |
| 2146 | ppapi::HostResource /* result */) |
| 2147 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, |
| 2148 | ppapi::HostResource /* flash_message_loop */, |
| 2149 | int32_t /* result */) |
| 2150 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, |
| 2151 | ppapi::HostResource /* flash_message_loop */) |
| 2152 | |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2153 | // PDF ------------------------------------------------------------------------ |
| 2154 | |
| 2155 | // Creates the PDF resource. |
| 2156 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Create) |
| 2157 | |
| 2158 | // Requests the localized string for the given ID. |
| 2159 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_GetLocalizedString, |
[email protected] | f5869d8be | 2013-04-06 00:33:10 | [diff] [blame] | 2160 | PP_ResourceString /* string_id */) |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2161 | // Reply for PpapiHostMsg_PDF_GetLocalizedString containing the localized |
| 2162 | // string. |
| 2163 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_PDF_GetLocalizedStringReply, |
| 2164 | std::string /* localized_string*/) |
| 2165 | |
| 2166 | // Notifies the renderer that the PDF started loading. |
| 2167 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStartLoading) |
| 2168 | |
| 2169 | // Notifies the renderer that the PDF stopped loading. |
| 2170 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_DidStopLoading) |
| 2171 | |
| 2172 | // Sets any restrictions on the PDF content. |
| 2173 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetContentRestriction, |
| 2174 | int /* restrictions */) |
| 2175 | |
| 2176 | // Requests that the specified action be recorded with UMA. |
| 2177 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_UserMetricsRecordAction, |
| 2178 | std::string /* action */) |
| 2179 | |
| 2180 | // Notifies the renderer that the current PDF uses an unsupported feature. |
| 2181 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_HasUnsupportedFeature) |
| 2182 | |
| 2183 | // Notifies the renderer to print the current PDF. |
| 2184 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_Print) |
| 2185 | |
| 2186 | // Notifies the renderer to save the current PDF. |
| 2187 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_PDF_SaveAs) |
| 2188 | |
| 2189 | // Requests a resource image for the plugin at a particular scale. |
| 2190 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PDF_GetResourceImage, |
[email protected] | f5869d8be | 2013-04-06 00:33:10 | [diff] [blame] | 2191 | PP_ResourceImage /* image_id */, |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2192 | float /* scale */) |
[email protected] | d48148a | 2013-06-18 00:09:13 | [diff] [blame] | 2193 | |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2194 | // Reply for PpapiHostMsg_PDF_GetResourceImage containing the host resource id |
[email protected] | ebdbb11 | 2013-05-16 16:56:34 | [diff] [blame] | 2195 | // of the image and a PP_ImageDataDesc which describes the image. Also carries |
[email protected] | d48148a | 2013-06-18 00:09:13 | [diff] [blame] | 2196 | // a shared memory handle pointing to the memory containg the image. |
| 2197 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_PDF_GetResourceImageReply, |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2198 | ppapi::HostResource /* resource_id */, |
[email protected] | d48148a | 2013-06-18 00:09:13 | [diff] [blame] | 2199 | PP_ImageDataDesc /* image_data_desc */) |
[email protected] | bb92b01 | 2013-03-29 02:13:20 | [diff] [blame] | 2200 | |
[email protected] | 72b1a22 | 2014-01-15 04:26:11 | [diff] [blame] | 2201 | // Called by the plugin when its selection changes. |
| 2202 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetSelectedText, |
| 2203 | base::string16 /* selected_text */) |
| 2204 | |
[email protected] | 5eda9629 | 2014-02-03 06:55:14 | [diff] [blame] | 2205 | // Called by the plugin to set the link under the cursor. |
| 2206 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PDF_SetLinkUnderCursor, |
| 2207 | std::string /* url */) |
| 2208 | |
[email protected] | cc12387 | 2012-11-16 07:53:08 | [diff] [blame] | 2209 | // VideoCapture_Dev, plugin -> host |
| 2210 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Create) |
| 2211 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StartCapture) |
| 2212 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoCapture_ReuseBuffer, |
| 2213 | uint32_t /* buffer */) |
| 2214 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_StopCapture) |
| 2215 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoCapture_Close) |
| 2216 | |
| 2217 | // VideoCapture_Dev, plugin -> host -> plugin |
[email protected] | cc12387 | 2012-11-16 07:53:08 | [diff] [blame] | 2218 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoCapture_Open, |
| 2219 | std::string /* device_id */, |
| 2220 | PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 2221 | uint32_t /* buffer_count */) |
| 2222 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoCapture_OpenReply) |
| 2223 | |
| 2224 | // VideoCapture_Dev, host -> plugin |
| 2225 | IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoCapture_OnDeviceInfo, |
| 2226 | PP_VideoCaptureDeviceInfo_Dev /* info */, |
| 2227 | std::vector<ppapi::HostResource> /* buffers */, |
| 2228 | uint32_t /* buffer_size */) |
| 2229 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
| 2230 | uint32_t /* status */) |
| 2231 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
| 2232 | uint32_t /* error */) |
| 2233 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
| 2234 | uint32_t /* buffer */) |
| 2235 | |
[email protected] | ce97d745 | 2013-06-07 19:02:09 | [diff] [blame] | 2236 | // Talk ------------------------------------------------------------------------ |
| 2237 | |
| 2238 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_Create) |
| 2239 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
| 2240 | PP_TalkPermission /* permission */) |
| 2241 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
| 2242 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
| 2243 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
| 2244 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
| 2245 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
| 2246 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
| 2247 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 2248 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |