[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] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 6 | #include <string> |
| 7 | #include <vector> |
| 8 | |
| 9 | #include "base/basictypes.h" |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 10 | #include "base/file_path.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 11 | #include "base/process.h" |
| 12 | #include "base/shared_memory.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 13 | #include "base/string16.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 14 | #include "base/sync_socket.h" |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 15 | #include "gpu/command_buffer/common/command_buffer.h" |
| 16 | #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 17 | #include "ipc/ipc_channel_handle.h" |
| 18 | #include "ipc/ipc_message_macros.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 19 | #include "ipc/ipc_message_utils.h" |
[email protected] | 5d84d01 | 2010-12-02 17:17:21 | [diff] [blame] | 20 | #include "ipc/ipc_platform_file.h" |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 21 | #include "ppapi/c/dev/pp_video_capture_dev.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 22 | #include "ppapi/c/dev/pp_video_dev.h" |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 23 | #include "ppapi/c/dev/ppb_text_input_dev.h" |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 24 | #include "ppapi/c/dev/ppb_url_util_dev.h" |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 25 | #include "ppapi/c/dev/ppp_printing_dev.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 26 | #include "ppapi/c/pp_bool.h" |
[email protected] | ea505a9d | 2011-07-07 18:34:40 | [diff] [blame] | 27 | #include "ppapi/c/pp_file_info.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 28 | #include "ppapi/c/pp_instance.h" |
| 29 | #include "ppapi/c/pp_module.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 30 | #include "ppapi/c/pp_point.h" |
| 31 | #include "ppapi/c/pp_rect.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 32 | #include "ppapi/c/pp_resource.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 33 | #include "ppapi/c/pp_size.h" |
[email protected] | 3b98ced7 | 2012-03-09 02:08:33 | [diff] [blame] | 34 | #include "ppapi/c/pp_time.h" |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame^] | 35 | #include "ppapi/c/ppb_audio_config.h" |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 36 | #include "ppapi/c/private/pp_content_decryptor.h" |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 37 | #include "ppapi/c/private/pp_private_font_charset.h" |
[email protected] | ea628e3 | 2012-08-02 21:50:16 | [diff] [blame] | 38 | #include "ppapi/c/private/ppb_flash.h" |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 39 | #include "ppapi/c/private/ppb_host_resolver_private.h" |
| 40 | #include "ppapi/c/private/ppb_net_address_private.h" |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 41 | #include "ppapi/c/private/ppb_tcp_socket_private.h" |
[email protected] | 0addda9 | 2012-08-31 08:55:28 | [diff] [blame] | 42 | #include "ppapi/c/private/ppb_udp_socket_private.h" |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 43 | #include "ppapi/c/private/ppp_flash_browser_operations.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 44 | #include "ppapi/proxy/ppapi_param_traits.h" |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 45 | #include "ppapi/proxy/ppapi_proxy_export.h" |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 46 | #include "ppapi/proxy/resource_message_params.h" |
[email protected] | 7358d57 | 2011-02-15 18:44:40 | [diff] [blame] | 47 | #include "ppapi/proxy/serialized_flash_menu.h" |
[email protected] | fb35dcf | 2010-11-14 17:08:00 | [diff] [blame] | 48 | #include "ppapi/proxy/serialized_structs.h" |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 49 | #include "ppapi/proxy/serialized_var.h" |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 50 | #include "ppapi/shared_impl/ppapi_preferences.h" |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 51 | #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
[email protected] | 9a57839 | 2011-12-07 18:59:27 | [diff] [blame] | 52 | #include "ppapi/shared_impl/ppb_input_event_shared.h" |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 53 | #include "ppapi/shared_impl/ppb_network_list_private_shared.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 54 | #include "ppapi/shared_impl/ppb_view_shared.h" |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 55 | #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 56 | #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 57 | #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 58 | #include "ppapi/shared_impl/url_request_info_data.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 59 | |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 60 | #undef IPC_MESSAGE_EXPORT |
| 61 | #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 62 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 63 | #define IPC_MESSAGE_START PpapiMsgStart |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 64 | |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame^] | 65 | IPC_ENUM_TRAITS(PP_AudioSampleRate) |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 66 | IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 67 | IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 68 | IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
| 69 | IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
[email protected] | ea628e3 | 2012-08-02 21:50:16 | [diff] [blame] | 70 | IPC_ENUM_TRAITS(PP_FlashSetting) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 71 | IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 72 | IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 73 | IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 74 | IPC_ENUM_TRAITS(PP_NetworkListState_Private) |
[email protected] | 0addda9 | 2012-08-31 08:55:28 | [diff] [blame] | 75 | IPC_ENUM_TRAITS(PP_NetworkListType_Private) |
[email protected] | 772a7462 | 2012-06-14 21:15:50 | [diff] [blame] | 76 | IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) |
| 77 | IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) |
| 78 | IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 79 | IPC_ENUM_TRAITS(PP_PrivateFontCharset) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 80 | IPC_ENUM_TRAITS(PP_TextInput_Type) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 81 | IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 82 | IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 83 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 84 | IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 85 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 86 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 87 | IPC_STRUCT_TRAITS_END() |
| 88 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 89 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 90 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 91 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 92 | IPC_STRUCT_TRAITS_END() |
| 93 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 94 | IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
| 95 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 96 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 97 | IPC_STRUCT_TRAITS_END() |
| 98 | |
| 99 | IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
| 100 | IPC_STRUCT_TRAITS_MEMBER(point) |
| 101 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 102 | IPC_STRUCT_TRAITS_END() |
| 103 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 104 | IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) |
| 105 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 106 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 107 | IPC_STRUCT_TRAITS_MEMBER(texture_id) |
| 108 | IPC_STRUCT_TRAITS_END() |
| 109 | |
| 110 | IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev) |
| 111 | IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id) |
| 112 | IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id) |
| 113 | IPC_STRUCT_TRAITS_END() |
| 114 | |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 115 | IPC_STRUCT_TRAITS_BEGIN(PP_PrintPageNumberRange_Dev) |
| 116 | IPC_STRUCT_TRAITS_MEMBER(first_page_number) |
| 117 | IPC_STRUCT_TRAITS_MEMBER(last_page_number) |
| 118 | IPC_STRUCT_TRAITS_END() |
| 119 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 120 | IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev) |
| 121 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 122 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 123 | IPC_STRUCT_TRAITS_MEMBER(frames_per_second) |
| 124 | IPC_STRUCT_TRAITS_END() |
| 125 | |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 126 | IPC_STRUCT_TRAITS_BEGIN(PP_HostResolver_Private_Hint) |
| 127 | IPC_STRUCT_TRAITS_MEMBER(family) |
| 128 | IPC_STRUCT_TRAITS_MEMBER(flags) |
| 129 | IPC_STRUCT_TRAITS_END() |
| 130 | |
[email protected] | 772a7462 | 2012-06-14 21:15:50 | [diff] [blame] | 131 | IPC_STRUCT_TRAITS_BEGIN(PP_PrintSettings_Dev) |
| 132 | IPC_STRUCT_TRAITS_MEMBER(printable_area) |
| 133 | IPC_STRUCT_TRAITS_MEMBER(content_area) |
| 134 | IPC_STRUCT_TRAITS_MEMBER(paper_size) |
| 135 | IPC_STRUCT_TRAITS_MEMBER(dpi) |
| 136 | IPC_STRUCT_TRAITS_MEMBER(orientation) |
| 137 | IPC_STRUCT_TRAITS_MEMBER(print_scaling_option) |
| 138 | IPC_STRUCT_TRAITS_MEMBER(grayscale) |
| 139 | IPC_STRUCT_TRAITS_MEMBER(format) |
| 140 | IPC_STRUCT_TRAITS_END() |
| 141 | |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 142 | IPC_STRUCT_TRAITS_BEGIN(PP_URLComponent_Dev) |
| 143 | IPC_STRUCT_TRAITS_MEMBER(begin) |
| 144 | IPC_STRUCT_TRAITS_MEMBER(len) |
| 145 | IPC_STRUCT_TRAITS_END() |
| 146 | |
| 147 | IPC_STRUCT_TRAITS_BEGIN(PP_URLComponents_Dev) |
| 148 | IPC_STRUCT_TRAITS_MEMBER(scheme) |
| 149 | IPC_STRUCT_TRAITS_MEMBER(username) |
| 150 | IPC_STRUCT_TRAITS_MEMBER(password) |
| 151 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 152 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 153 | IPC_STRUCT_TRAITS_MEMBER(path) |
| 154 | IPC_STRUCT_TRAITS_MEMBER(query) |
| 155 | IPC_STRUCT_TRAITS_MEMBER(ref) |
| 156 | IPC_STRUCT_TRAITS_END() |
| 157 | |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 158 | IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
| 159 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 160 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 161 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 162 | IPC_STRUCT_TRAITS_END() |
| 163 | |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 164 | IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting) |
| 165 | IPC_STRUCT_TRAITS_MEMBER(site) |
| 166 | IPC_STRUCT_TRAITS_MEMBER(permission) |
| 167 | IPC_STRUCT_TRAITS_END() |
| 168 | |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 169 | IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) |
| 170 | IPC_STRUCT_TRAITS_MEMBER(rect) |
| 171 | IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) |
| 172 | IPC_STRUCT_TRAITS_MEMBER(is_page_visible) |
| 173 | IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
[email protected] | 0cd5b9df | 2012-06-28 19:33:33 | [diff] [blame] | 174 | IPC_STRUCT_TRAITS_MEMBER(device_scale) |
| 175 | IPC_STRUCT_TRAITS_MEMBER(css_scale) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 176 | IPC_STRUCT_TRAITS_END() |
| 177 | |
[email protected] | cdf4e91 | 2012-06-21 23:15:10 | [diff] [blame] | 178 | IPC_STRUCT_TRAITS_BEGIN(PP_TouchPoint) |
| 179 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 180 | IPC_STRUCT_TRAITS_MEMBER(position) |
| 181 | IPC_STRUCT_TRAITS_MEMBER(radius) |
| 182 | IPC_STRUCT_TRAITS_MEMBER(rotation_angle) |
| 183 | IPC_STRUCT_TRAITS_MEMBER(pressure) |
| 184 | IPC_STRUCT_TRAITS_END() |
| 185 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 186 | IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) |
[email protected] | 966d1e1 | 2012-05-18 07:20:32 | [diff] [blame] | 187 | IPC_STRUCT_TRAITS_MEMBER(standard_font_family_map) |
| 188 | IPC_STRUCT_TRAITS_MEMBER(fixed_font_family_map) |
| 189 | IPC_STRUCT_TRAITS_MEMBER(serif_font_family_map) |
| 190 | IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family_map) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 191 | IPC_STRUCT_TRAITS_MEMBER(default_font_size) |
| 192 | IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) |
[email protected] | 6b4dcb07 | 2012-06-18 22:26:51 | [diff] [blame] | 193 | IPC_STRUCT_TRAITS_MEMBER(number_of_cpu_cores) |
[email protected] | e0d8c42 | 2012-06-04 22:57:19 | [diff] [blame] | 194 | IPC_STRUCT_TRAITS_MEMBER(is_3d_supported) |
| 195 | IPC_STRUCT_TRAITS_MEMBER(is_stage3d_supported) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 196 | IPC_STRUCT_TRAITS_END() |
| 197 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 198 | IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 199 | IPC_STRUCT_TRAITS_MEMBER(is_filtered) |
| 200 | IPC_STRUCT_TRAITS_MEMBER(event_type) |
| 201 | IPC_STRUCT_TRAITS_MEMBER(event_time_stamp) |
| 202 | IPC_STRUCT_TRAITS_MEMBER(event_modifiers) |
| 203 | IPC_STRUCT_TRAITS_MEMBER(mouse_button) |
| 204 | IPC_STRUCT_TRAITS_MEMBER(mouse_position) |
| 205 | IPC_STRUCT_TRAITS_MEMBER(mouse_click_count) |
[email protected] | 8047326 | 2011-08-31 17:15:18 | [diff] [blame] | 206 | IPC_STRUCT_TRAITS_MEMBER(mouse_movement) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 207 | IPC_STRUCT_TRAITS_MEMBER(wheel_delta) |
| 208 | IPC_STRUCT_TRAITS_MEMBER(wheel_ticks) |
| 209 | IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) |
| 210 | IPC_STRUCT_TRAITS_MEMBER(key_code) |
[email protected] | e1e08b4 | 2012-02-21 22:42:58 | [diff] [blame] | 211 | IPC_STRUCT_TRAITS_MEMBER(usb_key_code) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 212 | IPC_STRUCT_TRAITS_MEMBER(character_text) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 213 | IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) |
| 214 | IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) |
| 215 | IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) |
| 216 | IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) |
[email protected] | cdf4e91 | 2012-06-21 23:15:10 | [diff] [blame] | 217 | IPC_STRUCT_TRAITS_MEMBER(touches) |
| 218 | IPC_STRUCT_TRAITS_MEMBER(changed_touches) |
| 219 | IPC_STRUCT_TRAITS_MEMBER(target_touches) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 220 | IPC_STRUCT_TRAITS_END() |
| 221 | |
[email protected] | 2493110 | 2012-03-15 01:21:27 | [diff] [blame] | 222 | IPC_STRUCT_TRAITS_BEGIN(ppapi::HostPortPair) |
| 223 | IPC_STRUCT_TRAITS_MEMBER(host) |
| 224 | IPC_STRUCT_TRAITS_MEMBER(port) |
| 225 | IPC_STRUCT_TRAITS_END() |
| 226 | |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 227 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 228 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 229 | IPC_STRUCT_TRAITS_MEMBER(method) |
| 230 | IPC_STRUCT_TRAITS_MEMBER(headers) |
| 231 | IPC_STRUCT_TRAITS_MEMBER(stream_to_file) |
| 232 | IPC_STRUCT_TRAITS_MEMBER(follow_redirects) |
| 233 | IPC_STRUCT_TRAITS_MEMBER(record_download_progress) |
| 234 | IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) |
| 235 | IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url) |
| 236 | IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url) |
| 237 | IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests) |
| 238 | IPC_STRUCT_TRAITS_MEMBER(allow_credentials) |
| 239 | IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding) |
| 240 | IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding) |
| 241 | IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold) |
| 242 | IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold) |
[email protected] | c094eaf | 2012-07-10 16:09:01 | [diff] [blame] | 243 | IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent) |
| 244 | IPC_STRUCT_TRAITS_MEMBER(custom_user_agent) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 245 | IPC_STRUCT_TRAITS_MEMBER(body) |
| 246 | IPC_STRUCT_TRAITS_END() |
| 247 | |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 248 | IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 249 | IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 250 | IPC_STRUCT_TRAITS_MEMBER(data) |
| 251 | // Note: we don't serialize file_ref. |
| 252 | IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
| 253 | IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 254 | IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 255 | IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 256 | IPC_STRUCT_TRAITS_END() |
| 257 | |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 258 | IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) |
| 259 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 260 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 261 | IPC_STRUCT_TRAITS_MEMBER(state) |
| 262 | IPC_STRUCT_TRAITS_MEMBER(addresses) |
| 263 | IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 264 | IPC_STRUCT_TRAITS_MEMBER(mtu) |
| 265 | IPC_STRUCT_TRAITS_END() |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 266 | |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 267 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 268 | IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) |
| 269 | IPC_STRUCT_TRAITS_MEMBER(resource) |
| 270 | IPC_STRUCT_TRAITS_MEMBER(handle) |
| 271 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 272 | IPC_STRUCT_TRAITS_END() |
| 273 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 274 | // TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace |
| 275 | // both with a single type? |
| 276 | IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer) |
| 277 | IPC_STRUCT_TRAITS_MEMBER(resource) |
| 278 | IPC_STRUCT_TRAITS_MEMBER(handle) |
| 279 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 280 | IPC_STRUCT_TRAITS_END() |
| 281 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 282 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 5b9b80e | 2012-03-20 20:19:39 | [diff] [blame] | 283 | |
[email protected] | eb415bf0e | 2011-04-14 02:45:42 | [diff] [blame] | 284 | // These are from the browser to the plugin. |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 285 | // Loads the given plugin. |
[email protected] | 195d4cde | 2012-10-02 18:12:41 | [diff] [blame] | 286 | IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin, |
| 287 | FilePath /* path */, |
| 288 | ppapi::PpapiPermissions /* permissions */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 289 | |
| 290 | // Creates a channel to talk to a renderer. The plugin will respond with |
| 291 | // PpapiHostMsg_ChannelCreated. |
[email protected] | f0ecb55 | 2012-05-11 22:09:11 | [diff] [blame] | 292 | IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, |
[email protected] | bc2eeb4 | 2012-05-02 22:35:53 | [diff] [blame] | 293 | int /* renderer_id */, |
| 294 | bool /* incognito */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 295 | |
[email protected] | 8510d28 | 2012-08-30 19:47:38 | [diff] [blame] | 296 | // Creates a channel to talk to a renderer. This message is only used by the |
| 297 | // NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the |
| 298 | // actual channel and rewrites the message for the untrusted side. |
[email protected] | 195d4cde | 2012-10-02 18:12:41 | [diff] [blame] | 299 | IPC_MESSAGE_CONTROL4(PpapiMsg_CreateNaClChannel, |
[email protected] | 8510d28 | 2012-08-30 19:47:38 | [diff] [blame] | 300 | int /* renderer_id */, |
[email protected] | 195d4cde | 2012-10-02 18:12:41 | [diff] [blame] | 301 | ppapi::PpapiPermissions /* permissions */, |
[email protected] | 8510d28 | 2012-08-30 19:47:38 | [diff] [blame] | 302 | bool /* incognito */, |
| 303 | ppapi::proxy::SerializedHandle /* channel_handle */) |
| 304 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 305 | // Each plugin may be referenced by multiple renderers. We need the instance |
| 306 | // IDs to be unique within a plugin, despite coming from different renderers, |
| 307 | // and unique within a renderer, despite going to different plugins. This means |
| 308 | // that neither the renderer nor the plugin can generate instance IDs without |
| 309 | // consulting the other. |
| 310 | // |
| 311 | // We resolve this by having the renderer generate a unique instance ID inside |
| 312 | // its process. It then asks the plugin to reserve that ID by sending this sync |
| 313 | // message. If the plugin has not yet seen this ID, it will remember it as used |
| 314 | // (to prevent a race condition if another renderer tries to then use the same |
| 315 | // instance), and set usable as true. |
| 316 | // |
| 317 | // If the plugin has already seen the instance ID, it will set usable as false |
| 318 | // and the renderer must retry a new instance ID. |
| 319 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId, |
| 320 | PP_Instance /* instance */, |
| 321 | bool /* usable */) |
| 322 | |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 323 | // Passes the WebKit preferences to the plugin. |
| 324 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 325 | ppapi::Preferences) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 326 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 327 | // Sent in both directions to see if the other side supports the given |
| 328 | // interface. |
| 329 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
| 330 | std::string /* interface_name */, |
| 331 | bool /* result */) |
| 332 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 333 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 334 | // Network state notification from the browser for implementing |
| 335 | // PPP_NetworkState_Dev. |
| 336 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
| 337 | bool /* online */) |
| 338 | |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 339 | // Requests a list of sites that have data stored from the plugin. The plugin |
| 340 | // process will respond with PpapiHostMsg_GetSitesWithDataResult. This is used |
| 341 | // for Flash. |
| 342 | IPC_MESSAGE_CONTROL2(PpapiMsg_GetSitesWithData, |
| 343 | uint32 /* request_id */, |
| 344 | FilePath /* plugin_data_path */) |
| 345 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_GetSitesWithDataResult, |
| 346 | uint32 /* request_id */, |
| 347 | std::vector<std::string> /* sites */) |
| 348 | |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 349 | // Instructs the plugin to clear data for the given site & time. The plugin |
| 350 | // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used |
| 351 | // for Flash. |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 352 | IPC_MESSAGE_CONTROL5(PpapiMsg_ClearSiteData, |
| 353 | uint32 /* request_id */, |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 354 | FilePath /* plugin_data_path */, |
| 355 | std::string /* site */, |
| 356 | uint64 /* flags */, |
| 357 | uint64 /* max_age */) |
[email protected] | 951ef0b | 2012-07-27 22:46:53 | [diff] [blame] | 358 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_ClearSiteDataResult, |
| 359 | uint32 /* request_id */, |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 360 | bool /* success */) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 361 | |
[email protected] | 1a55944 | 2012-05-27 07:18:46 | [diff] [blame] | 362 | IPC_MESSAGE_CONTROL2(PpapiMsg_DeauthorizeContentLicenses, |
| 363 | uint32 /* request_id */, |
| 364 | FilePath /* plugin_data_path */) |
| 365 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_DeauthorizeContentLicensesResult, |
| 366 | uint32 /* request_id */, |
| 367 | bool /* success */) |
| 368 | |
[email protected] | ee4dd68 | 2012-06-12 15:49:33 | [diff] [blame] | 369 | IPC_MESSAGE_CONTROL3(PpapiMsg_GetPermissionSettings, |
| 370 | uint32 /* request_id */, |
| 371 | FilePath /* plugin_data_path */, |
| 372 | PP_Flash_BrowserOperations_SettingType /* setting_type */) |
| 373 | IPC_MESSAGE_CONTROL4( |
| 374 | PpapiHostMsg_GetPermissionSettingsResult, |
| 375 | uint32 /* request_id */, |
| 376 | bool /* success */, |
| 377 | PP_Flash_BrowserOperations_Permission /* default_permission */, |
| 378 | ppapi::FlashSiteSettings /* sites */) |
| 379 | |
| 380 | IPC_MESSAGE_CONTROL5(PpapiMsg_SetDefaultPermission, |
| 381 | uint32 /* request_id */, |
| 382 | FilePath /* plugin_data_path */, |
| 383 | PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 384 | PP_Flash_BrowserOperations_Permission /* permission */, |
| 385 | bool /* clear_site_specific */) |
| 386 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetDefaultPermissionResult, |
| 387 | uint32 /* request_id */, |
| 388 | bool /* success */) |
| 389 | |
| 390 | IPC_MESSAGE_CONTROL4(PpapiMsg_SetSitePermission, |
| 391 | uint32 /* request_id */, |
| 392 | FilePath /* plugin_data_path */, |
| 393 | PP_Flash_BrowserOperations_SettingType /* setting_type */, |
| 394 | ppapi::FlashSiteSettings /* sites */) |
| 395 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_SetSitePermissionResult, |
| 396 | uint32 /* request_id */, |
| 397 | bool /* success */) |
| 398 | |
[email protected] | 1bf0fb2 | 2012-04-12 21:44:16 | [diff] [blame] | 399 | // Broker Process. |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 400 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 401 | PP_Instance /* instance */, |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 402 | IPC::PlatformFileForTransit /* handle */, |
| 403 | int32_t /* result */) |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 404 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 405 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 406 | // PPB_Audio. |
| 407 | |
| 408 | // Notifies the result of the audio stream create call. This is called in |
| 409 | // both error cases and in the normal success case. These cases are |
| 410 | // differentiated by the result code, which is one of the standard PPAPI |
| 411 | // result codes. |
| 412 | // |
| 413 | // The handler of this message should always close all of the handles passed |
| 414 | // in, since some could be valid even in the error case. |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 415 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 416 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 417 | int32_t /* result_code (will be != PP_OK on failure) */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 418 | ppapi::proxy::SerializedHandle /* socket_handle */, |
| 419 | ppapi::proxy::SerializedHandle /* handle */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 420 | |
[email protected] | cc6db92 | 2011-12-10 16:54:22 | [diff] [blame] | 421 | // PPB_FileIO. |
| 422 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete, |
| 423 | ppapi::HostResource /* file_io */, |
| 424 | int32_t /* result */) |
| 425 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete, |
| 426 | ppapi::HostResource /* file_io */, |
| 427 | int32_t /* result */) |
| 428 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete, |
| 429 | ppapi::HostResource /* file_io */, |
| 430 | int32_t /* result */, |
| 431 | PP_FileInfo /* info */) |
| 432 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete, |
| 433 | ppapi::HostResource /* file_io */, |
| 434 | int32_t /* result */, |
| 435 | std::string /* data */) |
| 436 | |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 437 | // PPB_FileRef. |
| 438 | IPC_MESSAGE_ROUTED3( |
| 439 | PpapiMsg_PPBFileRef_CallbackComplete, |
| 440 | ppapi::HostResource /* resource */, |
| 441 | int /* callback_id */, |
| 442 | int32_t /* result */) |
| 443 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 444 | // PPB_FileSystem. |
| 445 | IPC_MESSAGE_ROUTED2( |
| 446 | PpapiMsg_PPBFileSystem_OpenComplete, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 447 | ppapi::HostResource /* filesystem */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 448 | int32_t /* result */) |
| 449 | |
| 450 | // PPB_Graphics2D. |
| 451 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 452 | ppapi::HostResource /* graphics_2d */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 453 | int32_t /* pp_error */) |
| 454 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 455 | // PPB_Graphics3D. |
| 456 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 457 | ppapi::HostResource /* graphics_3d */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 458 | int32_t /* pp_error */) |
| 459 | |
[email protected] | c4283577 | 2012-08-22 18:22:13 | [diff] [blame] | 460 | // PPB_ImageData. |
| 461 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPBImageData_NotifyUnusedImageData, |
| 462 | ppapi::HostResource /* old_image_data */) |
| 463 | |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 464 | // PPB_Instance. |
| 465 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete, |
| 466 | PP_Instance /* instance */, |
| 467 | int32_t /* result */) |
| 468 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 469 | // PPP_Class. |
| 470 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
| 471 | int64 /* ppp_class */, |
| 472 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 473 | ppapi::proxy::SerializedVar /* property */, |
| 474 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 475 | bool /* result */) |
| 476 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
| 477 | int64 /* ppp_class */, |
| 478 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 479 | ppapi::proxy::SerializedVar /* method */, |
| 480 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 481 | bool /* result */) |
| 482 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty, |
| 483 | int64 /* ppp_class */, |
| 484 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 485 | ppapi::proxy::SerializedVar /* property */, |
| 486 | ppapi::proxy::SerializedVar /* out_exception */, |
| 487 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 488 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties, |
| 489 | int64 /* ppp_class */, |
| 490 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 491 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 492 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 493 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty, |
| 494 | int64 /* ppp_class */, |
| 495 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 496 | ppapi::proxy::SerializedVar /* name */, |
| 497 | ppapi::proxy::SerializedVar /* value */, |
| 498 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 499 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty, |
| 500 | int64 /* ppp_class */, |
| 501 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 502 | ppapi::proxy::SerializedVar /* property */, |
| 503 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 504 | IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call, |
| 505 | int64 /* ppp_class */, |
| 506 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 507 | ppapi::proxy::SerializedVar /* method_name */, |
| 508 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 509 | ppapi::proxy::SerializedVar /* out_exception */, |
| 510 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 511 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
| 512 | int64 /* ppp_class */, |
| 513 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 514 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 515 | ppapi::proxy::SerializedVar /* out_exception */, |
| 516 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 517 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
| 518 | int64 /* ppp_class */, |
| 519 | int64 /* object */) |
| 520 | |
[email protected] | 502ec4dd | 2012-06-11 20:45:01 | [diff] [blame] | 521 | // PPB_Flash_DeviceID. |
| 522 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBFlashDeviceID_GetReply, |
| 523 | int32 /* routing_id */, |
| 524 | PP_Resource /* resource */, |
| 525 | int32 /* result */, |
| 526 | std::string /* value */) |
| 527 | |
[email protected] | 8c3bd1d | 2011-04-12 20:01:42 | [diff] [blame] | 528 | // PPP_Graphics3D_Dev. |
| 529 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, |
| 530 | PP_Instance /* instance */) |
| 531 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 532 | // PPP_InputEvent. |
| 533 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent, |
| 534 | PP_Instance /* instance */, |
| 535 | ppapi::InputEventData /* data */) |
| 536 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent, |
| 537 | PP_Instance /* instance */, |
| 538 | ppapi::InputEventData /* data */, |
| 539 | PP_Bool /* result */) |
[email protected] | 3b98ced7 | 2012-03-09 02:08:33 | [diff] [blame] | 540 | // (Message from the plugin to the browser that it handled an input event.) |
| 541 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent_ACK, |
| 542 | PP_Instance /* instance */, |
| 543 | PP_TimeTicks /* timestamp */) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 544 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 545 | // PPP_Instance. |
| 546 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
| 547 | PP_Instance /* instance */, |
| 548 | std::vector<std::string> /* argn */, |
| 549 | std::vector<std::string> /* argv */, |
| 550 | PP_Bool /* result */) |
[email protected] | 5e5d0b0 | 2011-04-04 19:32:07 | [diff] [blame] | 551 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, |
| 552 | PP_Instance /* instance */) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 553 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 554 | PP_Instance /* instance */, |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 555 | ppapi::ViewData /* new_data */, |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 556 | PP_Bool /* flash_fullscreen */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 557 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, |
| 558 | PP_Instance /* instance */, |
| 559 | PP_Bool /* has_focus */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 560 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad, |
| 561 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 562 | ppapi::HostResource /* url_loader */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 563 | PP_Bool /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 564 | |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 565 | // PPP_Messaging. |
| 566 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, |
| 567 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 568 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 569 | |
[email protected] | 1314f5f | 2011-10-16 02:26:56 | [diff] [blame] | 570 | // PPP_MouseLock. |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 571 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, |
| 572 | PP_Instance /* instance */) |
| 573 | |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 574 | // PPB_NetworkMonitor_Private. |
| 575 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, |
| 576 | uint32 /* plugin_dispatcher_id */, |
| 577 | ppapi::NetworkList /* network_list */) |
| 578 | |
[email protected] | 3890cfff | 2012-02-29 07:54:18 | [diff] [blame] | 579 | // PPP_Printing |
| 580 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_QuerySupportedFormats, |
| 581 | PP_Instance /* instance */, |
| 582 | uint32_t /* result */) |
| 583 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_Begin, |
| 584 | PP_Instance /* instance */, |
| 585 | std::string /* settings_string */, |
| 586 | int32_t /* result */) |
| 587 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPPrinting_PrintPages, |
| 588 | PP_Instance /* instance */, |
| 589 | std::vector<PP_PrintPageNumberRange_Dev> /* pages */, |
| 590 | ppapi::HostResource /* result */) |
| 591 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPPrinting_End, |
| 592 | PP_Instance /* instance */) |
| 593 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPPrinting_IsScalingDisabled, |
| 594 | PP_Instance /* instance */, |
| 595 | bool /* result */) |
| 596 | |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 597 | // PPP_TextInput. |
| 598 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText, |
| 599 | PP_Instance /* instance */, |
| 600 | uint32_t /* desired_number_of_characters */) |
| 601 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 602 | // PPB_URLLoader |
| 603 | // (Messages from browser to plugin to notify it of changes in state.) |
[email protected] | 214832f | 2012-09-18 05:44:23 | [diff] [blame] | 604 | // |
| 605 | // NOTE: The ReadResponseBody_Ack message is a custom generated message |
| 606 | // with the following fields appended: |
| 607 | // ppapi::HostResource |
| 608 | // response data (array of bytes stored via WriteData) |
| 609 | // int result |
| 610 | // |
| 611 | IPC_MESSAGE_ROUTED0(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 612 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete, |
| 613 | ppapi::HostResource /* loader */, |
| 614 | int32_t /* result */) |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 615 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 616 | // PPB_Broker. |
| 617 | IPC_MESSAGE_ROUTED3( |
| 618 | PpapiMsg_PPBBroker_ConnectComplete, |
| 619 | ppapi::HostResource /* broker */, |
| 620 | IPC::PlatformFileForTransit /* handle */, |
| 621 | int32_t /* result */) |
| 622 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 623 | // PPP_ContentDecryptor_Dev |
[email protected] | f1b1db0 | 2012-10-29 22:50:23 | [diff] [blame] | 624 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 625 | PP_Instance /* instance */, |
| 626 | ppapi::proxy::SerializedVar /* key_system, String */, |
[email protected] | f1b1db0 | 2012-10-29 22:50:23 | [diff] [blame] | 627 | ppapi::proxy::SerializedVar /* type, String */, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 628 | ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */) |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 629 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_AddKey, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 630 | PP_Instance /* instance */, |
| 631 | ppapi::proxy::SerializedVar /* session_id, String */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 632 | ppapi::proxy::SerializedVar /* key, ArrayBuffer */, |
| 633 | ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 634 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest, |
| 635 | PP_Instance /* instance */, |
| 636 | ppapi::proxy::SerializedVar /* session_id, String */) |
| 637 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt, |
| 638 | PP_Instance /* instance */, |
| 639 | ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 640 | std::string /* serialized_block_info */) |
[email protected] | e9d3a102 | 2012-10-11 23:43:55 | [diff] [blame] | 641 | IPC_MESSAGE_ROUTED3( |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 642 | PpapiMsg_PPPContentDecryptor_InitializeAudioDecoder, |
| 643 | PP_Instance /* instance */, |
| 644 | std::string /* serialized_decoder_config */, |
| 645 | ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer */) |
| 646 | IPC_MESSAGE_ROUTED3( |
[email protected] | e9d3a102 | 2012-10-11 23:43:55 | [diff] [blame] | 647 | PpapiMsg_PPPContentDecryptor_InitializeVideoDecoder, |
| 648 | PP_Instance /* instance */, |
| 649 | std::string /* serialized_decoder_config */, |
| 650 | ppapi::proxy::PPPDecryptor_Buffer /* extra_data_buffer. */) |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 651 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DeinitializeDecoder, |
| 652 | PP_Instance /* instance */, |
| 653 | PP_DecryptorStreamType /* decoder_type */, |
| 654 | uint32_t /* request_id */) |
| 655 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_ResetDecoder, |
| 656 | PP_Instance /* instance */, |
| 657 | PP_DecryptorStreamType /* decoder_type */, |
| 658 | uint32_t /* request_id */) |
[email protected] | 467434d | 2012-10-12 10:48:53 | [diff] [blame] | 659 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode, |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 660 | PP_Instance /* instance */, |
[email protected] | 467434d | 2012-10-12 10:48:53 | [diff] [blame] | 661 | PP_DecryptorStreamType /* decoder_type */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 662 | ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
| 663 | std::string /* serialized_block_info */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 664 | |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 665 | // PPB_Talk |
| 666 | IPC_MESSAGE_ROUTED3( |
| 667 | PpapiMsg_PPBTalk_GetPermissionACK, |
| 668 | uint32 /* plugin_dispatcher_id */, |
| 669 | PP_Resource /* resource */, |
| 670 | int32_t /* result */) |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 671 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 672 | |
| 673 | // PPB_TCPSocket_Private. |
| 674 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, |
| 675 | uint32 /* plugin_dispatcher_id */, |
| 676 | uint32 /* socket_id */, |
| 677 | bool /* succeeded */, |
| 678 | PP_NetAddress_Private /* local_addr */, |
| 679 | PP_NetAddress_Private /* remote_addr */) |
| 680 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, |
| 681 | uint32 /* plugin_dispatcher_id */, |
| 682 | uint32 /* socket_id */, |
| 683 | bool /* succeeded */, |
| 684 | ppapi::PPB_X509Certificate_Fields /* certificate_fields */) |
| 685 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK, |
| 686 | uint32 /* plugin_dispatcher_id */, |
| 687 | uint32 /* socket_id */, |
| 688 | bool /* succeeded */, |
| 689 | std::string /* data */) |
| 690 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, |
| 691 | uint32 /* plugin_dispatcher_id */, |
| 692 | uint32 /* socket_id */, |
| 693 | bool /* succeeded */, |
| 694 | int32_t /* bytes_written */) |
| 695 | |
| 696 | // PPB_UDPSocket_Private. |
| 697 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK, |
| 698 | uint32 /* plugin_dispatcher_id */, |
| 699 | uint32 /* socket_id */, |
| 700 | bool /* succeeded */, |
| 701 | PP_NetAddress_Private /* bound_addr */) |
| 702 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, |
| 703 | uint32 /* plugin_dispatcher_id */, |
| 704 | uint32 /* socket_id */, |
| 705 | bool /* succeeded */, |
| 706 | std::string /* data */, |
| 707 | PP_NetAddress_Private /* remote_addr */) |
| 708 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK, |
| 709 | uint32 /* plugin_dispatcher_id */, |
| 710 | uint32 /* socket_id */, |
| 711 | bool /* succeeded */, |
| 712 | int32_t /* bytes_written */) |
| 713 | |
| 714 | // PPB_URLLoader_Trusted |
| 715 | IPC_MESSAGE_ROUTED1( |
| 716 | PpapiMsg_PPBURLLoader_UpdateProgress, |
| 717 | ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) |
| 718 | |
| 719 | // PPB_TCPServerSocket_Private. |
| 720 | |
| 721 | // |socket_resource| should not be used as Resource in browser. The |
| 722 | // only purpose of this argument is to be echoed back. |
| 723 | // |status| == PP_ERROR_NOSPACE means that the socket table is full |
| 724 | // and new socket can't be initialized. |
| 725 | // |status| == PP_ERROR_FAILED means that socket is correctly |
| 726 | // initialized (if needed) but Listen call is failed. |
| 727 | // |status| == PP_OK means that socket is correctly initialized (if |
| 728 | // needed) and Listen call succeeds. |
| 729 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK, |
| 730 | uint32 /* plugin_dispatcher_id */, |
| 731 | PP_Resource /* socket_resource */, |
| 732 | uint32 /* socket_id */, |
| 733 | int32_t /* status */) |
| 734 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, |
| 735 | uint32 /* plugin_dispatcher_id */, |
| 736 | uint32 /* server_socket_id */, |
| 737 | uint32 /* accepted_socket_id */, |
| 738 | PP_NetAddress_Private /* local_addr */, |
| 739 | PP_NetAddress_Private /* remote_addr */) |
| 740 | |
| 741 | // PPB_HostResolver_Private. |
| 742 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK, |
| 743 | uint32 /* plugin_dispatcher_id */, |
| 744 | uint32 /* host_resolver_id */, |
| 745 | bool /* succeeded */, |
| 746 | std::string /* canonical_name */, |
[email protected] | 9984ca0 | 2012-09-13 18:12:02 | [diff] [blame] | 747 | std::vector<PP_NetAddress_Private> /* net_address_list */) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 748 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 749 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 750 | // PPP_Instance_Private. |
| 751 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 752 | PP_Instance /* instance */, |
| 753 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 754 | |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 755 | // PPB_VideoCapture_Dev |
| 756 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK, |
| 757 | ppapi::HostResource /* video_capture */, |
| 758 | int32_t /* result */, |
| 759 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 760 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK, |
| 761 | ppapi::HostResource /* video_capture */, |
| 762 | int32_t /* result */) |
| 763 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 764 | // PPP_VideoCapture_Dev |
| 765 | IPC_MESSAGE_ROUTED3( |
| 766 | PpapiMsg_PPPVideoCapture_OnDeviceInfo, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 767 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 768 | PP_VideoCaptureDeviceInfo_Dev /* info */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 769 | std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 770 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 771 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 772 | uint32_t /* status */) |
| 773 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 774 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 775 | uint32_t /* error_code */) |
| 776 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 777 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 778 | uint32_t /* buffer */) |
| 779 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 780 | // PPB_VideoDecoder_Dev. |
| 781 | // (Messages from renderer to plugin to notify it to run callbacks.) |
| 782 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 783 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 784 | int32_t /* bitstream buffer id */, |
| 785 | int32_t /* PP_CompletionCallback result */) |
| 786 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 787 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 788 | int32_t /* PP_CompletionCallback result */) |
| 789 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 790 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 791 | int32_t /* PP_CompletionCallback result */) |
| 792 | |
| 793 | // PPP_VideoDecoder_Dev. |
[email protected] | 08bab53 | 2012-06-08 19:39:45 | [diff] [blame] | 794 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 795 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 796 | uint32_t /* requested number of buffers */, |
[email protected] | 08bab53 | 2012-06-08 19:39:45 | [diff] [blame] | 797 | PP_Size /* dimensions of buffers */, |
| 798 | uint32_t /* texture_target */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 799 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 800 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 801 | int32_t /* picture buffer id */) |
| 802 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 803 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 804 | PP_Picture_Dev /* output picture */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 805 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 806 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 807 | PP_VideoDecodeError_Dev /* error */) |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 808 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 809 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 810 | // ----------------------------------------------------------------------------- |
| 811 | // These are from the plugin to the renderer. |
| 812 | |
| 813 | // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel |
| 814 | // could not be established. This could be because the IPC could not be created |
| 815 | // for some weird reason, but more likely that the plugin failed to load or |
| 816 | // initialize properly. |
| 817 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, |
| 818 | IPC::ChannelHandle /* handle */) |
| 819 | |
[email protected] | a9b16dd | 2012-01-31 05:00:26 | [diff] [blame] | 820 | // Logs the given message to the console of all instances. |
| 821 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource, |
| 822 | PP_Instance /* instance */, |
| 823 | int /* log_level */, |
| 824 | std::string /* source */, |
| 825 | std::string /* value */) |
| 826 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 827 | // PPB_Audio. |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 828 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 829 | PP_Instance /* instance_id */, |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 830 | int32_t /* sample_rate */, |
| 831 | uint32_t /* sample_frame_count */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 832 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 833 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 834 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 835 | bool /* play */) |
| 836 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 837 | // PPB_Core. |
| 838 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 839 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 840 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 841 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 842 | |
[email protected] | cc6db92 | 2011-12-10 16:54:22 | [diff] [blame] | 843 | // PPB_FileIO. |
| 844 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, |
| 845 | PP_Instance /* instance */, |
| 846 | ppapi::HostResource /* result */) |
| 847 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, |
| 848 | ppapi::HostResource /* host_resource */, |
| 849 | ppapi::HostResource /* file_ref_resource */, |
| 850 | int32_t /* open_flags */) |
| 851 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, |
| 852 | ppapi::HostResource /* host_resource */) |
| 853 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query, |
| 854 | ppapi::HostResource /* host_resource */) |
| 855 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch, |
| 856 | ppapi::HostResource /* host_resource */, |
| 857 | PP_Time /* last_access_time */, |
| 858 | PP_Time /* last_modified_time */) |
| 859 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read, |
| 860 | ppapi::HostResource /* host_resource */, |
| 861 | int64_t /* offset */, |
| 862 | int32_t /* bytes_to_read */) |
| 863 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write, |
| 864 | ppapi::HostResource /* host_resource */, |
| 865 | int64_t /* offset */, |
| 866 | std::string /* data */) |
| 867 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength, |
| 868 | ppapi::HostResource /* host_resource */, |
| 869 | int64_t /* length */) |
| 870 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush, |
| 871 | ppapi::HostResource /* host_resource */) |
| 872 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite, |
| 873 | ppapi::HostResource /* host_resource */, |
| 874 | int64_t /* offset */, |
| 875 | int32_t /* bytes_to_write */) |
| 876 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength, |
| 877 | ppapi::HostResource /* host_resource */, |
| 878 | int64_t /* length */) |
| 879 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 880 | // PPB_FileRef. |
| 881 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 882 | ppapi::HostResource /* file_system */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 883 | std::string /* path */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 884 | ppapi::PPB_FileRef_CreateInfo /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 885 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 886 | ppapi::HostResource /* file_ref */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 887 | ppapi::PPB_FileRef_CreateInfo /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 888 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 889 | ppapi::HostResource /* file_ref */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 890 | PP_Bool /* make_ancestors */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 891 | int /* callback_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 892 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 893 | ppapi::HostResource /* file_ref */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 894 | PP_Time /* last_access */, |
| 895 | PP_Time /* last_modified */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 896 | int /* callback_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 897 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 898 | ppapi::HostResource /* file_ref */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 899 | int /* callback_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 900 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 901 | ppapi::HostResource /* file_ref */, |
| 902 | ppapi::HostResource /* new_file_ref */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 903 | int /* callback_id */) |
[email protected] | f12a383 | 2011-11-28 23:11:45 | [diff] [blame] | 904 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, |
| 905 | ppapi::HostResource /* file_ref */, |
| 906 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 907 | |
| 908 | // PPB_FileSystem. |
| 909 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, |
| 910 | PP_Instance /* instance */, |
| 911 | int /* type */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 912 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 913 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 914 | ppapi::HostResource /* result */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 915 | int64_t /* expected_size */) |
| 916 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 917 | // PPB_Graphics2D. |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 918 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, |
| 919 | PP_Instance /* instance */, |
| 920 | PP_Size /* size */, |
| 921 | PP_Bool /* is_always_opaque */, |
| 922 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 923 | IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 924 | ppapi::HostResource /* graphics_2d */, |
| 925 | ppapi::HostResource /* image_data */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 926 | PP_Point /* top_left */, |
| 927 | bool /* src_rect_specified */, |
| 928 | PP_Rect /* src_rect */) |
| 929 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 930 | ppapi::HostResource /* graphics_2d */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 931 | bool /* clip_specified */, |
| 932 | PP_Rect /* clip */, |
| 933 | PP_Point /* amount */) |
| 934 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 935 | ppapi::HostResource /* graphics_2d */, |
| 936 | ppapi::HostResource /* image_data */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 937 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 938 | ppapi::HostResource /* graphics_2d */) |
[email protected] | 0cd5b9df | 2012-06-28 19:33:33 | [diff] [blame] | 939 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_Dev_SetScale, |
| 940 | ppapi::HostResource /* graphics_2d */, |
| 941 | float /* scale */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 942 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 943 | // PPB_Graphics3D. |
[email protected] | 9ed07f8 | 2012-05-29 21:54:55 | [diff] [blame] | 944 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 945 | PP_Instance /* instance */, |
[email protected] | 9ed07f8 | 2012-05-29 21:54:55 | [diff] [blame] | 946 | ppapi::HostResource /* share_context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 947 | std::vector<int32_t> /* attrib_list */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 948 | ppapi::HostResource /* result */) |
[email protected] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 949 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, |
| 950 | ppapi::HostResource /* context */) |
| 951 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 952 | ppapi::HostResource /* context */, |
[email protected] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 953 | int32 /* transfer_buffer_id */) |
[email protected] | 571b35e8 | 2012-05-19 00:04:35 | [diff] [blame] | 954 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBGraphics3D_GetState, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 955 | ppapi::HostResource /* context */, |
[email protected] | 571b35e8 | 2012-05-19 00:04:35 | [diff] [blame] | 956 | gpu::CommandBuffer::State /* state */, |
| 957 | bool /* success */) |
| 958 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBGraphics3D_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 959 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 960 | int32 /* put_offset */, |
| 961 | int32 /* last_known_get */, |
[email protected] | 571b35e8 | 2012-05-19 00:04:35 | [diff] [blame] | 962 | gpu::CommandBuffer::State /* state */, |
| 963 | bool /* success */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 964 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 965 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 966 | int32 /* put_offset */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 967 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 968 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 969 | int32 /* size */, |
| 970 | int32 /* id */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 971 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 972 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 973 | int32 /* id */) |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 974 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 975 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 976 | int32 /* id */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 977 | ppapi::proxy::SerializedHandle /* transfer_buffer */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 978 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 979 | ppapi::HostResource /* graphics_3d */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 980 | |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 981 | // PPB_ImageData. |
| 982 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, |
| 983 | PP_Instance /* instance */, |
| 984 | int32 /* format */, |
| 985 | PP_Size /* size */, |
| 986 | PP_Bool /* init_to_zero */, |
| 987 | ppapi::HostResource /* result_resource */, |
| 988 | std::string /* image_data_desc */, |
| 989 | ppapi::proxy::ImageHandle /* result */) |
[email protected] | 16b7b27 | 2012-07-25 21:54:49 | [diff] [blame] | 990 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateNaCl, |
| 991 | PP_Instance /* instance */, |
| 992 | int32 /* format */, |
| 993 | PP_Size /* size */, |
| 994 | PP_Bool /* init_to_zero */, |
| 995 | ppapi::HostResource /* result_resource */, |
| 996 | std::string /* image_data_desc */, |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 997 | ppapi::proxy::SerializedHandle /* result */) |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 998 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 999 | // PPB_Instance. |
| 1000 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, |
| 1001 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1002 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1003 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, |
| 1004 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1005 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1006 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, |
| 1007 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1008 | ppapi::HostResource /* device */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1009 | PP_Bool /* result */) |
[email protected] | c59ed589 | 2012-02-18 01:10:19 | [diff] [blame] | 1010 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1011 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, |
| 1012 | PP_Instance /* instance */, |
| 1013 | uint32_t /* result */) |
| 1014 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1015 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, |
| 1016 | PP_Instance /* instance */, |
| 1017 | uint32_t /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1018 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, |
| 1019 | PP_Instance /* instance */, |
| 1020 | PP_Bool /* result */) |
| 1021 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript, |
| 1022 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1023 | ppapi::proxy::SerializedVar /* script */, |
| 1024 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1025 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 8d770e49 | 2011-10-11 04:54:31 | [diff] [blame] | 1026 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet, |
| 1027 | PP_Instance /* instance */, |
| 1028 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 7a26d92e | 2012-02-17 20:15:25 | [diff] [blame] | 1029 | IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBInstance_GetFontFamilies, |
| 1030 | std::string /* result */) |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 1031 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, |
| 1032 | PP_Instance /* instance */, |
| 1033 | PP_Bool /* fullscreen */, |
| 1034 | PP_Bool /* result */) |
| 1035 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, |
| 1036 | PP_Instance /* instance */, |
| 1037 | PP_Bool /* result */, |
| 1038 | PP_Size /* size */) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 1039 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
| 1040 | PP_Instance /* instance */, |
| 1041 | bool /* is_filtering */, |
| 1042 | uint32_t /* event_classes */) |
| 1043 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
| 1044 | PP_Instance /* instance */, |
| 1045 | uint32_t /* event_classes */) |
[email protected] | 55a5a52 | 2011-07-06 22:52:40 | [diff] [blame] | 1046 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, |
| 1047 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1048 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1049 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, |
| 1050 | PP_Instance /* instance */) |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 1051 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, |
| 1052 | PP_Instance /* instance */) |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 1053 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, |
| 1054 | PP_Instance /* instance */, |
| 1055 | ppapi::proxy::SerializedVar /* relative */, |
| 1056 | ppapi::proxy::SerializedVar /* result */) |
| 1057 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest, |
| 1058 | PP_Instance /* instance */, |
| 1059 | ppapi::proxy::SerializedVar /* relative */, |
| 1060 | PP_Bool /* result */) |
| 1061 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument, |
| 1062 | PP_Instance /* active */, |
| 1063 | PP_Instance /* target */, |
| 1064 | PP_Bool /* result */) |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 1065 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetDocumentURL, |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 1066 | PP_Instance /* active */, |
[email protected] | 32938de | 2012-10-19 18:42:32 | [diff] [blame] | 1067 | PP_URLComponents_Dev /* components */, |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 1068 | ppapi::proxy::SerializedVar /* result */) |
| 1069 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL, |
| 1070 | PP_Instance /* active */, |
| 1071 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 33ec5056 | 2012-04-08 20:28:43 | [diff] [blame] | 1072 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor, |
| 1073 | PP_Instance /* instance */, |
| 1074 | int32_t /* type */, |
| 1075 | ppapi::HostResource /* custom_image */, |
| 1076 | PP_Point /* hot_spot */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1077 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_SetTextInputType, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1078 | PP_Instance /* instance */, |
| 1079 | PP_TextInput_Type /* type */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1080 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_UpdateCaretPosition, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1081 | PP_Instance /* instance */, |
| 1082 | PP_Rect /* caret */, |
| 1083 | PP_Rect /* bounding_box */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1084 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_CancelCompositionText, |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1085 | PP_Instance /* instance */) |
[email protected] | 4c44183a | 2012-04-27 16:52:23 | [diff] [blame] | 1086 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_UpdateSurroundingText, |
[email protected] | 3c8c74c | 2012-03-15 07:34:52 | [diff] [blame] | 1087 | PP_Instance /* instance */, |
| 1088 | std::string /* text */, |
| 1089 | uint32_t /* caret */, |
| 1090 | uint32_t /* anchor */) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1091 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1092 | // PPB_URLLoader. |
| 1093 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, |
| 1094 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1095 | ppapi::HostResource /* result */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1096 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1097 | ppapi::HostResource /* loader */, |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 1098 | ppapi::URLRequestInfoData /* request_data */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1099 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, |
| 1100 | ppapi::HostResource /* loader */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1101 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1102 | PpapiHostMsg_PPBURLLoader_GetResponseInfo, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1103 | ppapi::HostResource /* loader */, |
| 1104 | ppapi::HostResource /* response_info_out */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1105 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1106 | ppapi::HostResource /* loader */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1107 | int32_t /* bytes_to_read */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1108 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, |
| 1109 | ppapi::HostResource /* loader */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1110 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1111 | ppapi::HostResource /* loader */) |
[email protected] | bf712f8e | 2011-06-17 02:10:45 | [diff] [blame] | 1112 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1113 | ppapi::HostResource /* loader */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1114 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1115 | // PPB_URLResponseInfo. |
| 1116 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1117 | ppapi::HostResource /* response */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1118 | int32_t /* property */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1119 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1120 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1121 | ppapi::HostResource /* response */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 1122 | ppapi::PPB_FileRef_CreateInfo /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1123 | |
| 1124 | // PPB_Var. |
[email protected] | 5b2d385 | 2011-04-19 23:22:40 | [diff] [blame] | 1125 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject, |
| 1126 | int64 /* object_id */, |
| 1127 | int /* unused - need a return value for sync msgs */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1128 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, |
| 1129 | int64 /* object_id */) |
| 1130 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType, |
| 1131 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1132 | ppapi::proxy::SerializedVar /* var */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1133 | int /* new_type */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1134 | ppapi::proxy::SerializedVar /* exception */, |
| 1135 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1136 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1137 | ppapi::proxy::SerializedVar /* object */, |
| 1138 | ppapi::proxy::SerializedVar /* property */, |
| 1139 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1140 | PP_Bool /* result */) |
| 1141 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1142 | ppapi::proxy::SerializedVar /* object */, |
| 1143 | ppapi::proxy::SerializedVar /* method */, |
| 1144 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1145 | PP_Bool /* result */) |
| 1146 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1147 | ppapi::proxy::SerializedVar /* object */, |
| 1148 | ppapi::proxy::SerializedVar /* property */, |
| 1149 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1150 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1151 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1152 | ppapi::proxy::SerializedVar /* object */, |
| 1153 | ppapi::proxy::SerializedVar /* property */, |
| 1154 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1155 | PP_Bool /* result */) |
| 1156 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1157 | ppapi::proxy::SerializedVar /* object */, |
| 1158 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 1159 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1160 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1161 | ppapi::proxy::SerializedVar /* object */, |
| 1162 | ppapi::proxy::SerializedVar /* name */, |
| 1163 | ppapi::proxy::SerializedVar /* value */, |
| 1164 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1165 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1166 | ppapi::proxy::SerializedVar /* object */, |
| 1167 | ppapi::proxy::SerializedVar /* method_name */, |
| 1168 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1169 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1170 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1171 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1172 | ppapi::proxy::SerializedVar /* object */, |
| 1173 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1174 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1175 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1176 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1177 | ppapi::proxy::SerializedVar /* var */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1178 | int64 /* object_class */, |
| 1179 | int64 /* object-data */, |
| 1180 | PP_Bool /* result */) |
| 1181 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 1182 | PP_Instance /* instance */, |
| 1183 | int64 /* object_class */, |
| 1184 | int64 /* object_data */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1185 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 6239d34 | 2011-05-06 22:55:47 | [diff] [blame] | 1186 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1187 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1188 | // PPB_Broker. |
| 1189 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, |
| 1190 | PP_Instance /* instance */, |
| 1191 | ppapi::HostResource /* result_resource */) |
| 1192 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, |
| 1193 | ppapi::HostResource /* broker */) |
| 1194 | |
| 1195 | // PPB_Buffer. |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1196 | IPC_SYNC_MESSAGE_ROUTED2_2( |
| 1197 | PpapiHostMsg_PPBBuffer_Create, |
| 1198 | PP_Instance /* instance */, |
| 1199 | uint32_t /* size */, |
| 1200 | ppapi::HostResource /* result_resource */, |
| 1201 | ppapi::proxy::SerializedHandle /* result_shm_handle */) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1202 | |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1203 | // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy. |
| 1204 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey, |
| 1205 | PP_Instance /* instance */, |
| 1206 | ppapi::proxy::SerializedVar /* key_system, String */, |
| 1207 | ppapi::proxy::SerializedVar /* session_id, String */, |
| 1208 | ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */) |
| 1209 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded, |
| 1210 | PP_Instance /* instance */, |
| 1211 | ppapi::proxy::SerializedVar /* key_system, String */, |
| 1212 | ppapi::proxy::SerializedVar /* session_id, String */) |
| 1213 | IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage, |
| 1214 | PP_Instance /* instance */, |
| 1215 | ppapi::proxy::SerializedVar /* key_system, String */, |
| 1216 | ppapi::proxy::SerializedVar /* session_id, String */, |
| 1217 | PP_Resource /* message, PPB_Buffer_Dev */, |
| 1218 | ppapi::proxy::SerializedVar /* default_url, String */) |
| 1219 | IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError, |
| 1220 | PP_Instance /* instance */, |
| 1221 | ppapi::proxy::SerializedVar /* key_system, String */, |
| 1222 | ppapi::proxy::SerializedVar /* session_id, String */, |
| 1223 | int32_t /* media_error */, |
| 1224 | int32_t /* system_code */) |
| 1225 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock, |
| 1226 | PP_Instance /* instance */, |
| 1227 | PP_Resource /* decrypted_block, PPB_Buffer_Dev */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 1228 | std::string /* serialized_block_info */) |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 1229 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_DecoderInitializeDone, |
[email protected] | e9d3a102 | 2012-10-11 23:43:55 | [diff] [blame] | 1230 | PP_Instance /* instance */, |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 1231 | PP_DecryptorStreamType /* decoder_type */, |
| 1232 | uint32_t /* request_id */, |
| 1233 | PP_Bool /* success */) |
[email protected] | 23de8745 | 2012-10-12 07:03:09 | [diff] [blame] | 1234 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone, |
| 1235 | PP_Instance /* instance */, |
| 1236 | PP_DecryptorStreamType /* decoder_type */, |
| 1237 | uint32_t /* request_id */) |
| 1238 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DecoderResetDone, |
| 1239 | PP_Instance /* instance */, |
| 1240 | PP_DecryptorStreamType /* decoder_type */, |
| 1241 | uint32_t /* request_id */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1242 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame, |
| 1243 | PP_Instance /* instance */, |
| 1244 | PP_Resource /* decrypted_frame, PPB_Buffer_Dev */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 1245 | std::string /* serialized_block_info */) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1246 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples, |
| 1247 | PP_Instance /* instance */, |
[email protected] | c999b3b7 | 2012-10-19 22:33:46 | [diff] [blame] | 1248 | PP_Resource /* audio_frames, PPB_Buffer_Dev */, |
[email protected] | 98ad978 | 2012-08-22 04:06:22 | [diff] [blame] | 1249 | std::string /* serialized_block_info */) |
[email protected] | e8f578d | 2012-09-17 19:27:10 | [diff] [blame] | 1250 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | e5aeef0 | 2012-08-17 00:18:43 | [diff] [blame] | 1251 | |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1252 | // PPB_NetworkMonitor_Private. |
| 1253 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
| 1254 | uint32 /* plugin_dispatcher_id */) |
| 1255 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
| 1256 | uint32 /* plugin_dispatcher_id */) |
| 1257 | |
| 1258 | // PPB_HostResolver_Private. |
| 1259 | IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, |
| 1260 | int32 /* routing_id */, |
| 1261 | uint32 /* plugin_dispatcher_id */, |
| 1262 | uint32 /* host_resolver_id */, |
| 1263 | ppapi::HostPortPair /* host_port */, |
| 1264 | PP_HostResolver_Private_Hint /* hint */) |
| 1265 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1266 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1267 | // PPB_PDF |
| 1268 | IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1269 | PpapiHostMsg_PPBPDF_GetFontFileWithFallback, |
| 1270 | PP_Instance /* instance */, |
| 1271 | ppapi::proxy::SerializedFontDescription /* description */, |
| 1272 | int32_t /* charset */, |
| 1273 | ppapi::HostResource /* result */) |
| 1274 | IPC_SYNC_MESSAGE_ROUTED2_1( |
| 1275 | PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
| 1276 | ppapi::HostResource /* font_file */, |
| 1277 | uint32_t /* table */, |
| 1278 | std::string /* result */) |
| 1279 | |
| 1280 | |
| 1281 | // PPB_Talk. |
| 1282 | IPC_MESSAGE_ROUTED2( |
| 1283 | PpapiHostMsg_PPBTalk_GetPermission, |
| 1284 | uint32 /* plugin_dispatcher_id */, |
| 1285 | PP_Resource /* resource */) |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1286 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 6761d63 | 2012-04-18 17:54:49 | [diff] [blame] | 1287 | |
| 1288 | // PPB_Testing. |
| 1289 | IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1290 | PpapiHostMsg_PPBTesting_ReadImageData, |
| 1291 | ppapi::HostResource /* device_context_2d */, |
| 1292 | ppapi::HostResource /* image */, |
| 1293 | PP_Point /* top_left */, |
| 1294 | PP_Bool /* result */) |
| 1295 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1296 | PP_Instance /* instance */, |
| 1297 | uint32 /* result */) |
| 1298 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, |
| 1299 | PP_Instance /* instance */, |
| 1300 | ppapi::InputEventData /* input_event */) |
| 1301 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1302 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1303 | // PPB_VideoCapture_Dev. |
| 1304 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create, |
| 1305 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1306 | ppapi::HostResource /* result */) |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1307 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices, |
| 1308 | ppapi::HostResource /* video_capture */) |
| 1309 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1310 | ppapi::HostResource /* video_capture */, |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1311 | std::string /* device_id */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1312 | PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 1313 | uint32_t /* buffer_count */) |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1314 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture, |
| 1315 | ppapi::HostResource /* video_capture */) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1316 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1317 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1318 | uint32_t /* buffer */) |
| 1319 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1320 | ppapi::HostResource /* video_capture */) |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1321 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close, |
| 1322 | ppapi::HostResource /* video_capture */) |
| 1323 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1, |
| 1324 | ppapi::HostResource /* video_capture */, |
| 1325 | PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 1326 | uint32_t /* buffer_count */) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1327 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1328 | // PPB_VideoDecoder. |
| 1329 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, |
| 1330 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1331 | ppapi::HostResource /* context */, |
[email protected] | 2ffc31a | 2011-09-01 03:18:28 | [diff] [blame] | 1332 | PP_VideoDecoder_Profile /* profile */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1333 | ppapi::HostResource /* result */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1334 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1335 | ppapi::HostResource /* video_decoder */, |
| 1336 | ppapi::HostResource /* bitstream buffer */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1337 | int32 /* bitstream buffer id */, |
| 1338 | int32 /* size of buffer */) |
| 1339 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1340 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1341 | std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
| 1342 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1343 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1344 | int32_t /* picture buffer id */) |
| 1345 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1346 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1347 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1348 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1349 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1350 | ppapi::HostResource /* video_decoder */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1351 | |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1352 | // PPB_Flash. |
| 1353 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, |
| 1354 | PP_Instance /* instance */, |
| 1355 | PP_Bool /* on_top */) |
| 1356 | // This has to be synchronous becuase the caller may want to composite on |
| 1357 | // top of the resulting text after the call is complete. |
[email protected] | d1e33ca | 2012-04-25 19:26:40 | [diff] [blame] | 1358 | IPC_SYNC_MESSAGE_ROUTED2_1( |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1359 | PpapiHostMsg_PPBFlash_DrawGlyphs, |
[email protected] | d1e33ca | 2012-04-25 19:26:40 | [diff] [blame] | 1360 | PP_Instance /* instance */, |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1361 | ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, |
| 1362 | PP_Bool /* result */) |
| 1363 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL, |
| 1364 | PP_Instance /* instance */, |
| 1365 | std::string /* url */, |
| 1366 | ppapi::proxy::SerializedVar /* result */) |
| 1367 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate, |
| 1368 | PP_Instance /* instance */, |
[email protected] | 7b2f729 | 2012-09-19 19:52:12 | [diff] [blame] | 1369 | ppapi::URLRequestInfoData /* request_data */, |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1370 | std::string /* target */, |
| 1371 | PP_Bool /* from_user_action */, |
| 1372 | int32_t /* result */) |
| 1373 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop, |
| 1374 | PP_Instance /* instance */) |
| 1375 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop, |
| 1376 | PP_Instance /* instance */) |
| 1377 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset, |
| 1378 | PP_Instance /* instance */, |
| 1379 | PP_Time /* t */, |
| 1380 | double /* offset */) |
| 1381 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost, |
| 1382 | PP_Instance /* instance */, |
| 1383 | PP_Rect /* rect */, |
| 1384 | PP_Bool /* result */) |
[email protected] | a085aed7 | 2012-04-24 05:32:04 | [diff] [blame] | 1385 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_FlashSetFullscreen, |
| 1386 | PP_Instance /* instance */, |
| 1387 | PP_Bool /* fullscreen */, |
| 1388 | PP_Bool /* result */) |
| 1389 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlash_FlashGetScreenSize, |
| 1390 | PP_Instance /* instance */, |
| 1391 | PP_Bool /* result */, |
| 1392 | PP_Size /* size */) |
[email protected] | 39e2dca | 2012-04-20 21:42:33 | [diff] [blame] | 1393 | IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBFlash_UpdateActivity) |
[email protected] | 595a5ed | 2012-05-04 00:39:16 | [diff] [blame] | 1394 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlash_GetDeviceID, |
| 1395 | PP_Instance /* instance */, |
| 1396 | ppapi::proxy::SerializedVar /* id */) |
[email protected] | 724fbd3 | 2012-04-30 16:19:41 | [diff] [blame] | 1397 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef, |
| 1398 | PP_Instance /* instance */, |
| 1399 | ppapi::HostResource /* file_ref */, |
| 1400 | int32_t /* mode */, |
| 1401 | IPC::PlatformFileForTransit /* file_handle */, |
| 1402 | int32_t /* result */) |
| 1403 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef, |
| 1404 | PP_Instance /* instance */, |
| 1405 | ppapi::HostResource /* file_ref */, |
| 1406 | PP_FileInfo /* info */, |
| 1407 | int32_t /* result */) |
[email protected] | ea628e3 | 2012-08-02 21:50:16 | [diff] [blame] | 1408 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting, |
| 1409 | PP_Instance /* instance */, |
| 1410 | PP_FlashSetting /* setting */, |
| 1411 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 765b0844 | 2012-05-07 22:01:41 | [diff] [blame] | 1412 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting, |
| 1413 | PP_Instance /* instance */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1414 | |
[email protected] | 502ec4dd | 2012-06-11 20:45:01 | [diff] [blame] | 1415 | // PPB_Flash_DeviceID. |
| 1416 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashDeviceID_Get, |
| 1417 | int32 /* routing_id */, |
| 1418 | PP_Resource /* resource */) |
| 1419 | |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1420 | // PPB_Flash_Menu |
| 1421 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create, |
| 1422 | PP_Instance /* instance */, |
| 1423 | ppapi::proxy::SerializedFlashMenu /* menu_data */, |
| 1424 | ppapi::HostResource /* result */) |
| 1425 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBFlashMenu_Show, |
| 1426 | ppapi::HostResource /* menu */, |
| 1427 | PP_Point /* location */) |
| 1428 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK, |
| 1429 | ppapi::HostResource /* menu */, |
| 1430 | int32_t /* selected_id */, |
| 1431 | int32_t /* result */) |
| 1432 | |
| 1433 | // PPB_Flash_MessageLoop. |
| 1434 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, |
| 1435 | PP_Instance /* instance */, |
| 1436 | ppapi::HostResource /* result */) |
| 1437 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, |
| 1438 | ppapi::HostResource /* flash_message_loop */, |
| 1439 | int32_t /* result */) |
| 1440 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, |
| 1441 | ppapi::HostResource /* flash_message_loop */) |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1442 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1443 | |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1444 | // PPB_TCPSocket_Private. |
| 1445 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create, |
| 1446 | int32 /* routing_id */, |
| 1447 | uint32 /* plugin_dispatcher_id */, |
| 1448 | uint32 /* socket_id */) |
| 1449 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect, |
| 1450 | int32 /* routing_id */, |
| 1451 | uint32 /* socket_id */, |
| 1452 | std::string /* host */, |
| 1453 | uint16_t /* port */) |
| 1454 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress, |
| 1455 | int32 /* routing_id */, |
| 1456 | uint32 /* socket_id */, |
| 1457 | PP_NetAddress_Private /* net_addr */) |
[email protected] | 92a79499 | 2012-04-12 03:38:22 | [diff] [blame] | 1458 | IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPSocket_SSLHandshake, |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1459 | uint32 /* socket_id */, |
| 1460 | std::string /* server_name */, |
[email protected] | 92a79499 | 2012-04-12 03:38:22 | [diff] [blame] | 1461 | uint16_t /* server_port */, |
| 1462 | std::vector<std::vector<char> > /* trusted_certs */, |
| 1463 | std::vector<std::vector<char> > /* untrusted_certs */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1464 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read, |
| 1465 | uint32 /* socket_id */, |
| 1466 | int32_t /* bytes_to_read */) |
| 1467 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, |
| 1468 | uint32 /* socket_id */, |
| 1469 | std::string /* data */) |
| 1470 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, |
| 1471 | uint32 /* socket_id */) |
| 1472 | |
| 1473 | // PPB_UDPSocket_Private. |
| 1474 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create, |
| 1475 | int32 /* routing_id */, |
| 1476 | uint32 /* plugin_dispatcher_id */, |
| 1477 | uint32 /* socket_id */) |
[email protected] | 0addda9 | 2012-08-31 08:55:28 | [diff] [blame] | 1478 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature, |
| 1479 | int32 /* routing_id */, |
| 1480 | uint32 /* socket_id */, |
| 1481 | int32_t /* name */, |
| 1482 | bool /* value */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1483 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind, |
| 1484 | int32 /* routing_id */, |
| 1485 | uint32 /* socket_id */, |
| 1486 | PP_NetAddress_Private /* net_addr */) |
| 1487 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, |
| 1488 | uint32 /* socket_id */, |
| 1489 | int32_t /* num_bytes */) |
[email protected] | 157cc90 | 2012-11-02 06:31:58 | [diff] [blame] | 1490 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBUDPSocket_SendTo, |
| 1491 | int32 /* routing_id */, |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1492 | uint32 /* socket_id */, |
| 1493 | std::string /* data */, |
| 1494 | PP_NetAddress_Private /* net_addr */) |
| 1495 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close, |
| 1496 | uint32 /* socket_id */) |
| 1497 | |
| 1498 | // PPB_TCPServerSocket_Private. |
| 1499 | IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen, |
| 1500 | int32 /* routing_id */, |
| 1501 | uint32 /* plugin_dispatcher_id */, |
[email protected] | 2d011e8 | 2012-03-15 09:39:56 | [diff] [blame] | 1502 | PP_Resource /* socket_resource */, |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1503 | PP_NetAddress_Private /* addr */, |
| 1504 | int32_t /* backlog */) |
[email protected] | 2d011e8 | 2012-03-15 09:39:56 | [diff] [blame] | 1505 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, |
| 1506 | int32 /* tcp_client_socket_routing_id */, |
| 1507 | uint32 /* server_socket_id */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1508 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, |
[email protected] | 2d011e8 | 2012-03-15 09:39:56 | [diff] [blame] | 1509 | uint32 /* socket_id */) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1510 | |
[email protected] | de289526 | 2012-04-04 17:15:48 | [diff] [blame] | 1511 | // PPB_X509Certificate_Private |
| 1512 | IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, |
| 1513 | std::vector<char> /* der */, |
| 1514 | bool /* succeeded */, |
| 1515 | ppapi::PPB_X509Certificate_Fields /* result */) |
| 1516 | |
[email protected] | 667591d | 2012-09-04 21:30:12 | [diff] [blame] | 1517 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 339fbcff | 2012-02-29 16:10:32 | [diff] [blame] | 1518 | // PPB_Font. |
| 1519 | IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, |
| 1520 | std::string /* result */) |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1521 | |
[email protected] | 246fc49 | 2012-08-27 20:28:18 | [diff] [blame] | 1522 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | 077ecfd4 | 2012-06-21 21:46:26 | [diff] [blame] | 1523 | |
| 1524 | //----------------------------------------------------------------------------- |
| 1525 | // Resource call/reply messages. |
| 1526 | // |
| 1527 | // These are the new-style resource implementations where the resource is only |
| 1528 | // implemented in the proxy and "resource messages" are sent between this and a |
| 1529 | // host object. Resource messages are a wrapper around some general routing |
| 1530 | // information and a separate message of a type defined by the specific resource |
| 1531 | // sending/receiving it. The extra paremeters allow the nested message to be |
| 1532 | // routed automatically to the correct resource. |
| 1533 | |
| 1534 | // Notification that a resource has been created in the plugin. The nested |
| 1535 | // message will be resource-type-specific. |
| 1536 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated, |
| 1537 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1538 | PP_Instance /* instance */, |
| 1539 | IPC::Message /* nested_msg */) |
| 1540 | |
| 1541 | // Notification that a resource has been destroyed in the plugin. |
| 1542 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed, |
| 1543 | PP_Resource /* resource */) |
| 1544 | |
| 1545 | // A resource call is a request from the plugin to the host. It may or may not |
| 1546 | // require a reply, depending on the params. The nested message will be |
| 1547 | // resource-type-specific. |
| 1548 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall, |
| 1549 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1550 | IPC::Message /* nested_msg */) |
| 1551 | |
| 1552 | // A resource reply is a response to a ResourceCall from a host to the |
| 1553 | // plugin. The resource ID + sequence number in the params will correspond to |
| 1554 | // that of the previous ResourceCall. |
| 1555 | IPC_MESSAGE_CONTROL2( |
| 1556 | PpapiPluginMsg_ResourceReply, |
| 1557 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1558 | IPC::Message /* nested_msg */) |
[email protected] | eccf8031 | 2012-07-14 15:43:42 | [diff] [blame] | 1559 | |
[email protected] | ff44fc1 | 2012-10-03 00:52:16 | [diff] [blame] | 1560 | IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, |
| 1561 | ppapi::proxy::ResourceMessageCallParams /* call_params */, |
| 1562 | IPC::Message /* nested_msg */, |
| 1563 | ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
| 1564 | IPC::Message /* reply_msg */) |
| 1565 | |
[email protected] | eccf8031 | 2012-07-14 15:43:42 | [diff] [blame] | 1566 | //----------------------------------------------------------------------------- |
| 1567 | // Messages for resources using call/reply above. |
| 1568 | |
| 1569 | // File chooser. |
| 1570 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1571 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1572 | bool /* save_as */, |
| 1573 | bool /* open_multiple */, |
| 1574 | std::string /* suggested_file_name */, |
| 1575 | std::vector<std::string> /* accept_mime_types */) |
| 1576 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1577 | std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1578 | |
[email protected] | b7631cc | 2012-09-15 05:08:38 | [diff] [blame] | 1579 | // Flash device ID. |
| 1580 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) |
| 1581 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) |
| 1582 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, |
| 1583 | std::string /* id */) |
| 1584 | |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1585 | // Gamepad. |
| 1586 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
[email protected] | 00c0d04 | 2012-09-10 07:06:39 | [diff] [blame] | 1587 | |
| 1588 | // Requests that the gamepad host send the shared memory handle to the plugin |
| 1589 | // process. |
[email protected] | f511881 | 2012-08-24 19:54:30 | [diff] [blame] | 1590 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) |
[email protected] | 00c0d04 | 2012-09-10 07:06:39 | [diff] [blame] | 1591 | |
| 1592 | // Reply to a RequestMemory call. This supplies the shared memory handle. The |
| 1593 | // actual handle is passed in the ReplyParams struct. |
| 1594 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Gamepad_SendMemory) |
| 1595 | |
[email protected] | e9cb0b79 | 2012-09-07 07:11:06 | [diff] [blame] | 1596 | // Printing. |
| 1597 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
| 1598 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
| 1599 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
| 1600 | PP_PrintSettings_Dev /* print_settings */) |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1601 | |
| 1602 | // WebSocket ------------------------------------------------------------------ |
[email protected] | 9d5eadf | 2012-10-09 03:43:48 | [diff] [blame] | 1603 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_WebSocket_Create) |
| 1604 | |
| 1605 | // Establishes the connection to a server. This message requires |
| 1606 | // WebSocket_ConnectReply as a reply message. |
| 1607 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Connect, |
| 1608 | std::string /* url */, |
| 1609 | std::vector<std::string> /* protocols */) |
| 1610 | |
| 1611 | // Closes established connection with graceful closing handshake. This message |
| 1612 | // requires WebSocket_CloseReply as a reply message. |
| 1613 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_WebSocket_Close, |
| 1614 | int32_t /* code */, |
| 1615 | std::string /* reason */) |
| 1616 | |
| 1617 | // Sends a text frame to the server. No reply is defined. |
| 1618 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendText, |
| 1619 | std::string /* message */) |
| 1620 | |
| 1621 | // Sends a binary frame to the server. No reply is defined. |
| 1622 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_SendBinary, |
| 1623 | std::vector<uint8_t> /* message */) |
| 1624 | |
| 1625 | // Fails the connection. This message invokes RFC6455 defined |
| 1626 | // _Fail the WebSocket Connection_ operation. No reply is defined. |
| 1627 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_WebSocket_Fail, |
| 1628 | std::string /* message */) |
| 1629 | |
| 1630 | // This message is a reply to WebSocket_Connect. If the |url| and |protocols| |
| 1631 | // are invalid, WebSocket_ConnectReply is issued immediately and it contains |
| 1632 | // proper error code in its result. Otherwise, WebSocket_ConnectReply is sent |
| 1633 | // with valid |url|, |protocol|, and result PP_OK. |protocol| is not a passed |
| 1634 | // |protocols|, but a result of opening handshake negotiation. If the |
| 1635 | // connection can not be established successfully, WebSocket_ConnectReply is |
| 1636 | // not issued, but WebSocket_ClosedReply is sent instead. |
| 1637 | IPC_MESSAGE_CONTROL2(PpapiPluginMsg_WebSocket_ConnectReply, |
| 1638 | std::string /* url */, |
| 1639 | std::string /* protocol */) |
| 1640 | |
| 1641 | // This message is a reply to WebSocket_Close. If the operation fails, |
| 1642 | // WebSocket_CloseReply is issued immediately and it contains PP_ERROR_FAILED. |
| 1643 | // Otherwise, CloseReply will be issued after the closing handshake is |
| 1644 | // finished. All arguments will be valid iff the result is PP_OK and it means |
| 1645 | // that the client initiated closing handshake is finished gracefully. |
| 1646 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_CloseReply, |
| 1647 | unsigned long /* buffered_amount */, |
| 1648 | bool /* was_clean */, |
| 1649 | unsigned short /* code */, |
| 1650 | std::string /* reason */) |
| 1651 | |
| 1652 | // Unsolicited reply message to transmit a receiving text frame. |
| 1653 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveTextReply, |
| 1654 | std::string /* message */) |
| 1655 | |
| 1656 | // Unsolicited reply message to transmit a receiving binary frame. |
| 1657 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_ReceiveBinaryReply, |
| 1658 | std::vector<uint8_t> /* message */) |
| 1659 | |
| 1660 | // Unsolicited reply message to notify a error on underlying network connetion. |
| 1661 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_WebSocket_ErrorReply) |
| 1662 | |
| 1663 | // Unsolicited reply message to update the buffered amount value. |
| 1664 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_BufferedAmountReply, |
| 1665 | unsigned long /* buffered_amount */) |
| 1666 | |
| 1667 | // Unsolicited reply message to update |state| because of incoming external |
| 1668 | // events, e.g., protocol error, or unexpected network closure. |
| 1669 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_WebSocket_StateReply, |
| 1670 | int32_t /* state */) |
| 1671 | |
| 1672 | // Unsolicited reply message to notify that the connection is closed without |
| 1673 | // any WebSocket_Close request. Server initiated closing handshake or |
| 1674 | // unexpected network errors will invoke this message. |
| 1675 | IPC_MESSAGE_CONTROL4(PpapiPluginMsg_WebSocket_ClosedReply, |
| 1676 | unsigned long /* buffered_amount */, |
| 1677 | bool /* was_clean */, |
| 1678 | unsigned short /* code */, |
| 1679 | std::string /* reason */) |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 1680 | |
| 1681 | #if !defined(OS_NACL) && !defined(NACL_WIN64) |
[email protected] | a1686e27 | 2012-11-01 23:39:34 | [diff] [blame] | 1682 | |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame^] | 1683 | // Audio input. |
| 1684 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) |
| 1685 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_EnumerateDevices) |
| 1686 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_AudioInput_EnumerateDevicesReply, |
| 1687 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 1688 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, |
| 1689 | std::string /* device_id */, |
| 1690 | PP_AudioSampleRate /* sample_rate */, |
| 1691 | uint32_t /* sample_frame_count */) |
| 1692 | // Reply to an Open call. This supplies a socket handle and a shared memory |
| 1693 | // handle. Both handles are passed in the ReplyParams struct. |
| 1694 | IPC_MESSAGE_CONTROL0(PpapiPluginMsg_AudioInput_OpenReply) |
| 1695 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_AudioInput_StartOrStop, bool /* capture */) |
| 1696 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Close) |
| 1697 | |
[email protected] | a1686e27 | 2012-11-01 23:39:34 | [diff] [blame] | 1698 | // Flash clipboard. |
| 1699 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashClipboard_Create) |
| 1700 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashClipboard_RegisterCustomFormat, |
| 1701 | std::string /* format_name */) |
| 1702 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_RegisterCustomFormatReply, |
| 1703 | uint32_t /* format */) |
| 1704 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_IsFormatAvailable, |
| 1705 | uint32_t /* clipboard_type */, |
| 1706 | uint32_t /* format */) |
| 1707 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData, |
| 1708 | uint32_t /* clipboard_type */, |
| 1709 | uint32_t /* format */) |
| 1710 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply, |
| 1711 | std::string /* result */) |
| 1712 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData, |
| 1713 | uint32_t /* clipboard_type */, |
| 1714 | std::vector<uint32_t> /* formats */, |
| 1715 | std::vector<std::string> /* data */) |
[email protected] | 77b5550 | 2012-11-08 22:20:20 | [diff] [blame^] | 1716 | |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 1717 | // Flash font file. |
| 1718 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, |
| 1719 | ppapi::proxy::SerializedFontDescription /* description */, |
| 1720 | PP_PrivateFontCharset /* charset */) |
| 1721 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, |
| 1722 | uint32_t /* table */) |
| 1723 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, |
| 1724 | std::string /* output */) |
[email protected] | 11d0c36 | 2012-10-11 02:02:11 | [diff] [blame] | 1725 | |
| 1726 | // Flash functions. |
| 1727 | IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) |
| 1728 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_EnumerateVideoCaptureDevices, |
| 1729 | ppapi::HostResource /* video_capture */) |
| 1730 | IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Flash_EnumerateVideoCaptureDevicesReply, |
| 1731 | std::vector<ppapi::DeviceRefData> /* devices */) |
[email protected] | cb65f13 | 2012-10-09 17:06:09 | [diff] [blame] | 1732 | #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |