[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] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 24 | #include "ppapi/c/pp_bool.h" |
[email protected] | ea505a9d | 2011-07-07 18:34:40 | [diff] [blame] | 25 | #include "ppapi/c/pp_file_info.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 26 | #include "ppapi/c/pp_instance.h" |
| 27 | #include "ppapi/c/pp_module.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 28 | #include "ppapi/c/pp_point.h" |
| 29 | #include "ppapi/c/pp_rect.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 30 | #include "ppapi/c/pp_resource.h" |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 31 | #include "ppapi/c/pp_size.h" |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 32 | #include "ppapi/c/private/ppb_tcp_socket_private.h" |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 33 | #include "ppapi/proxy/ppapi_param_traits.h" |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 34 | #include "ppapi/proxy/ppapi_proxy_export.h" |
[email protected] | 7358d57 | 2011-02-15 18:44:40 | [diff] [blame] | 35 | #include "ppapi/proxy/serialized_flash_menu.h" |
[email protected] | fb35dcf | 2010-11-14 17:08:00 | [diff] [blame] | 36 | #include "ppapi/proxy/serialized_structs.h" |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 37 | #include "ppapi/shared_impl/ppapi_preferences.h" |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 38 | #include "ppapi/shared_impl/ppb_device_ref_shared.h" |
[email protected] | 9a57839 | 2011-12-07 18:59:27 | [diff] [blame] | 39 | #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 40 | #include "ppapi/shared_impl/ppb_url_request_info_shared.h" |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 41 | #include "ppapi/shared_impl/ppb_view_shared.h" |
[email protected] | 19d2b01 | 2010-11-08 16:32:18 | [diff] [blame] | 42 | |
[email protected] | f0a04c4 | 2011-08-26 22:43:20 | [diff] [blame] | 43 | #undef IPC_MESSAGE_EXPORT |
| 44 | #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 45 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 46 | #define IPC_MESSAGE_START PpapiMsgStart |
[email protected] | c2932f5e | 2010-11-03 03:22:33 | [diff] [blame] | 47 | |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 48 | IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 49 | IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 50 | IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 51 | IPC_ENUM_TRAITS(PP_TextInput_Type) |
[email protected] | 2ffc31a | 2011-09-01 03:18:28 | [diff] [blame] | 52 | IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 53 | IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 54 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 55 | IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 56 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 57 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 58 | IPC_STRUCT_TRAITS_END() |
| 59 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 60 | IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 61 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 62 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 63 | IPC_STRUCT_TRAITS_END() |
| 64 | |
[email protected] | 9b7cc08 | 2011-04-20 20:25:55 | [diff] [blame] | 65 | IPC_STRUCT_TRAITS_BEGIN(PP_Size) |
| 66 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 67 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 68 | IPC_STRUCT_TRAITS_END() |
| 69 | |
| 70 | IPC_STRUCT_TRAITS_BEGIN(PP_Rect) |
| 71 | IPC_STRUCT_TRAITS_MEMBER(point) |
| 72 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 73 | IPC_STRUCT_TRAITS_END() |
| 74 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 75 | IPC_STRUCT_TRAITS_BEGIN(PP_PictureBuffer_Dev) |
| 76 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 77 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 78 | IPC_STRUCT_TRAITS_MEMBER(texture_id) |
| 79 | IPC_STRUCT_TRAITS_END() |
| 80 | |
| 81 | IPC_STRUCT_TRAITS_BEGIN(PP_Picture_Dev) |
| 82 | IPC_STRUCT_TRAITS_MEMBER(picture_buffer_id) |
| 83 | IPC_STRUCT_TRAITS_MEMBER(bitstream_buffer_id) |
| 84 | IPC_STRUCT_TRAITS_END() |
| 85 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 86 | IPC_STRUCT_TRAITS_BEGIN(PP_VideoCaptureDeviceInfo_Dev) |
| 87 | IPC_STRUCT_TRAITS_MEMBER(width) |
| 88 | IPC_STRUCT_TRAITS_MEMBER(height) |
| 89 | IPC_STRUCT_TRAITS_MEMBER(frames_per_second) |
| 90 | IPC_STRUCT_TRAITS_END() |
| 91 | |
[email protected] | dca65e1 | 2012-01-21 07:54:17 | [diff] [blame] | 92 | IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
| 93 | IPC_STRUCT_TRAITS_MEMBER(type) |
| 94 | IPC_STRUCT_TRAITS_MEMBER(name) |
| 95 | IPC_STRUCT_TRAITS_MEMBER(id) |
| 96 | IPC_STRUCT_TRAITS_END() |
| 97 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 98 | IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 99 | IPC_STRUCT_TRAITS_MEMBER(resource) |
| 100 | IPC_STRUCT_TRAITS_MEMBER(handle) |
| 101 | IPC_STRUCT_TRAITS_MEMBER(size) |
| 102 | IPC_STRUCT_TRAITS_END() |
| 103 | |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 104 | IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) |
| 105 | IPC_STRUCT_TRAITS_MEMBER(rect) |
| 106 | IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) |
| 107 | IPC_STRUCT_TRAITS_MEMBER(is_page_visible) |
| 108 | IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
| 109 | IPC_STRUCT_TRAITS_END() |
| 110 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 111 | IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 112 | IPC_STRUCT_TRAITS_MEMBER(standard_font_family) |
| 113 | IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) |
| 114 | IPC_STRUCT_TRAITS_MEMBER(serif_font_family) |
| 115 | IPC_STRUCT_TRAITS_MEMBER(sans_serif_font_family) |
| 116 | IPC_STRUCT_TRAITS_MEMBER(default_font_size) |
| 117 | IPC_STRUCT_TRAITS_MEMBER(default_fixed_font_size) |
| 118 | IPC_STRUCT_TRAITS_END() |
| 119 | |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 120 | IPC_STRUCT_TRAITS_BEGIN(ppapi::InputEventData) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 121 | IPC_STRUCT_TRAITS_MEMBER(is_filtered) |
| 122 | IPC_STRUCT_TRAITS_MEMBER(event_type) |
| 123 | IPC_STRUCT_TRAITS_MEMBER(event_time_stamp) |
| 124 | IPC_STRUCT_TRAITS_MEMBER(event_modifiers) |
| 125 | IPC_STRUCT_TRAITS_MEMBER(mouse_button) |
| 126 | IPC_STRUCT_TRAITS_MEMBER(mouse_position) |
| 127 | IPC_STRUCT_TRAITS_MEMBER(mouse_click_count) |
[email protected] | 8047326 | 2011-08-31 17:15:18 | [diff] [blame] | 128 | IPC_STRUCT_TRAITS_MEMBER(mouse_movement) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 129 | IPC_STRUCT_TRAITS_MEMBER(wheel_delta) |
| 130 | IPC_STRUCT_TRAITS_MEMBER(wheel_ticks) |
| 131 | IPC_STRUCT_TRAITS_MEMBER(wheel_scroll_by_page) |
| 132 | IPC_STRUCT_TRAITS_MEMBER(key_code) |
[email protected] | e1e08b4 | 2012-02-21 22:42:58 | [diff] [blame^] | 133 | IPC_STRUCT_TRAITS_MEMBER(usb_key_code) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 134 | IPC_STRUCT_TRAITS_MEMBER(character_text) |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 135 | IPC_STRUCT_TRAITS_MEMBER(composition_segment_offsets) |
| 136 | IPC_STRUCT_TRAITS_MEMBER(composition_target_segment) |
| 137 | IPC_STRUCT_TRAITS_MEMBER(composition_selection_start) |
| 138 | IPC_STRUCT_TRAITS_MEMBER(composition_selection_end) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 139 | IPC_STRUCT_TRAITS_END() |
| 140 | |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 141 | IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data) |
| 142 | IPC_STRUCT_TRAITS_MEMBER(url) |
| 143 | IPC_STRUCT_TRAITS_MEMBER(method) |
| 144 | IPC_STRUCT_TRAITS_MEMBER(headers) |
| 145 | IPC_STRUCT_TRAITS_MEMBER(stream_to_file) |
| 146 | IPC_STRUCT_TRAITS_MEMBER(follow_redirects) |
| 147 | IPC_STRUCT_TRAITS_MEMBER(record_download_progress) |
| 148 | IPC_STRUCT_TRAITS_MEMBER(record_upload_progress) |
| 149 | IPC_STRUCT_TRAITS_MEMBER(has_custom_referrer_url) |
| 150 | IPC_STRUCT_TRAITS_MEMBER(custom_referrer_url) |
| 151 | IPC_STRUCT_TRAITS_MEMBER(allow_cross_origin_requests) |
| 152 | IPC_STRUCT_TRAITS_MEMBER(allow_credentials) |
| 153 | IPC_STRUCT_TRAITS_MEMBER(has_custom_content_transfer_encoding) |
| 154 | IPC_STRUCT_TRAITS_MEMBER(custom_content_transfer_encoding) |
| 155 | IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold) |
| 156 | IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold) |
| 157 | IPC_STRUCT_TRAITS_MEMBER(body) |
| 158 | IPC_STRUCT_TRAITS_END() |
| 159 | |
| 160 | IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) |
| 161 | IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 162 | IPC_STRUCT_TRAITS_MEMBER(data) |
| 163 | // Note: we don't serialize file_ref. |
| 164 | IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
| 165 | IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 166 | IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 167 | IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 168 | IPC_STRUCT_TRAITS_END() |
| 169 | |
[email protected] | eb415bf0e | 2011-04-14 02:45:42 | [diff] [blame] | 170 | // These are from the browser to the plugin. |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 171 | // Loads the given plugin. |
| 172 | IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) |
| 173 | |
| 174 | // Creates a channel to talk to a renderer. The plugin will respond with |
| 175 | // PpapiHostMsg_ChannelCreated. |
| 176 | IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, |
| 177 | base::ProcessHandle /* host_process_handle */, |
[email protected] | e503a12 | 2011-03-17 18:20:52 | [diff] [blame] | 178 | int /* renderer_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 179 | |
| 180 | // Each plugin may be referenced by multiple renderers. We need the instance |
| 181 | // IDs to be unique within a plugin, despite coming from different renderers, |
| 182 | // and unique within a renderer, despite going to different plugins. This means |
| 183 | // that neither the renderer nor the plugin can generate instance IDs without |
| 184 | // consulting the other. |
| 185 | // |
| 186 | // We resolve this by having the renderer generate a unique instance ID inside |
| 187 | // its process. It then asks the plugin to reserve that ID by sending this sync |
| 188 | // message. If the plugin has not yet seen this ID, it will remember it as used |
| 189 | // (to prevent a race condition if another renderer tries to then use the same |
| 190 | // instance), and set usable as true. |
| 191 | // |
| 192 | // If the plugin has already seen the instance ID, it will set usable as false |
| 193 | // and the renderer must retry a new instance ID. |
| 194 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId, |
| 195 | PP_Instance /* instance */, |
| 196 | bool /* usable */) |
| 197 | |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 198 | // Passes the WebKit preferences to the plugin. |
| 199 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 200 | ppapi::Preferences) |
[email protected] | 208aad79 | 2011-05-26 19:05:28 | [diff] [blame] | 201 | |
[email protected] | f7c6f9a6 | 2011-07-14 04:17:40 | [diff] [blame] | 202 | // Network state notification from the browser for implementing |
| 203 | // PPP_NetworkState_Dev. |
| 204 | IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
| 205 | bool /* online */) |
| 206 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 207 | // Sent in both directions to see if the other side supports the given |
| 208 | // interface. |
| 209 | IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
| 210 | std::string /* interface_name */, |
| 211 | bool /* result */) |
| 212 | |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 213 | // Broker Process. |
| 214 | |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 215 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 216 | PP_Instance /* instance */, |
[email protected] | 6990e5d | 2011-09-30 18:10:57 | [diff] [blame] | 217 | IPC::PlatformFileForTransit /* handle */, |
| 218 | int32_t /* result */) |
[email protected] | 2b657fd | 2011-04-18 16:00:47 | [diff] [blame] | 219 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 220 | // PPB_Audio. |
| 221 | |
| 222 | // Notifies the result of the audio stream create call. This is called in |
| 223 | // both error cases and in the normal success case. These cases are |
| 224 | // differentiated by the result code, which is one of the standard PPAPI |
| 225 | // result codes. |
| 226 | // |
| 227 | // The handler of this message should always close all of the handles passed |
| 228 | // in, since some could be valid even in the error case. |
| 229 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 230 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 231 | int32_t /* result_code (will be != PP_OK on failure) */, |
| 232 | IPC::PlatformFileForTransit /* socket_handle */, |
| 233 | base::SharedMemoryHandle /* handle */, |
| 234 | int32_t /* length */) |
| 235 | |
[email protected] | 1f8a089 | 2011-11-18 00:14:24 | [diff] [blame] | 236 | // PPB_AudioInput_Dev. |
| 237 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_NotifyAudioStreamCreated, |
| 238 | ppapi::HostResource /* audio_id */, |
| 239 | int32_t /* result_code (will be != PP_OK on failure) */, |
| 240 | IPC::PlatformFileForTransit /* socket_handle */, |
| 241 | base::SharedMemoryHandle /* handle */, |
| 242 | int32_t /* length */) |
| 243 | |
[email protected] | ae971c2 | 2011-04-17 00:13:22 | [diff] [blame] | 244 | // PPB_Broker. |
| 245 | IPC_MESSAGE_ROUTED3( |
| 246 | PpapiMsg_PPBBroker_ConnectComplete, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 247 | ppapi::HostResource /* broker */, |
[email protected] | ae971c2 | 2011-04-17 00:13:22 | [diff] [blame] | 248 | IPC::PlatformFileForTransit /* handle */, |
| 249 | int32_t /* result */) |
| 250 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 251 | // PPB_FileChooser. |
| 252 | IPC_MESSAGE_ROUTED3( |
| 253 | PpapiMsg_PPBFileChooser_ChooseComplete, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 254 | ppapi::HostResource /* chooser */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 255 | int32_t /* result_code (will be != PP_OK on failure */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 256 | std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 257 | |
[email protected] | cc6db92 | 2011-12-10 16:54:22 | [diff] [blame] | 258 | // PPB_FileIO. |
| 259 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete, |
| 260 | ppapi::HostResource /* file_io */, |
| 261 | int32_t /* result */) |
| 262 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete, |
| 263 | ppapi::HostResource /* file_io */, |
| 264 | int32_t /* result */) |
| 265 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete, |
| 266 | ppapi::HostResource /* file_io */, |
| 267 | int32_t /* result */, |
| 268 | PP_FileInfo /* info */) |
| 269 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete, |
| 270 | ppapi::HostResource /* file_io */, |
| 271 | int32_t /* result */, |
| 272 | std::string /* data */) |
| 273 | |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 274 | // PPB_FileRef. |
| 275 | IPC_MESSAGE_ROUTED3( |
| 276 | PpapiMsg_PPBFileRef_CallbackComplete, |
| 277 | ppapi::HostResource /* resource */, |
| 278 | int /* callback_id */, |
| 279 | int32_t /* result */) |
| 280 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 281 | // PPB_FileSystem. |
| 282 | IPC_MESSAGE_ROUTED2( |
| 283 | PpapiMsg_PPBFileSystem_OpenComplete, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 284 | ppapi::HostResource /* filesystem */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 285 | int32_t /* result */) |
| 286 | |
[email protected] | 7d3782f | 2011-03-29 19:16:23 | [diff] [blame] | 287 | // PPB_Flash_NetConnector. |
| 288 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBFlashNetConnector_ConnectACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 289 | ppapi::HostResource /* net_connector */, |
[email protected] | 7d3782f | 2011-03-29 19:16:23 | [diff] [blame] | 290 | int32_t /* result */, |
| 291 | IPC::PlatformFileForTransit /* handle */, |
| 292 | std::string /* local_addr_as_string */, |
| 293 | std::string /* remote_addr_as_string */) |
| 294 | |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 295 | // PPB_TCPSocket_Private. |
| 296 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 297 | uint32 /* plugin_dispatcher_id */, |
| 298 | uint32 /* socket_id */, |
| 299 | bool /* succeeded */, |
[email protected] | 5a2b68f | 2011-11-10 00:00:49 | [diff] [blame] | 300 | PP_NetAddress_Private /* local_addr */, |
| 301 | PP_NetAddress_Private /* remote_addr */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 302 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, |
[email protected] | b442da3 | 2011-08-16 19:32:28 | [diff] [blame] | 303 | uint32 /* plugin_dispatcher_id */, |
| 304 | uint32 /* socket_id */, |
| 305 | bool /* succeeded */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 306 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 307 | uint32 /* plugin_dispatcher_id */, |
| 308 | uint32 /* socket_id */, |
| 309 | bool /* succeeded */, |
| 310 | std::string /* data */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 311 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 312 | uint32 /* plugin_dispatcher_id */, |
| 313 | uint32 /* socket_id */, |
| 314 | bool /* succeeded */, |
| 315 | int32_t /* bytes_written */) |
| 316 | |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 317 | // PPB_UDPSocket_Private |
| 318 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBUDPSocket_BindACK, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 319 | uint32 /* plugin_dispatcher_id */, |
| 320 | uint32 /* socket_id */, |
| 321 | bool /* succeeded */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 322 | IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 323 | uint32 /* plugin_dispatcher_id */, |
| 324 | uint32 /* socket_id */, |
| 325 | bool /* succeeded */, |
| 326 | std::string /* data */, |
[email protected] | 5a2b68f | 2011-11-10 00:00:49 | [diff] [blame] | 327 | PP_NetAddress_Private /* remote_addr */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 328 | IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 329 | uint32 /* plugin_dispatcher_id */, |
| 330 | uint32 /* socket_id */, |
| 331 | bool /* succeeded */, |
| 332 | int32_t /* bytes_written */) |
| 333 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 334 | // PPB_Graphics2D. |
| 335 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 336 | ppapi::HostResource /* graphics_2d */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 337 | int32_t /* pp_error */) |
| 338 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 339 | // PPB_Graphics3D. |
| 340 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 341 | ppapi::HostResource /* graphics_3d */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 342 | int32_t /* pp_error */) |
| 343 | |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 344 | // PPB_Instance. |
| 345 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBInstance_MouseLockComplete, |
| 346 | PP_Instance /* instance */, |
| 347 | int32_t /* result */) |
| 348 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 349 | // PPP_Class. |
| 350 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
| 351 | int64 /* ppp_class */, |
| 352 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 353 | ppapi::proxy::SerializedVar /* property */, |
| 354 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 355 | bool /* result */) |
| 356 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
| 357 | int64 /* ppp_class */, |
| 358 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 359 | ppapi::proxy::SerializedVar /* method */, |
| 360 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 361 | bool /* result */) |
| 362 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_GetProperty, |
| 363 | int64 /* ppp_class */, |
| 364 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 365 | ppapi::proxy::SerializedVar /* property */, |
| 366 | ppapi::proxy::SerializedVar /* out_exception */, |
| 367 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 368 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiMsg_PPPClass_EnumerateProperties, |
| 369 | int64 /* ppp_class */, |
| 370 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 371 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 372 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 373 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiMsg_PPPClass_SetProperty, |
| 374 | int64 /* ppp_class */, |
| 375 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 376 | ppapi::proxy::SerializedVar /* name */, |
| 377 | ppapi::proxy::SerializedVar /* value */, |
| 378 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 379 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPClass_RemoveProperty, |
| 380 | int64 /* ppp_class */, |
| 381 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 382 | ppapi::proxy::SerializedVar /* property */, |
| 383 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 384 | IPC_SYNC_MESSAGE_ROUTED4_2(PpapiMsg_PPPClass_Call, |
| 385 | int64 /* ppp_class */, |
| 386 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 387 | ppapi::proxy::SerializedVar /* method_name */, |
| 388 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 389 | ppapi::proxy::SerializedVar /* out_exception */, |
| 390 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 391 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
| 392 | int64 /* ppp_class */, |
| 393 | int64 /* object */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 394 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 395 | ppapi::proxy::SerializedVar /* out_exception */, |
| 396 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 397 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
| 398 | int64 /* ppp_class */, |
| 399 | int64 /* object */) |
| 400 | |
[email protected] | 8c3bd1d | 2011-04-12 20:01:42 | [diff] [blame] | 401 | // PPP_Graphics3D_Dev. |
| 402 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPGraphics3D_ContextLost, |
| 403 | PP_Instance /* instance */) |
| 404 | |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 405 | // PPP_InputEvent. |
| 406 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInputEvent_HandleInputEvent, |
| 407 | PP_Instance /* instance */, |
| 408 | ppapi::InputEventData /* data */) |
| 409 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInputEvent_HandleFilteredInputEvent, |
| 410 | PP_Instance /* instance */, |
| 411 | ppapi::InputEventData /* data */, |
| 412 | PP_Bool /* result */) |
| 413 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 414 | // PPP_Instance. |
| 415 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
| 416 | PP_Instance /* instance */, |
| 417 | std::vector<std::string> /* argn */, |
| 418 | std::vector<std::string> /* argv */, |
| 419 | PP_Bool /* result */) |
[email protected] | 5e5d0b0 | 2011-04-04 19:32:07 | [diff] [blame] | 420 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiMsg_PPPInstance_DidDestroy, |
| 421 | PP_Instance /* instance */) |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 422 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 423 | PP_Instance /* instance */, |
[email protected] | e8f07ac | 2012-01-03 17:43:36 | [diff] [blame] | 424 | ppapi::ViewData /* new_data */, |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 425 | PP_Bool /* flash_fullscreen */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 426 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, |
| 427 | PP_Instance /* instance */, |
| 428 | PP_Bool /* has_focus */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 429 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad, |
| 430 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 431 | ppapi::HostResource /* url_loader */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 432 | PP_Bool /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 433 | |
[email protected] | 792f1ca3 | 2011-05-25 16:43:43 | [diff] [blame] | 434 | // PPP_Instance_Private. |
| 435 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 436 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 437 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 438 | |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 439 | // PPP_Messaging. |
| 440 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, |
| 441 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 442 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 443 | |
[email protected] | 1314f5f | 2011-10-16 02:26:56 | [diff] [blame] | 444 | // PPP_MouseLock. |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 445 | IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, |
| 446 | PP_Instance /* instance */) |
| 447 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 448 | // PPB_URLLoader |
| 449 | // (Messages from browser to plugin to notify it of changes in state.) |
[email protected] | bab65ef | 2011-08-20 04:53:22 | [diff] [blame] | 450 | IPC_MESSAGE_ROUTED1( |
| 451 | PpapiMsg_PPBURLLoader_UpdateProgress, |
| 452 | ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 453 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 454 | ppapi::HostResource /* loader */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 455 | int32 /* result */, |
| 456 | std::string /* data */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 457 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete, |
| 458 | ppapi::HostResource /* loader */, |
| 459 | int32_t /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 460 | |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 461 | // PPB_VideoCapture_Dev |
| 462 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK, |
| 463 | ppapi::HostResource /* video_capture */, |
| 464 | int32_t /* result */, |
| 465 | std::vector<ppapi::DeviceRefData> /* devices */) |
| 466 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK, |
| 467 | ppapi::HostResource /* video_capture */, |
| 468 | int32_t /* result */) |
| 469 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 470 | // PPP_VideoCapture_Dev |
| 471 | IPC_MESSAGE_ROUTED3( |
| 472 | PpapiMsg_PPPVideoCapture_OnDeviceInfo, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 473 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 474 | PP_VideoCaptureDeviceInfo_Dev /* info */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 475 | std::vector<ppapi::proxy::PPPVideoCapture_Buffer> /* buffers */) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 476 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnStatus, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 477 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 478 | uint32_t /* status */) |
| 479 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnError, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 480 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 481 | uint32_t /* error_code */) |
| 482 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoCapture_OnBufferReady, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 483 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 484 | uint32_t /* buffer */) |
| 485 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 486 | // PPB_VideoDecoder_Dev. |
| 487 | // (Messages from renderer to plugin to notify it to run callbacks.) |
| 488 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 489 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 490 | int32_t /* bitstream buffer id */, |
| 491 | int32_t /* PP_CompletionCallback result */) |
| 492 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_FlushACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 493 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 494 | int32_t /* PP_CompletionCallback result */) |
| 495 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoDecoder_ResetACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 496 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 497 | int32_t /* PP_CompletionCallback result */) |
| 498 | |
| 499 | // PPP_VideoDecoder_Dev. |
| 500 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPPVideoDecoder_ProvidePictureBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 501 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 502 | uint32_t /* requested number of buffers */, |
| 503 | PP_Size /* dimensions of buffers */) |
| 504 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 505 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 506 | int32_t /* picture buffer id */) |
| 507 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 508 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 509 | PP_Picture_Dev /* output picture */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 510 | IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 511 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 512 | PP_VideoDecodeError_Dev /* error */) |
| 513 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 514 | // ----------------------------------------------------------------------------- |
| 515 | // These are from the plugin to the renderer. |
| 516 | |
| 517 | // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel |
| 518 | // could not be established. This could be because the IPC could not be created |
| 519 | // for some weird reason, but more likely that the plugin failed to load or |
| 520 | // initialize properly. |
| 521 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, |
| 522 | IPC::ChannelHandle /* handle */) |
| 523 | |
[email protected] | a9b16dd | 2012-01-31 05:00:26 | [diff] [blame] | 524 | // Logs the given message to the console of all instances. |
| 525 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_LogWithSource, |
| 526 | PP_Instance /* instance */, |
| 527 | int /* log_level */, |
| 528 | std::string /* source */, |
| 529 | std::string /* value */) |
| 530 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 531 | // PPB_Audio. |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 532 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudio_Create, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 533 | PP_Instance /* instance_id */, |
[email protected] | 55cdf605 | 2011-05-13 19:22:53 | [diff] [blame] | 534 | int32_t /* sample_rate */, |
| 535 | uint32_t /* sample_frame_count */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 536 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 537 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 538 | ppapi::HostResource /* audio_id */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 539 | bool /* play */) |
| 540 | |
[email protected] | 1f8a089 | 2011-11-18 00:14:24 | [diff] [blame] | 541 | // PPB_AudioInput. |
| 542 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioInput_Create, |
| 543 | PP_Instance /* instance_id */, |
| 544 | int32_t /* sample_rate */, |
| 545 | uint32_t /* sample_frame_count */, |
| 546 | ppapi::HostResource /* result */) |
| 547 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudioInput_StartOrStop, |
| 548 | ppapi::HostResource /* audio_id */, |
| 549 | bool /* capture */) |
| 550 | |
[email protected] | ae971c2 | 2011-04-17 00:13:22 | [diff] [blame] | 551 | // PPB_Broker. |
| 552 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, |
| 553 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 554 | ppapi::HostResource /* result_resource */) |
[email protected] | ae971c2 | 2011-04-17 00:13:22 | [diff] [blame] | 555 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 556 | ppapi::HostResource /* broker */) |
[email protected] | ae971c2 | 2011-04-17 00:13:22 | [diff] [blame] | 557 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 558 | // PPB_Buffer. |
| 559 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, |
| 560 | PP_Instance /* instance */, |
| 561 | uint32_t /* size */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 562 | ppapi::HostResource /* result_resource */, |
[email protected] | 3252338 | 2011-06-10 02:30:00 | [diff] [blame] | 563 | base::SharedMemoryHandle /* result_shm_handle */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 564 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 565 | // PPB_Core. |
| 566 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 567 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 568 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 569 | ppapi::HostResource) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 570 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 571 | // PPB_CursorControl. |
| 572 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBCursorControl_SetCursor, |
| 573 | PP_Instance /* instance */, |
| 574 | int32_t /* type */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 575 | ppapi::HostResource /* custom_image */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 576 | PP_Point /* hot_spot */, |
| 577 | PP_Bool /* result */) |
| 578 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_LockCursor, |
| 579 | PP_Instance /* instance */, |
| 580 | PP_Bool /* result */) |
| 581 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_UnlockCursor, |
| 582 | PP_Instance /* instance */, |
| 583 | PP_Bool /* result */) |
| 584 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_HasCursorLock, |
| 585 | PP_Instance /* instance */, |
| 586 | PP_Bool /* result */) |
| 587 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBCursorControl_CanLockCursor, |
| 588 | PP_Instance /* instance */, |
| 589 | PP_Bool /* result */) |
| 590 | |
| 591 | // PPB_FileChooser. |
| 592 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create, |
| 593 | PP_Instance /* instance */, |
| 594 | int /* mode */, |
[email protected] | 459fba8 | 2011-10-13 02:48:50 | [diff] [blame] | 595 | std::string /* accept_mime_types */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 596 | ppapi::HostResource /* result */) |
[email protected] | 459fba8 | 2011-10-13 02:48:50 | [diff] [blame] | 597 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, |
| 598 | ppapi::HostResource /* file_chooser */, |
| 599 | bool /* save_as */, |
| 600 | std::string /* suggested_file_name */, |
| 601 | bool /* require_user_gesture */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 602 | |
[email protected] | cc6db92 | 2011-12-10 16:54:22 | [diff] [blame] | 603 | // PPB_FileIO. |
| 604 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, |
| 605 | PP_Instance /* instance */, |
| 606 | ppapi::HostResource /* result */) |
| 607 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, |
| 608 | ppapi::HostResource /* host_resource */, |
| 609 | ppapi::HostResource /* file_ref_resource */, |
| 610 | int32_t /* open_flags */) |
| 611 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, |
| 612 | ppapi::HostResource /* host_resource */) |
| 613 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query, |
| 614 | ppapi::HostResource /* host_resource */) |
| 615 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch, |
| 616 | ppapi::HostResource /* host_resource */, |
| 617 | PP_Time /* last_access_time */, |
| 618 | PP_Time /* last_modified_time */) |
| 619 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read, |
| 620 | ppapi::HostResource /* host_resource */, |
| 621 | int64_t /* offset */, |
| 622 | int32_t /* bytes_to_read */) |
| 623 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write, |
| 624 | ppapi::HostResource /* host_resource */, |
| 625 | int64_t /* offset */, |
| 626 | std::string /* data */) |
| 627 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength, |
| 628 | ppapi::HostResource /* host_resource */, |
| 629 | int64_t /* length */) |
| 630 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush, |
| 631 | ppapi::HostResource /* host_resource */) |
| 632 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite, |
| 633 | ppapi::HostResource /* host_resource */, |
| 634 | int64_t /* offset */, |
| 635 | int32_t /* bytes_to_write */) |
| 636 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength, |
| 637 | ppapi::HostResource /* host_resource */, |
| 638 | int64_t /* length */) |
| 639 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 640 | // PPB_FileRef. |
| 641 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 642 | ppapi::HostResource /* file_system */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 643 | std::string /* path */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 644 | ppapi::PPB_FileRef_CreateInfo /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 645 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 646 | ppapi::HostResource /* file_ref */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 647 | ppapi::PPB_FileRef_CreateInfo /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 648 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 649 | ppapi::HostResource /* file_ref */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 650 | PP_Bool /* make_ancestors */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 651 | int /* callback_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 652 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 653 | ppapi::HostResource /* file_ref */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 654 | PP_Time /* last_access */, |
| 655 | PP_Time /* last_modified */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 656 | int /* callback_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 657 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 658 | ppapi::HostResource /* file_ref */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 659 | int /* callback_id */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 660 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 661 | ppapi::HostResource /* file_ref */, |
| 662 | ppapi::HostResource /* new_file_ref */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 663 | int /* callback_id */) |
[email protected] | f12a383 | 2011-11-28 23:11:45 | [diff] [blame] | 664 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, |
| 665 | ppapi::HostResource /* file_ref */, |
| 666 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 667 | |
| 668 | // PPB_FileSystem. |
| 669 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, |
| 670 | PP_Instance /* instance */, |
| 671 | int /* type */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 672 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 673 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 674 | ppapi::HostResource /* result */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 675 | int64_t /* expected_size */) |
| 676 | |
| 677 | // PPB_Flash. |
| 678 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, |
| 679 | PP_Instance /* instance */, |
| 680 | PP_Bool /* on_top */) |
| 681 | // This has to be synchronous becuase the caller may want to composite on |
| 682 | // top of the resulting text after the call is complete. |
[email protected] | bab65ef | 2011-08-20 04:53:22 | [diff] [blame] | 683 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 684 | PpapiHostMsg_PPBFlash_DrawGlyphs, |
| 685 | ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, |
| 686 | PP_Bool /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 687 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetProxyForURL, |
| 688 | PP_Instance /* instance */, |
| 689 | std::string /* url */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 690 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 691 | IPC_SYNC_MESSAGE_ROUTED4_1(PpapiHostMsg_PPBFlash_Navigate, |
| 692 | PP_Instance /* instance */, |
| 693 | ppapi::PPB_URLRequestInfo_Data /* request_data */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 694 | std::string /* target */, |
[email protected] | 2e4361ae | 2011-12-15 00:03:35 | [diff] [blame] | 695 | PP_Bool /* from_user_action */, |
[email protected] | 181220ba | 2011-03-28 18:21:05 | [diff] [blame] | 696 | int32_t /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 697 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_RunMessageLoop, |
| 698 | PP_Instance /* instance */) |
| 699 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlash_QuitMessageLoop, |
| 700 | PP_Instance /* instance */) |
[email protected] | 4d3aec1 | 2011-04-21 23:07:45 | [diff] [blame] | 701 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset, |
| 702 | PP_Instance /* instance */, |
| 703 | PP_Time /* t */, |
| 704 | double /* offset */) |
[email protected] | ffadb71 | 2012-02-18 08:16:22 | [diff] [blame] | 705 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost, |
| 706 | PP_Instance /* instance */, |
| 707 | PP_Rect /* rect */, |
| 708 | PP_Bool /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 709 | |
| 710 | // PPB_Flash_Clipboard. |
[email protected] | 606876c | 2011-03-24 17:13:38 | [diff] [blame] | 711 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlashClipboard_IsFormatAvailable, |
| 712 | PP_Instance /* instance */, |
| 713 | int /* clipboard_type */, |
| 714 | int /* format */, |
| 715 | bool /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 716 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashClipboard_ReadPlainText, |
| 717 | PP_Instance /* instance */, |
| 718 | int /* clipboard_type */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 719 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 720 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFlashClipboard_WritePlainText, |
| 721 | PP_Instance /* instance */, |
| 722 | int /* clipboard_type */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 723 | ppapi::proxy::SerializedVar /* text */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 724 | |
| 725 | // PPB_Flash_File_FileRef. |
| 726 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_FileRef_OpenFile, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 727 | ppapi::HostResource /* file_ref */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 728 | int32_t /* mode */, |
| 729 | IPC::PlatformFileForTransit /* file_handle */, |
| 730 | int32_t /* result */) |
| 731 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBFlashFile_FileRef_QueryFile, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 732 | ppapi::HostResource /* file_ref */, |
[email protected] | ea505a9d | 2011-07-07 18:34:40 | [diff] [blame] | 733 | PP_FileInfo /* info */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 734 | int32_t /* result */) |
| 735 | |
| 736 | // PPB_Flash_File_ModuleLocal. |
| 737 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_OpenFile, |
| 738 | PP_Instance /* instance */, |
| 739 | std::string /* path */, |
| 740 | int32_t /* mode */, |
| 741 | IPC::PlatformFileForTransit /* file_handle */, |
| 742 | int32_t /* result */) |
| 743 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_RenameFile, |
| 744 | PP_Instance /* instance */, |
| 745 | std::string /* path_from */, |
| 746 | std::string /* path_to */, |
| 747 | int32_t /* result */) |
| 748 | IPC_SYNC_MESSAGE_ROUTED3_1( |
| 749 | PpapiHostMsg_PPBFlashFile_ModuleLocal_DeleteFileOrDir, |
| 750 | PP_Instance /* instance */, |
| 751 | std::string /* path */, |
| 752 | PP_Bool /* recursive */, |
| 753 | int32_t /* result */) |
| 754 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashFile_ModuleLocal_CreateDir, |
| 755 | PP_Instance /* instance */, |
| 756 | std::string /* path */, |
| 757 | int32_t /* result */) |
| 758 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlashFile_ModuleLocal_QueryFile, |
| 759 | PP_Instance /* instance */, |
| 760 | std::string /* path */, |
[email protected] | ea505a9d | 2011-07-07 18:34:40 | [diff] [blame] | 761 | PP_FileInfo /* info */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 762 | int32_t /* result */) |
| 763 | IPC_SYNC_MESSAGE_ROUTED2_2( |
| 764 | PpapiHostMsg_PPBFlashFile_ModuleLocal_GetDirContents, |
| 765 | PP_Instance /* instance */, |
| 766 | std::string /* path */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 767 | std::vector<ppapi::proxy::SerializedDirEntry> /* entries */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 768 | int32_t /* result */) |
| 769 | |
| 770 | // PPB_Flash_Menu |
| 771 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlashMenu_Create, |
| 772 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 773 | ppapi::proxy::SerializedFlashMenu /* menu_data */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 774 | ppapi::HostResource /* result */) |
[email protected] | ea192e8 | 2011-04-11 19:16:02 | [diff] [blame] | 775 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBFlashMenu_Show, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 776 | ppapi::HostResource /* menu */, |
[email protected] | ea192e8 | 2011-04-11 19:16:02 | [diff] [blame] | 777 | PP_Point /* location */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 778 | IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFlashMenu_ShowACK, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 779 | ppapi::HostResource /* menu */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 780 | int32_t /* selected_id */, |
| 781 | int32_t /* result */) |
| 782 | |
[email protected] | cd2af39 | 2012-01-31 09:19:17 | [diff] [blame] | 783 | // PPB_Flash_MessageLoop. |
| 784 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, |
| 785 | PP_Instance /* instance */, |
| 786 | ppapi::HostResource /* result */) |
| 787 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, |
| 788 | ppapi::HostResource /* flash_message_loop */, |
| 789 | int32_t /* result */) |
| 790 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, |
| 791 | ppapi::HostResource /* flash_message_loop */) |
| 792 | |
[email protected] | 7d3782f | 2011-03-29 19:16:23 | [diff] [blame] | 793 | // PPB_Flash_NetConnector. |
| 794 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashNetConnector_Create, |
| 795 | PP_Instance /* instance_id */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 796 | ppapi::HostResource /* result */) |
[email protected] | 7d3782f | 2011-03-29 19:16:23 | [diff] [blame] | 797 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFlashNetConnector_ConnectTcp, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 798 | ppapi::HostResource /* connector */, |
[email protected] | 7d3782f | 2011-03-29 19:16:23 | [diff] [blame] | 799 | std::string /* host */, |
| 800 | uint16_t /* port */) |
| 801 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashNetConnector_ConnectTcpAddress, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 802 | ppapi::HostResource /* connector */, |
[email protected] | 7d3782f | 2011-03-29 19:16:23 | [diff] [blame] | 803 | std::string /* net_address_as_string */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 804 | |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 805 | // PPB_TCPSocket_Private. |
| 806 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 807 | int32 /* routing_id */, |
| 808 | uint32 /* plugin_dispatcher_id */, |
| 809 | uint32 /* socket_id */) |
[email protected] | e461da2f | 2012-02-16 19:06:40 | [diff] [blame] | 810 | IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect, |
| 811 | int32 /* routing_id */, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 812 | uint32 /* socket_id */, |
| 813 | std::string /* host */, |
| 814 | uint16_t /* port */) |
[email protected] | e461da2f | 2012-02-16 19:06:40 | [diff] [blame] | 815 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress, |
| 816 | int32 /* routing_id */, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 817 | uint32 /* socket_id */, |
[email protected] | 5a2b68f | 2011-11-10 00:00:49 | [diff] [blame] | 818 | PP_NetAddress_Private /* net_addr */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 819 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SSLHandshake, |
[email protected] | b442da3 | 2011-08-16 19:32:28 | [diff] [blame] | 820 | uint32 /* socket_id */, |
| 821 | std::string /* server_name */, |
| 822 | uint16_t /* server_port */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 823 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 824 | uint32 /* socket_id */, |
| 825 | int32_t /* bytes_to_read */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 826 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 827 | uint32 /* socket_id */, |
| 828 | std::string /* data */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 829 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, |
[email protected] | 373a95a | 2011-07-01 16:58:14 | [diff] [blame] | 830 | uint32 /* socket_id */) |
| 831 | |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 832 | // PPB_UDPSocket_Private. |
| 833 | IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBUDPSocket_Create, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 834 | int32 /* routing_id */, |
| 835 | uint32 /* plugin_dispatcher_id */, |
| 836 | uint32 /* socket_id */) |
[email protected] | e461da2f | 2012-02-16 19:06:40 | [diff] [blame] | 837 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_Bind, |
| 838 | int32 /* routing_id */, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 839 | uint32 /* socket_id */, |
[email protected] | 5a2b68f | 2011-11-10 00:00:49 | [diff] [blame] | 840 | PP_NetAddress_Private /* net_addr */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 841 | IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 842 | uint32 /* socket_id */, |
| 843 | int32_t /* num_bytes */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 844 | IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 845 | uint32 /* socket_id */, |
| 846 | std::string /* data */, |
[email protected] | 5a2b68f | 2011-11-10 00:00:49 | [diff] [blame] | 847 | PP_NetAddress_Private /* net_addr */) |
[email protected] | fb575bc | 2011-11-16 07:06:24 | [diff] [blame] | 848 | IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close, |
[email protected] | 7813eb0 | 2011-09-26 22:12:56 | [diff] [blame] | 849 | uint32 /* socket_id */) |
| 850 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 851 | // PPB_Graphics2D. |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 852 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, |
| 853 | PP_Instance /* instance */, |
| 854 | PP_Size /* size */, |
| 855 | PP_Bool /* is_always_opaque */, |
| 856 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 857 | IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 858 | ppapi::HostResource /* graphics_2d */, |
| 859 | ppapi::HostResource /* image_data */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 860 | PP_Point /* top_left */, |
| 861 | bool /* src_rect_specified */, |
| 862 | PP_Rect /* src_rect */) |
| 863 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 864 | ppapi::HostResource /* graphics_2d */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 865 | bool /* clip_specified */, |
| 866 | PP_Rect /* clip */, |
| 867 | PP_Point /* amount */) |
| 868 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 869 | ppapi::HostResource /* graphics_2d */, |
| 870 | ppapi::HostResource /* image_data */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 871 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 872 | ppapi::HostResource /* graphics_2d */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 873 | |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 874 | // PPB_Graphics3D. |
[email protected] | 9d8fe82 | 2011-08-16 21:02:52 | [diff] [blame] | 875 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_Create, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 876 | PP_Instance /* instance */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 877 | std::vector<int32_t> /* attrib_list */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 878 | ppapi::HostResource /* result */) |
[email protected] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 879 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, |
| 880 | ppapi::HostResource /* context */) |
| 881 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 882 | ppapi::HostResource /* context */, |
[email protected] | 503b3a2 | 2011-12-12 23:29:40 | [diff] [blame] | 883 | int32 /* transfer_buffer_id */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 884 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_GetState, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 885 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 886 | gpu::CommandBuffer::State /* state */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 887 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 888 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 889 | int32 /* put_offset */, |
| 890 | int32 /* last_known_get */, |
| 891 | gpu::CommandBuffer::State /* state */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 892 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 893 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 894 | int32 /* put_offset */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 895 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 896 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 897 | int32 /* size */, |
| 898 | int32 /* id */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 899 | IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 900 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 901 | int32 /* id */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 902 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 903 | ppapi::HostResource /* context */, |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 904 | int32 /* id */, |
| 905 | base::SharedMemoryHandle /* transfer_buffer */, |
| 906 | uint32 /* size */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 907 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 908 | ppapi::HostResource /* graphics_3d */) |
[email protected] | eeb4e4a | 2011-07-19 16:22:06 | [diff] [blame] | 909 | |
[email protected] | 2a1d6d91 | 2011-12-04 23:29:06 | [diff] [blame] | 910 | // PPB_ImageData. |
| 911 | IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, |
| 912 | PP_Instance /* instance */, |
| 913 | int32 /* format */, |
| 914 | PP_Size /* size */, |
| 915 | PP_Bool /* init_to_zero */, |
| 916 | ppapi::HostResource /* result_resource */, |
| 917 | std::string /* image_data_desc */, |
| 918 | ppapi::proxy::ImageHandle /* result */) |
| 919 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 920 | // PPB_Instance. |
| 921 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, |
| 922 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 923 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 924 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, |
| 925 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 926 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 927 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, |
| 928 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 929 | ppapi::HostResource /* device */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 930 | PP_Bool /* result */) |
[email protected] | c59ed589 | 2012-02-18 01:10:19 | [diff] [blame] | 931 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 932 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputSampleRate, |
| 933 | PP_Instance /* instance */, |
| 934 | uint32_t /* result */) |
| 935 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 936 | PpapiHostMsg_PPBInstance_GetAudioHardwareOutputBufferSize, |
| 937 | PP_Instance /* instance */, |
| 938 | uint32_t /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 939 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_IsFullFrame, |
| 940 | PP_Instance /* instance */, |
| 941 | PP_Bool /* result */) |
| 942 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBInstance_ExecuteScript, |
| 943 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 944 | ppapi::proxy::SerializedVar /* script */, |
| 945 | ppapi::proxy::SerializedVar /* out_exception */, |
| 946 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 8d770e49 | 2011-10-11 04:54:31 | [diff] [blame] | 947 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDefaultCharSet, |
| 948 | PP_Instance /* instance */, |
| 949 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 7a26d92e | 2012-02-17 20:15:25 | [diff] [blame] | 950 | IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBInstance_GetFontFamilies, |
| 951 | std::string /* result */) |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 952 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_SetFullscreen, |
| 953 | PP_Instance /* instance */, |
| 954 | PP_Bool /* fullscreen */, |
| 955 | PP_Bool /* result */) |
| 956 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_GetScreenSize, |
| 957 | PP_Instance /* instance */, |
| 958 | PP_Bool /* result */, |
| 959 | PP_Size /* size */) |
[email protected] | dafab75 | 2011-09-20 20:08:40 | [diff] [blame] | 960 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_FlashSetFullscreen, |
[email protected] | 792f1ca3 | 2011-05-25 16:43:43 | [diff] [blame] | 961 | PP_Instance /* instance */, |
[email protected] | ceadc39 | 2011-06-15 23:04:24 | [diff] [blame] | 962 | PP_Bool /* fullscreen */, |
| 963 | PP_Bool /* result */) |
[email protected] | dafab75 | 2011-09-20 20:08:40 | [diff] [blame] | 964 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBInstance_FlashGetScreenSize, |
[email protected] | 792f1ca3 | 2011-05-25 16:43:43 | [diff] [blame] | 965 | PP_Instance /* instance */, |
[email protected] | ceadc39 | 2011-06-15 23:04:24 | [diff] [blame] | 966 | PP_Bool /* result */, |
| 967 | PP_Size /* size */) |
[email protected] | 493d1421 | 2011-07-07 15:38:48 | [diff] [blame] | 968 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_RequestInputEvents, |
| 969 | PP_Instance /* instance */, |
| 970 | bool /* is_filtering */, |
| 971 | uint32_t /* event_classes */) |
| 972 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_ClearInputEvents, |
| 973 | PP_Instance /* instance */, |
| 974 | uint32_t /* event_classes */) |
[email protected] | 55a5a52 | 2011-07-06 22:52:40 | [diff] [blame] | 975 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBInstance_PostMessage, |
| 976 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 977 | ppapi::proxy::SerializedVar /* message */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 978 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_LockMouse, |
| 979 | PP_Instance /* instance */) |
[email protected] | 18d871f | 2011-09-08 16:56:34 | [diff] [blame] | 980 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBInstance_UnlockMouse, |
| 981 | PP_Instance /* instance */) |
[email protected] | 0346023 | 2011-10-10 17:23:57 | [diff] [blame] | 982 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_ResolveRelativeToDocument, |
| 983 | PP_Instance /* instance */, |
| 984 | ppapi::proxy::SerializedVar /* relative */, |
| 985 | ppapi::proxy::SerializedVar /* result */) |
| 986 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanRequest, |
| 987 | PP_Instance /* instance */, |
| 988 | ppapi::proxy::SerializedVar /* relative */, |
| 989 | PP_Bool /* result */) |
| 990 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_DocumentCanAccessDocument, |
| 991 | PP_Instance /* active */, |
| 992 | PP_Instance /* target */, |
| 993 | PP_Bool /* result */) |
| 994 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetDocumentURL, |
| 995 | PP_Instance /* active */, |
| 996 | ppapi::proxy::SerializedVar /* result */) |
| 997 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL, |
| 998 | PP_Instance /* active */, |
| 999 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 792f1ca3 | 2011-05-25 16:43:43 | [diff] [blame] | 1000 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1001 | IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1002 | PpapiHostMsg_PPBPDF_GetFontFileWithFallback, |
| 1003 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1004 | ppapi::proxy::SerializedFontDescription /* description */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1005 | int32_t /* charset */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1006 | ppapi::HostResource /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1007 | IPC_SYNC_MESSAGE_ROUTED2_1( |
| 1008 | PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1009 | ppapi::HostResource /* font_file */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1010 | uint32_t /* table */, |
| 1011 | std::string /* result */) |
| 1012 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1013 | // PPB_Testing. |
| 1014 | IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1015 | PpapiHostMsg_PPBTesting_ReadImageData, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1016 | ppapi::HostResource /* device_context_2d */, |
| 1017 | ppapi::HostResource /* image */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1018 | PP_Point /* top_left */, |
| 1019 | PP_Bool /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1020 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1021 | PP_Instance /* instance */, |
| 1022 | uint32 /* result */) |
[email protected] | ed33e2e | 2011-11-20 21:18:07 | [diff] [blame] | 1023 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, |
| 1024 | PP_Instance /* instance */, |
| 1025 | ppapi::InputEventData /* input_event */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1026 | |
[email protected] | 2daba2f3 | 2011-09-29 04:23:09 | [diff] [blame] | 1027 | // PPB_TextInput. |
| 1028 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType, |
| 1029 | PP_Instance /* instance */, |
| 1030 | PP_TextInput_Type /* type */) |
| 1031 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition, |
| 1032 | PP_Instance /* instance */, |
| 1033 | PP_Rect /* caret */, |
| 1034 | PP_Rect /* bounding_box */) |
| 1035 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, |
| 1036 | PP_Instance /* instance */) |
| 1037 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1038 | // PPB_URLLoader. |
| 1039 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLLoader_Create, |
| 1040 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1041 | ppapi::HostResource /* result */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1042 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_Open, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1043 | ppapi::HostResource /* loader */, |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1044 | ppapi::PPB_URLRequestInfo_Data /* request_data */) |
| 1045 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FollowRedirect, |
| 1046 | ppapi::HostResource /* loader */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1047 | IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1048 | PpapiHostMsg_PPBURLLoader_GetResponseInfo, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1049 | ppapi::HostResource /* loader */, |
| 1050 | ppapi::HostResource /* response_info_out */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1051 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBURLLoader_ReadResponseBody, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1052 | ppapi::HostResource /* loader */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1053 | int32_t /* bytes_to_read */) |
[email protected] | 0f41c01 | 2011-10-21 19:49:20 | [diff] [blame] | 1054 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_FinishStreamingToFile, |
| 1055 | ppapi::HostResource /* loader */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1056 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_Close, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1057 | ppapi::HostResource /* loader */) |
[email protected] | bf712f8e | 2011-06-17 02:10:45 | [diff] [blame] | 1058 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBURLLoader_GrantUniversalAccess, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1059 | ppapi::HostResource /* loader */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1060 | |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1061 | // PPB_URLResponseInfo. |
| 1062 | IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBURLResponseInfo_GetProperty, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1063 | ppapi::HostResource /* response */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1064 | int32_t /* property */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1065 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1066 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBURLResponseInfo_GetBodyAsFileRef, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1067 | ppapi::HostResource /* response */, |
[email protected] | 6f75c95 | 2011-08-26 04:51:07 | [diff] [blame] | 1068 | ppapi::PPB_FileRef_CreateInfo /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1069 | |
| 1070 | // PPB_Var. |
[email protected] | 5b2d385 | 2011-04-19 23:22:40 | [diff] [blame] | 1071 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVar_AddRefObject, |
| 1072 | int64 /* object_id */, |
| 1073 | int /* unused - need a return value for sync msgs */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1074 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVar_ReleaseObject, |
| 1075 | int64 /* object_id */) |
| 1076 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_ConvertType, |
| 1077 | PP_Instance /* instance */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1078 | ppapi::proxy::SerializedVar /* var */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1079 | int /* new_type */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1080 | ppapi::proxy::SerializedVar /* exception */, |
| 1081 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1082 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1083 | ppapi::proxy::SerializedVar /* object */, |
| 1084 | ppapi::proxy::SerializedVar /* property */, |
| 1085 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1086 | PP_Bool /* result */) |
| 1087 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_HasMethodDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1088 | ppapi::proxy::SerializedVar /* object */, |
| 1089 | ppapi::proxy::SerializedVar /* method */, |
| 1090 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1091 | PP_Bool /* result */) |
| 1092 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_GetProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1093 | ppapi::proxy::SerializedVar /* object */, |
| 1094 | ppapi::proxy::SerializedVar /* property */, |
| 1095 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1096 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1097 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_DeleteProperty, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1098 | ppapi::proxy::SerializedVar /* object */, |
| 1099 | ppapi::proxy::SerializedVar /* property */, |
| 1100 | ppapi::proxy::SerializedVar /* out_exception */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1101 | PP_Bool /* result */) |
| 1102 | IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBVar_EnumerateProperties, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1103 | ppapi::proxy::SerializedVar /* object */, |
| 1104 | std::vector<ppapi::proxy::SerializedVar> /* props */, |
| 1105 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1106 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_SetPropertyDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1107 | ppapi::proxy::SerializedVar /* object */, |
| 1108 | ppapi::proxy::SerializedVar /* name */, |
| 1109 | ppapi::proxy::SerializedVar /* value */, |
| 1110 | ppapi::proxy::SerializedVar /* out_exception */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1111 | IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBVar_CallDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1112 | ppapi::proxy::SerializedVar /* object */, |
| 1113 | ppapi::proxy::SerializedVar /* method_name */, |
| 1114 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1115 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1116 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1117 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_Construct, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1118 | ppapi::proxy::SerializedVar /* object */, |
| 1119 | std::vector<ppapi::proxy::SerializedVar> /* args */, |
| 1120 | ppapi::proxy::SerializedVar /* out_exception */, |
| 1121 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1122 | IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1123 | ppapi::proxy::SerializedVar /* var */, |
[email protected] | 631179b | 2011-03-14 22:26:20 | [diff] [blame] | 1124 | int64 /* object_class */, |
| 1125 | int64 /* object-data */, |
| 1126 | PP_Bool /* result */) |
| 1127 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 1128 | PP_Instance /* instance */, |
| 1129 | int64 /* object_class */, |
| 1130 | int64 /* object_data */, |
[email protected] | 4d2efd2 | 2011-08-18 21:58:02 | [diff] [blame] | 1131 | ppapi::proxy::SerializedVar /* result */) |
[email protected] | 6239d34 | 2011-05-06 22:55:47 | [diff] [blame] | 1132 | |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1133 | // PPB_VideoCapture_Dev. |
| 1134 | IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create, |
| 1135 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1136 | ppapi::HostResource /* result */) |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1137 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices, |
| 1138 | ppapi::HostResource /* video_capture */) |
| 1139 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1140 | ppapi::HostResource /* video_capture */, |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1141 | std::string /* device_id */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1142 | PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 1143 | uint32_t /* buffer_count */) |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1144 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StartCapture, |
| 1145 | ppapi::HostResource /* video_capture */) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1146 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1147 | ppapi::HostResource /* video_capture */, |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1148 | uint32_t /* buffer */) |
| 1149 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_StopCapture, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1150 | ppapi::HostResource /* video_capture */) |
[email protected] | cc7c244 | 2012-02-15 22:58:15 | [diff] [blame] | 1151 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_Close, |
| 1152 | ppapi::HostResource /* video_capture */) |
| 1153 | IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture0_1, |
| 1154 | ppapi::HostResource /* video_capture */, |
| 1155 | PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| 1156 | uint32_t /* buffer_count */) |
[email protected] | 0fa46e8 | 2011-08-09 07:31:49 | [diff] [blame] | 1157 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1158 | // PPB_VideoDecoder. |
| 1159 | IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVideoDecoder_Create, |
| 1160 | PP_Instance /* instance */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1161 | ppapi::HostResource /* context */, |
[email protected] | 2ffc31a | 2011-09-01 03:18:28 | [diff] [blame] | 1162 | PP_VideoDecoder_Profile /* profile */, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1163 | ppapi::HostResource /* result */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1164 | IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoDecoder_Decode, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1165 | ppapi::HostResource /* video_decoder */, |
| 1166 | ppapi::HostResource /* bitstream buffer */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1167 | int32 /* bitstream buffer id */, |
| 1168 | int32 /* size of buffer */) |
| 1169 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_AssignPictureBuffers, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1170 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1171 | std::vector<PP_PictureBuffer_Dev> /* picture buffers */) |
| 1172 | IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1173 | ppapi::HostResource /* video_decoder */, |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1174 | int32_t /* picture buffer id */) |
| 1175 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1176 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1177 | IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1178 | ppapi::HostResource /* video_decoder */) |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 1179 | IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
[email protected] | be0a84b | 2011-08-13 04:18:44 | [diff] [blame] | 1180 | ppapi::HostResource /* video_decoder */) |