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