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