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