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