| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 IPC_STRUCT_TRAITS_MEMBER(family) | 108 IPC_STRUCT_TRAITS_MEMBER(family) |
| 109 IPC_STRUCT_TRAITS_MEMBER(flags) | 109 IPC_STRUCT_TRAITS_MEMBER(flags) |
| 110 IPC_STRUCT_TRAITS_END() | 110 IPC_STRUCT_TRAITS_END() |
| 111 | 111 |
| 112 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) | 112 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) |
| 113 IPC_STRUCT_TRAITS_MEMBER(type) | 113 IPC_STRUCT_TRAITS_MEMBER(type) |
| 114 IPC_STRUCT_TRAITS_MEMBER(name) | 114 IPC_STRUCT_TRAITS_MEMBER(name) |
| 115 IPC_STRUCT_TRAITS_MEMBER(id) | 115 IPC_STRUCT_TRAITS_MEMBER(id) |
| 116 IPC_STRUCT_TRAITS_END() | 116 IPC_STRUCT_TRAITS_END() |
| 117 | 117 |
| 118 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) | |
| 119 IPC_STRUCT_TRAITS_MEMBER(resource) | |
| 120 IPC_STRUCT_TRAITS_MEMBER(handle) | |
| 121 IPC_STRUCT_TRAITS_MEMBER(size) | |
| 122 IPC_STRUCT_TRAITS_END() | |
| 123 | |
| 124 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) | 118 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) |
| 125 IPC_STRUCT_TRAITS_MEMBER(rect) | 119 IPC_STRUCT_TRAITS_MEMBER(rect) |
| 126 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) | 120 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) |
| 127 IPC_STRUCT_TRAITS_MEMBER(is_page_visible) | 121 IPC_STRUCT_TRAITS_MEMBER(is_page_visible) |
| 128 IPC_STRUCT_TRAITS_MEMBER(clip_rect) | 122 IPC_STRUCT_TRAITS_MEMBER(clip_rect) |
| 129 IPC_STRUCT_TRAITS_END() | 123 IPC_STRUCT_TRAITS_END() |
| 130 | 124 |
| 131 IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) | 125 IPC_STRUCT_TRAITS_BEGIN(ppapi::Preferences) |
| 132 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) | 126 IPC_STRUCT_TRAITS_MEMBER(standard_font_family) |
| 133 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) | 127 IPC_STRUCT_TRAITS_MEMBER(fixed_font_family) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) | 179 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) |
| 186 IPC_STRUCT_TRAITS_MEMBER(is_file) | 180 IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 187 IPC_STRUCT_TRAITS_MEMBER(data) | 181 IPC_STRUCT_TRAITS_MEMBER(data) |
| 188 // Note: we don't serialize file_ref. | 182 // Note: we don't serialize file_ref. |
| 189 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) | 183 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
| 190 IPC_STRUCT_TRAITS_MEMBER(start_offset) | 184 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 191 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) | 185 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 192 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) | 186 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 193 IPC_STRUCT_TRAITS_END() | 187 IPC_STRUCT_TRAITS_END() |
| 194 | 188 |
| 189 #if !defined(OS_NACL) |
| 190 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) |
| 191 IPC_STRUCT_TRAITS_MEMBER(resource) |
| 192 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 193 IPC_STRUCT_TRAITS_MEMBER(size) |
| 194 IPC_STRUCT_TRAITS_END() |
| 195 |
| 195 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) | 196 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) |
| 196 IPC_STRUCT_TRAITS_MEMBER(name) | 197 IPC_STRUCT_TRAITS_MEMBER(name) |
| 197 IPC_STRUCT_TRAITS_MEMBER(type) | 198 IPC_STRUCT_TRAITS_MEMBER(type) |
| 198 IPC_STRUCT_TRAITS_MEMBER(state) | 199 IPC_STRUCT_TRAITS_MEMBER(state) |
| 199 IPC_STRUCT_TRAITS_MEMBER(addresses) | 200 IPC_STRUCT_TRAITS_MEMBER(addresses) |
| 200 IPC_STRUCT_TRAITS_MEMBER(display_name) | 201 IPC_STRUCT_TRAITS_MEMBER(display_name) |
| 201 IPC_STRUCT_TRAITS_MEMBER(mtu) | 202 IPC_STRUCT_TRAITS_MEMBER(mtu) |
| 202 IPC_STRUCT_TRAITS_END() | 203 IPC_STRUCT_TRAITS_END() |
| 204 #endif // !defined(OS_NACL) |
| 203 | 205 |
| 204 // These are from the browser to the plugin. | 206 // These are from the browser to the plugin. |
| 205 // Loads the given plugin. | 207 // Loads the given plugin. |
| 206 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) | 208 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) |
| 207 | 209 |
| 208 // Creates a channel to talk to a renderer. The plugin will respond with | 210 // Creates a channel to talk to a renderer. The plugin will respond with |
| 209 // PpapiHostMsg_ChannelCreated. | 211 // PpapiHostMsg_ChannelCreated. |
| 210 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, | 212 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, |
| 211 base::ProcessHandle /* host_process_handle */, | 213 base::ProcessHandle /* host_process_handle */, |
| 212 int /* renderer_id */) | 214 int /* renderer_id */) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 226 // If the plugin has already seen the instance ID, it will set usable as false | 228 // If the plugin has already seen the instance ID, it will set usable as false |
| 227 // and the renderer must retry a new instance ID. | 229 // and the renderer must retry a new instance ID. |
| 228 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId, | 230 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_ReserveInstanceId, |
| 229 PP_Instance /* instance */, | 231 PP_Instance /* instance */, |
| 230 bool /* usable */) | 232 bool /* usable */) |
| 231 | 233 |
| 232 // Passes the WebKit preferences to the plugin. | 234 // Passes the WebKit preferences to the plugin. |
| 233 IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences, | 235 IPC_MESSAGE_CONTROL1(PpapiMsg_SetPreferences, |
| 234 ppapi::Preferences) | 236 ppapi::Preferences) |
| 235 | 237 |
| 236 // Network state notification from the browser for implementing | |
| 237 // PPP_NetworkState_Dev. | |
| 238 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, | |
| 239 bool /* online */) | |
| 240 | |
| 241 // Sent in both directions to see if the other side supports the given | 238 // Sent in both directions to see if the other side supports the given |
| 242 // interface. | 239 // interface. |
| 243 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, | 240 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
| 244 std::string /* interface_name */, | 241 std::string /* interface_name */, |
| 245 bool /* result */) | 242 bool /* result */) |
| 246 | 243 |
| 244 #if !defined(OS_NACL) |
| 245 // Network state notification from the browser for implementing |
| 246 // PPP_NetworkState_Dev. |
| 247 IPC_MESSAGE_CONTROL1(PpapiMsg_SetNetworkState, |
| 248 bool /* online */) |
| 249 |
| 247 // Instructs the plugin to clear data for the given site & time. The plugin | 250 // Instructs the plugin to clear data for the given site & time. The plugin |
| 248 // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used | 251 // process will respond with PpapiHostMsg_ClearSiteDataResult. This is used |
| 249 // for Flash. | 252 // for Flash. |
| 250 IPC_MESSAGE_CONTROL4(PpapiMsg_ClearSiteData, | 253 IPC_MESSAGE_CONTROL4(PpapiMsg_ClearSiteData, |
| 251 FilePath /* plugin_data_path */, | 254 FilePath /* plugin_data_path */, |
| 252 std::string /* site */, | 255 std::string /* site */, |
| 253 uint64 /* flags */, | 256 uint64 /* flags */, |
| 254 uint64 /* max_age */) | 257 uint64 /* max_age */) |
| 255 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ClearSiteDataResult, | 258 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ClearSiteDataResult, |
| 256 bool /* success */) | 259 bool /* success */) |
| 257 | 260 |
| 258 // Broker Process. | 261 // Broker Process. |
| 259 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, | 262 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiMsg_ConnectToPlugin, |
| 260 PP_Instance /* instance */, | 263 PP_Instance /* instance */, |
| 261 IPC::PlatformFileForTransit /* handle */, | 264 IPC::PlatformFileForTransit /* handle */, |
| 262 int32_t /* result */) | 265 int32_t /* result */) |
| 266 #endif // !defined(OS_NACL) |
| 263 | 267 |
| 264 // PPB_Audio. | 268 // PPB_Audio. |
| 265 | 269 |
| 266 // Notifies the result of the audio stream create call. This is called in | 270 // Notifies the result of the audio stream create call. This is called in |
| 267 // both error cases and in the normal success case. These cases are | 271 // both error cases and in the normal success case. These cases are |
| 268 // differentiated by the result code, which is one of the standard PPAPI | 272 // differentiated by the result code, which is one of the standard PPAPI |
| 269 // result codes. | 273 // result codes. |
| 270 // | 274 // |
| 271 // The handler of this message should always close all of the handles passed | 275 // The handler of this message should always close all of the handles passed |
| 272 // in, since some could be valid even in the error case. | 276 // in, since some could be valid even in the error case. |
| 273 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, | 277 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
| 274 ppapi::HostResource /* audio_id */, | 278 ppapi::HostResource /* audio_id */, |
| 275 int32_t /* result_code (will be != PP_OK on failure) */, | 279 int32_t /* result_code (will be != PP_OK on failure) */, |
| 276 IPC::PlatformFileForTransit /* socket_handle */, | 280 IPC::PlatformFileForTransit /* socket_handle */, |
| 277 base::SharedMemoryHandle /* handle */, | 281 base::SharedMemoryHandle /* handle */, |
| 278 int32_t /* length */) | 282 int32_t /* length */) |
| 279 | 283 |
| 280 // PPB_AudioInput_Dev. | 284 // PPB_AudioInput_Dev. |
| 281 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBAudioInput_EnumerateDevicesACK, | 285 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBAudioInput_EnumerateDevicesACK, |
| 282 ppapi::HostResource /* audio_input */, | 286 ppapi::HostResource /* audio_input */, |
| 283 int32_t /* result */, | 287 int32_t /* result */, |
| 284 std::vector<ppapi::DeviceRefData> /* devices */) | 288 std::vector<ppapi::DeviceRefData> /* devices */) |
| 285 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_OpenACK, | 289 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_OpenACK, |
| 286 ppapi::HostResource /* audio_input */, | 290 ppapi::HostResource /* audio_input */, |
| 287 int32_t /* result_code (will be != PP_OK on failure) */, | 291 int32_t /* result_code (will be != PP_OK on failure) */, |
| 288 IPC::PlatformFileForTransit /* socket_handle */, | 292 IPC::PlatformFileForTransit /* socket_handle */, |
| 289 base::SharedMemoryHandle /* handle */, | 293 base::SharedMemoryHandle /* handle */, |
| 290 int32_t /* length */) | 294 int32_t /* length */) |
| 291 | 295 |
| 292 // PPB_Broker. | |
| 293 IPC_MESSAGE_ROUTED3( | |
| 294 PpapiMsg_PPBBroker_ConnectComplete, | |
| 295 ppapi::HostResource /* broker */, | |
| 296 IPC::PlatformFileForTransit /* handle */, | |
| 297 int32_t /* result */) | |
| 298 | |
| 299 // PPB_FileChooser. | |
| 300 IPC_MESSAGE_ROUTED3( | |
| 301 PpapiMsg_PPBFileChooser_ChooseComplete, | |
| 302 ppapi::HostResource /* chooser */, | |
| 303 int32_t /* result_code (will be != PP_OK on failure */, | |
| 304 std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */) | |
| 305 | |
| 306 // PPB_FileIO. | 296 // PPB_FileIO. |
| 307 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete, | 297 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete, |
| 308 ppapi::HostResource /* file_io */, | 298 ppapi::HostResource /* file_io */, |
| 309 int32_t /* result */) | 299 int32_t /* result */) |
| 310 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete, | 300 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete, |
| 311 ppapi::HostResource /* file_io */, | 301 ppapi::HostResource /* file_io */, |
| 312 int32_t /* result */) | 302 int32_t /* result */) |
| 313 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete, | 303 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete, |
| 314 ppapi::HostResource /* file_io */, | 304 ppapi::HostResource /* file_io */, |
| 315 int32_t /* result */, | 305 int32_t /* result */, |
| 316 PP_FileInfo /* info */) | 306 PP_FileInfo /* info */) |
| 317 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete, | 307 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete, |
| 318 ppapi::HostResource /* file_io */, | 308 ppapi::HostResource /* file_io */, |
| 319 int32_t /* result */, | 309 int32_t /* result */, |
| 320 std::string /* data */) | 310 std::string /* data */) |
| 321 | 311 |
| 322 // PPB_FileRef. | 312 // PPB_FileRef. |
| 323 IPC_MESSAGE_ROUTED3( | 313 IPC_MESSAGE_ROUTED3( |
| 324 PpapiMsg_PPBFileRef_CallbackComplete, | 314 PpapiMsg_PPBFileRef_CallbackComplete, |
| 325 ppapi::HostResource /* resource */, | 315 ppapi::HostResource /* resource */, |
| 326 int /* callback_id */, | 316 int /* callback_id */, |
| 327 int32_t /* result */) | 317 int32_t /* result */) |
| 328 | 318 |
| 329 // PPB_FileSystem. | 319 // PPB_FileSystem. |
| 330 IPC_MESSAGE_ROUTED2( | 320 IPC_MESSAGE_ROUTED2( |
| 331 PpapiMsg_PPBFileSystem_OpenComplete, | 321 PpapiMsg_PPBFileSystem_OpenComplete, |
| 332 ppapi::HostResource /* filesystem */, | 322 ppapi::HostResource /* filesystem */, |
| 333 int32_t /* result */) | 323 int32_t /* result */) |
| 334 | 324 |
| 335 // PPB_NetworkMonitor_Private. | |
| 336 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, | |
| 337 uint32 /* plugin_dispatcher_id */, | |
| 338 ppapi::NetworkList /* network_list */) | |
| 339 | |
| 340 // PPB_Talk | |
| 341 IPC_MESSAGE_ROUTED3( | |
| 342 PpapiMsg_PPBTalk_GetPermissionACK, | |
| 343 uint32 /* plugin_dispatcher_id */, | |
| 344 PP_Resource /* resource */, | |
| 345 int32_t /* result */) | |
| 346 | |
| 347 // PPB_TCPSocket_Private. | |
| 348 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, | |
| 349 uint32 /* plugin_dispatcher_id */, | |
| 350 uint32 /* socket_id */, | |
| 351 bool /* succeeded */, | |
| 352 PP_NetAddress_Private /* local_addr */, | |
| 353 PP_NetAddress_Private /* remote_addr */) | |
| 354 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, | |
| 355 uint32 /* plugin_dispatcher_id */, | |
| 356 uint32 /* socket_id */, | |
| 357 bool /* succeeded */, | |
| 358 ppapi::PPB_X509Certificate_Fields /* certificate_fields */) | |
| 359 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK, | |
| 360 uint32 /* plugin_dispatcher_id */, | |
| 361 uint32 /* socket_id */, | |
| 362 bool /* succeeded */, | |
| 363 std::string /* data */) | |
| 364 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, | |
| 365 uint32 /* plugin_dispatcher_id */, | |
| 366 uint32 /* socket_id */, | |
| 367 bool /* succeeded */, | |
| 368 int32_t /* bytes_written */) | |
| 369 | |
| 370 // PPB_UDPSocket_Private. | |
| 371 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK, | |
| 372 uint32 /* plugin_dispatcher_id */, | |
| 373 uint32 /* socket_id */, | |
| 374 bool /* succeeded */, | |
| 375 PP_NetAddress_Private /* bound_addr */) | |
| 376 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, | |
| 377 uint32 /* plugin_dispatcher_id */, | |
| 378 uint32 /* socket_id */, | |
| 379 bool /* succeeded */, | |
| 380 std::string /* data */, | |
| 381 PP_NetAddress_Private /* remote_addr */) | |
| 382 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK, | |
| 383 uint32 /* plugin_dispatcher_id */, | |
| 384 uint32 /* socket_id */, | |
| 385 bool /* succeeded */, | |
| 386 int32_t /* bytes_written */) | |
| 387 | |
| 388 // PPB_TCPServerSocket_Private. | |
| 389 | |
| 390 // |socket_resource| should not be used as Resource in browser. The | |
| 391 // only purpose of this argument is to be echoed back. | |
| 392 // |status| == PP_ERROR_NOSPACE means that the socket table is full | |
| 393 // and new socket can't be initialized. | |
| 394 // |status| == PP_ERROR_FAILED means that socket is correctly | |
| 395 // initialized (if needed) but Listen call is failed. | |
| 396 // |status| == PP_OK means that socket is correctly initialized (if | |
| 397 // needed) and Listen call succeeds. | |
| 398 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK, | |
| 399 uint32 /* plugin_dispatcher_id */, | |
| 400 PP_Resource /* socket_resource */, | |
| 401 uint32 /* socket_id */, | |
| 402 int32_t /* status */) | |
| 403 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, | |
| 404 uint32 /* plugin_dispatcher_id */, | |
| 405 uint32 /* server_socket_id */, | |
| 406 uint32 /* accepted_socket_id */, | |
| 407 PP_NetAddress_Private /* local_addr */, | |
| 408 PP_NetAddress_Private /* remote_addr */) | |
| 409 | |
| 410 // PPB_HostResolver_Private. | |
| 411 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK, | |
| 412 uint32 /* plugin_dispatcher_id */, | |
| 413 uint32 /* host_resolver_id */, | |
| 414 bool /* succeeded */, | |
| 415 std::string /* canonical_name */, | |
| 416 ppapi::NetAddressList /* net_address_list */) | |
| 417 | |
| 418 // PPB_Graphics2D. | 325 // PPB_Graphics2D. |
| 419 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | 326 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
| 420 ppapi::HostResource /* graphics_2d */, | 327 ppapi::HostResource /* graphics_2d */, |
| 421 int32_t /* pp_error */) | 328 int32_t /* pp_error */) |
| 422 | 329 |
| 423 // PPB_Graphics3D. | 330 // PPB_Graphics3D. |
| 424 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, | 331 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
| 425 ppapi::HostResource /* graphics_3d */, | 332 ppapi::HostResource /* graphics_3d */, |
| 426 int32_t /* pp_error */) | 333 int32_t /* pp_error */) |
| 427 | 334 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 ppapi::ViewData /* new_data */, | 419 ppapi::ViewData /* new_data */, |
| 513 PP_Bool /* flash_fullscreen */) | 420 PP_Bool /* flash_fullscreen */) |
| 514 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, | 421 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, |
| 515 PP_Instance /* instance */, | 422 PP_Instance /* instance */, |
| 516 PP_Bool /* has_focus */) | 423 PP_Bool /* has_focus */) |
| 517 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad, | 424 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleDocumentLoad, |
| 518 PP_Instance /* instance */, | 425 PP_Instance /* instance */, |
| 519 ppapi::HostResource /* url_loader */, | 426 ppapi::HostResource /* url_loader */, |
| 520 PP_Bool /* result */) | 427 PP_Bool /* result */) |
| 521 | 428 |
| 522 // PPP_Instance_Private. | |
| 523 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, | |
| 524 PP_Instance /* instance */, | |
| 525 ppapi::proxy::SerializedVar /* result */) | |
| 526 | |
| 527 // PPP_Messaging. | 429 // PPP_Messaging. |
| 528 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, | 430 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPMessaging_HandleMessage, |
| 529 PP_Instance /* instance */, | 431 PP_Instance /* instance */, |
| 530 ppapi::proxy::SerializedVar /* message */) | 432 ppapi::proxy::SerializedVar /* message */) |
| 531 | 433 |
| 532 // PPP_MouseLock. | 434 // PPP_MouseLock. |
| 533 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, | 435 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPMouseLock_MouseLockLost, |
| 534 PP_Instance /* instance */) | 436 PP_Instance /* instance */) |
| 535 | 437 |
| 536 // PPP_Printing | 438 // PPP_Printing |
| (...skipping 14 matching lines...) Expand all Loading... |
| 551 PP_Instance /* instance */, | 453 PP_Instance /* instance */, |
| 552 bool /* result */) | 454 bool /* result */) |
| 553 | 455 |
| 554 // PPP_TextInput. | 456 // PPP_TextInput. |
| 555 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText, | 457 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPTextInput_RequestSurroundingText, |
| 556 PP_Instance /* instance */, | 458 PP_Instance /* instance */, |
| 557 uint32_t /* desired_number_of_characters */) | 459 uint32_t /* desired_number_of_characters */) |
| 558 | 460 |
| 559 // PPB_URLLoader | 461 // PPB_URLLoader |
| 560 // (Messages from browser to plugin to notify it of changes in state.) | 462 // (Messages from browser to plugin to notify it of changes in state.) |
| 561 IPC_MESSAGE_ROUTED1( | |
| 562 PpapiMsg_PPBURLLoader_UpdateProgress, | |
| 563 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) | |
| 564 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, | 463 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, |
| 565 ppapi::HostResource /* loader */, | 464 ppapi::HostResource /* loader */, |
| 566 int32 /* result */, | 465 int32 /* result */, |
| 567 std::string /* data */) | 466 std::string /* data */) |
| 568 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete, | 467 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBURLLoader_CallbackComplete, |
| 569 ppapi::HostResource /* loader */, | 468 ppapi::HostResource /* loader */, |
| 570 int32_t /* result */) | 469 int32_t /* result */) |
| 470 #if !defined(OS_NACL) |
| 471 // PPB_Broker. |
| 472 IPC_MESSAGE_ROUTED3( |
| 473 PpapiMsg_PPBBroker_ConnectComplete, |
| 474 ppapi::HostResource /* broker */, |
| 475 IPC::PlatformFileForTransit /* handle */, |
| 476 int32_t /* result */) |
| 477 |
| 478 // PPB_FileChooser. |
| 479 IPC_MESSAGE_ROUTED3( |
| 480 PpapiMsg_PPBFileChooser_ChooseComplete, |
| 481 ppapi::HostResource /* chooser */, |
| 482 int32_t /* result_code (will be != PP_OK on failure */, |
| 483 std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */) |
| 484 |
| 485 // PPB_NetworkMonitor_Private. |
| 486 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, |
| 487 uint32 /* plugin_dispatcher_id */, |
| 488 ppapi::NetworkList /* network_list */) |
| 489 |
| 490 // PPB_Talk |
| 491 IPC_MESSAGE_ROUTED3( |
| 492 PpapiMsg_PPBTalk_GetPermissionACK, |
| 493 uint32 /* plugin_dispatcher_id */, |
| 494 PP_Resource /* resource */, |
| 495 int32_t /* result */) |
| 496 |
| 497 // PPB_TCPSocket_Private. |
| 498 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, |
| 499 uint32 /* plugin_dispatcher_id */, |
| 500 uint32 /* socket_id */, |
| 501 bool /* succeeded */, |
| 502 PP_NetAddress_Private /* local_addr */, |
| 503 PP_NetAddress_Private /* remote_addr */) |
| 504 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, |
| 505 uint32 /* plugin_dispatcher_id */, |
| 506 uint32 /* socket_id */, |
| 507 bool /* succeeded */, |
| 508 ppapi::PPB_X509Certificate_Fields /* certificate_fields */) |
| 509 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK, |
| 510 uint32 /* plugin_dispatcher_id */, |
| 511 uint32 /* socket_id */, |
| 512 bool /* succeeded */, |
| 513 std::string /* data */) |
| 514 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_WriteACK, |
| 515 uint32 /* plugin_dispatcher_id */, |
| 516 uint32 /* socket_id */, |
| 517 bool /* succeeded */, |
| 518 int32_t /* bytes_written */) |
| 519 |
| 520 // PPB_UDPSocket_Private. |
| 521 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_BindACK, |
| 522 uint32 /* plugin_dispatcher_id */, |
| 523 uint32 /* socket_id */, |
| 524 bool /* succeeded */, |
| 525 PP_NetAddress_Private /* bound_addr */) |
| 526 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBUDPSocket_RecvFromACK, |
| 527 uint32 /* plugin_dispatcher_id */, |
| 528 uint32 /* socket_id */, |
| 529 bool /* succeeded */, |
| 530 std::string /* data */, |
| 531 PP_NetAddress_Private /* remote_addr */) |
| 532 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK, |
| 533 uint32 /* plugin_dispatcher_id */, |
| 534 uint32 /* socket_id */, |
| 535 bool /* succeeded */, |
| 536 int32_t /* bytes_written */) |
| 537 |
| 538 // PPB_URLLoader_Trusted |
| 539 IPC_MESSAGE_ROUTED1( |
| 540 PpapiMsg_PPBURLLoader_UpdateProgress, |
| 541 ppapi::proxy::PPBURLLoader_UpdateProgress_Params /* params */) |
| 542 |
| 543 // PPB_TCPServerSocket_Private. |
| 544 |
| 545 // |socket_resource| should not be used as Resource in browser. The |
| 546 // only purpose of this argument is to be echoed back. |
| 547 // |status| == PP_ERROR_NOSPACE means that the socket table is full |
| 548 // and new socket can't be initialized. |
| 549 // |status| == PP_ERROR_FAILED means that socket is correctly |
| 550 // initialized (if needed) but Listen call is failed. |
| 551 // |status| == PP_OK means that socket is correctly initialized (if |
| 552 // needed) and Listen call succeeds. |
| 553 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK, |
| 554 uint32 /* plugin_dispatcher_id */, |
| 555 PP_Resource /* socket_resource */, |
| 556 uint32 /* socket_id */, |
| 557 int32_t /* status */) |
| 558 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, |
| 559 uint32 /* plugin_dispatcher_id */, |
| 560 uint32 /* server_socket_id */, |
| 561 uint32 /* accepted_socket_id */, |
| 562 PP_NetAddress_Private /* local_addr */, |
| 563 PP_NetAddress_Private /* remote_addr */) |
| 564 |
| 565 // PPB_HostResolver_Private. |
| 566 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBHostResolver_ResolveACK, |
| 567 uint32 /* plugin_dispatcher_id */, |
| 568 uint32 /* host_resolver_id */, |
| 569 bool /* succeeded */, |
| 570 std::string /* canonical_name */, |
| 571 ppapi::NetAddressList /* net_address_list */) |
| 572 |
| 573 // PPP_Instance_Private. |
| 574 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 575 PP_Instance /* instance */, |
| 576 ppapi::proxy::SerializedVar /* result */) |
| 571 | 577 |
| 572 // PPB_VideoCapture_Dev | 578 // PPB_VideoCapture_Dev |
| 573 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK, | 579 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoCapture_EnumerateDevicesACK, |
| 574 ppapi::HostResource /* video_capture */, | 580 ppapi::HostResource /* video_capture */, |
| 575 int32_t /* result */, | 581 int32_t /* result */, |
| 576 std::vector<ppapi::DeviceRefData> /* devices */) | 582 std::vector<ppapi::DeviceRefData> /* devices */) |
| 577 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK, | 583 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBVideoCapture_OpenACK, |
| 578 ppapi::HostResource /* video_capture */, | 584 ppapi::HostResource /* video_capture */, |
| 579 int32_t /* result */) | 585 int32_t /* result */) |
| 580 | 586 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 PP_Size /* dimensions of buffers */) | 620 PP_Size /* dimensions of buffers */) |
| 615 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, | 621 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_DismissPictureBuffer, |
| 616 ppapi::HostResource /* video_decoder */, | 622 ppapi::HostResource /* video_decoder */, |
| 617 int32_t /* picture buffer id */) | 623 int32_t /* picture buffer id */) |
| 618 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady, | 624 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_PictureReady, |
| 619 ppapi::HostResource /* video_decoder */, | 625 ppapi::HostResource /* video_decoder */, |
| 620 PP_Picture_Dev /* output picture */) | 626 PP_Picture_Dev /* output picture */) |
| 621 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError, | 627 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPVideoDecoder_NotifyError, |
| 622 ppapi::HostResource /* video_decoder */, | 628 ppapi::HostResource /* video_decoder */, |
| 623 PP_VideoDecodeError_Dev /* error */) | 629 PP_VideoDecodeError_Dev /* error */) |
| 630 #endif // !defined(OS_NACL) |
| 624 | 631 |
| 625 // ----------------------------------------------------------------------------- | 632 // ----------------------------------------------------------------------------- |
| 626 // These are from the plugin to the renderer. | 633 // These are from the plugin to the renderer. |
| 627 | 634 |
| 628 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel | 635 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel |
| 629 // could not be established. This could be because the IPC could not be created | 636 // could not be established. This could be because the IPC could not be created |
| 630 // for some weird reason, but more likely that the plugin failed to load or | 637 // for some weird reason, but more likely that the plugin failed to load or |
| 631 // initialize properly. | 638 // initialize properly. |
| 632 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, | 639 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated, |
| 633 IPC::ChannelHandle /* handle */) | 640 IPC::ChannelHandle /* handle */) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 659 ppapi::HostResource /* audio_input */, | 666 ppapi::HostResource /* audio_input */, |
| 660 std::string /* device_id */, | 667 std::string /* device_id */, |
| 661 int32_t /* sample_rate */, | 668 int32_t /* sample_rate */, |
| 662 uint32_t /* sample_frame_count */) | 669 uint32_t /* sample_frame_count */) |
| 663 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudioInput_StartOrStop, | 670 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudioInput_StartOrStop, |
| 664 ppapi::HostResource /* audio_input */, | 671 ppapi::HostResource /* audio_input */, |
| 665 bool /* capture */) | 672 bool /* capture */) |
| 666 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBAudioInput_Close, | 673 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBAudioInput_Close, |
| 667 ppapi::HostResource /* audio_input */) | 674 ppapi::HostResource /* audio_input */) |
| 668 | 675 |
| 669 // PPB_Broker. | |
| 670 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, | |
| 671 PP_Instance /* instance */, | |
| 672 ppapi::HostResource /* result_resource */) | |
| 673 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, | |
| 674 ppapi::HostResource /* broker */) | |
| 675 | |
| 676 // PPB_Buffer. | |
| 677 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, | |
| 678 PP_Instance /* instance */, | |
| 679 uint32_t /* size */, | |
| 680 ppapi::HostResource /* result_resource */, | |
| 681 base::SharedMemoryHandle /* result_shm_handle */) | |
| 682 | |
| 683 // PPB_Core. | 676 // PPB_Core. |
| 684 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 677 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
| 685 ppapi::HostResource) | 678 ppapi::HostResource) |
| 686 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 679 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
| 687 ppapi::HostResource) | 680 ppapi::HostResource) |
| 688 | 681 |
| 689 // PPB_FileChooser. | |
| 690 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create, | |
| 691 PP_Instance /* instance */, | |
| 692 int /* mode */, | |
| 693 std::string /* accept_mime_types */, | |
| 694 ppapi::HostResource /* result */) | |
| 695 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, | |
| 696 ppapi::HostResource /* file_chooser */, | |
| 697 PP_Bool /* save_as */, | |
| 698 ppapi::proxy::SerializedVar /* suggested_file_name */, | |
| 699 bool /* require_user_gesture */) | |
| 700 | |
| 701 // PPB_FileIO. | 682 // PPB_FileIO. |
| 702 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, | 683 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, |
| 703 PP_Instance /* instance */, | 684 PP_Instance /* instance */, |
| 704 ppapi::HostResource /* result */) | 685 ppapi::HostResource /* result */) |
| 705 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, | 686 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, |
| 706 ppapi::HostResource /* host_resource */, | 687 ppapi::HostResource /* host_resource */, |
| 707 ppapi::HostResource /* file_ref_resource */, | 688 ppapi::HostResource /* file_ref_resource */, |
| 708 int32_t /* open_flags */) | 689 int32_t /* open_flags */) |
| 709 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, | 690 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, |
| 710 ppapi::HostResource /* host_resource */) | 691 ppapi::HostResource /* host_resource */) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 | 746 |
| 766 // PPB_FileSystem. | 747 // PPB_FileSystem. |
| 767 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, | 748 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, |
| 768 PP_Instance /* instance */, | 749 PP_Instance /* instance */, |
| 769 int /* type */, | 750 int /* type */, |
| 770 ppapi::HostResource /* result */) | 751 ppapi::HostResource /* result */) |
| 771 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, | 752 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, |
| 772 ppapi::HostResource /* result */, | 753 ppapi::HostResource /* result */, |
| 773 int64_t /* expected_size */) | 754 int64_t /* expected_size */) |
| 774 | 755 |
| 775 // PPB_NetworkMonitor_Private. | |
| 776 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, | |
| 777 uint32 /* plugin_dispatcher_id */) | |
| 778 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, | |
| 779 uint32 /* plugin_dispatcher_id */) | |
| 780 | |
| 781 // PPB_Graphics2D. | 756 // PPB_Graphics2D. |
| 782 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, | 757 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, |
| 783 PP_Instance /* instance */, | 758 PP_Instance /* instance */, |
| 784 PP_Size /* size */, | 759 PP_Size /* size */, |
| 785 PP_Bool /* is_always_opaque */, | 760 PP_Bool /* is_always_opaque */, |
| 786 ppapi::HostResource /* result */) | 761 ppapi::HostResource /* result */) |
| 787 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, | 762 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, |
| 788 ppapi::HostResource /* graphics_2d */, | 763 ppapi::HostResource /* graphics_2d */, |
| 789 ppapi::HostResource /* image_data */, | 764 ppapi::HostResource /* image_data */, |
| 790 PP_Point /* top_left */, | 765 PP_Point /* top_left */, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 ppapi::HostResource /* context */, | 805 ppapi::HostResource /* context */, |
| 831 int32 /* id */) | 806 int32 /* id */) |
| 832 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer, | 807 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer, |
| 833 ppapi::HostResource /* context */, | 808 ppapi::HostResource /* context */, |
| 834 int32 /* id */, | 809 int32 /* id */, |
| 835 base::SharedMemoryHandle /* transfer_buffer */, | 810 base::SharedMemoryHandle /* transfer_buffer */, |
| 836 uint32 /* size */) | 811 uint32 /* size */) |
| 837 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, | 812 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, |
| 838 ppapi::HostResource /* graphics_3d */) | 813 ppapi::HostResource /* graphics_3d */) |
| 839 | 814 |
| 840 // PPB_HostResolver_Private. | |
| 841 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, | |
| 842 int32 /* routing_id */, | |
| 843 uint32 /* plugin_dispatcher_id */, | |
| 844 uint32 /* host_resolver_id */, | |
| 845 ppapi::HostPortPair /* host_port */, | |
| 846 PP_HostResolver_Private_Hint /* hint */) | |
| 847 | |
| 848 // PPB_ImageData. | 815 // PPB_ImageData. |
| 849 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, | 816 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, |
| 850 PP_Instance /* instance */, | 817 PP_Instance /* instance */, |
| 851 int32 /* format */, | 818 int32 /* format */, |
| 852 PP_Size /* size */, | 819 PP_Size /* size */, |
| 853 PP_Bool /* init_to_zero */, | 820 PP_Bool /* init_to_zero */, |
| 854 ppapi::HostResource /* result_resource */, | 821 ppapi::HostResource /* result_resource */, |
| 855 std::string /* image_data_desc */, | 822 std::string /* image_data_desc */, |
| 856 ppapi::proxy::ImageHandle /* result */) | 823 ppapi::proxy::ImageHandle /* result */) |
| 857 | 824 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 ppapi::proxy::SerializedVar /* result */) | 901 ppapi::proxy::SerializedVar /* result */) |
| 935 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL, | 902 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetPluginInstanceURL, |
| 936 PP_Instance /* active */, | 903 PP_Instance /* active */, |
| 937 ppapi::proxy::SerializedVar /* result */) | 904 ppapi::proxy::SerializedVar /* result */) |
| 938 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor, | 905 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_SetCursor, |
| 939 PP_Instance /* instance */, | 906 PP_Instance /* instance */, |
| 940 int32_t /* type */, | 907 int32_t /* type */, |
| 941 ppapi::HostResource /* custom_image */, | 908 ppapi::HostResource /* custom_image */, |
| 942 PP_Point /* hot_spot */) | 909 PP_Point /* hot_spot */) |
| 943 | 910 |
| 944 IPC_SYNC_MESSAGE_ROUTED3_1( | |
| 945 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, | |
| 946 PP_Instance /* instance */, | |
| 947 ppapi::proxy::SerializedFontDescription /* description */, | |
| 948 int32_t /* charset */, | |
| 949 ppapi::HostResource /* result */) | |
| 950 IPC_SYNC_MESSAGE_ROUTED2_1( | |
| 951 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, | |
| 952 ppapi::HostResource /* font_file */, | |
| 953 uint32_t /* table */, | |
| 954 std::string /* result */) | |
| 955 | |
| 956 // PPB_Talk. | |
| 957 IPC_MESSAGE_ROUTED2( | |
| 958 PpapiHostMsg_PPBTalk_GetPermission, | |
| 959 uint32 /* plugin_dispatcher_id */, | |
| 960 PP_Resource /* resource */) | |
| 961 | |
| 962 // PPB_Testing. | |
| 963 IPC_SYNC_MESSAGE_ROUTED3_1( | |
| 964 PpapiHostMsg_PPBTesting_ReadImageData, | |
| 965 ppapi::HostResource /* device_context_2d */, | |
| 966 ppapi::HostResource /* image */, | |
| 967 PP_Point /* top_left */, | |
| 968 PP_Bool /* result */) | |
| 969 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, | |
| 970 PP_Instance /* instance */, | |
| 971 uint32 /* result */) | |
| 972 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, | |
| 973 PP_Instance /* instance */, | |
| 974 ppapi::InputEventData /* input_event */) | |
| 975 | |
| 976 // PPB_TextInput. | 911 // PPB_TextInput. |
| 977 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType, | 912 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTextInput_SetTextInputType, |
| 978 PP_Instance /* instance */, | 913 PP_Instance /* instance */, |
| 979 PP_TextInput_Type /* type */) | 914 PP_TextInput_Type /* type */) |
| 980 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition, | 915 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBTextInput_UpdateCaretPosition, |
| 981 PP_Instance /* instance */, | 916 PP_Instance /* instance */, |
| 982 PP_Rect /* caret */, | 917 PP_Rect /* caret */, |
| 983 PP_Rect /* bounding_box */) | 918 PP_Rect /* bounding_box */) |
| 984 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, | 919 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBTextInput_CancelCompositionText, |
| 985 PP_Instance /* instance */) | 920 PP_Instance /* instance */) |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 ppapi::proxy::SerializedVar /* var */, | 1012 ppapi::proxy::SerializedVar /* var */, |
| 1078 int64 /* object_class */, | 1013 int64 /* object_class */, |
| 1079 int64 /* object-data */, | 1014 int64 /* object-data */, |
| 1080 PP_Bool /* result */) | 1015 PP_Bool /* result */) |
| 1081 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, | 1016 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 1082 PP_Instance /* instance */, | 1017 PP_Instance /* instance */, |
| 1083 int64 /* object_class */, | 1018 int64 /* object_class */, |
| 1084 int64 /* object_data */, | 1019 int64 /* object_data */, |
| 1085 ppapi::proxy::SerializedVar /* result */) | 1020 ppapi::proxy::SerializedVar /* result */) |
| 1086 | 1021 |
| 1022 #if !defined(OS_NACL) |
| 1023 // PPB_Broker. |
| 1024 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBBroker_Create, |
| 1025 PP_Instance /* instance */, |
| 1026 ppapi::HostResource /* result_resource */) |
| 1027 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, |
| 1028 ppapi::HostResource /* broker */) |
| 1029 |
| 1030 // PPB_Buffer. |
| 1031 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, |
| 1032 PP_Instance /* instance */, |
| 1033 uint32_t /* size */, |
| 1034 ppapi::HostResource /* result_resource */, |
| 1035 base::SharedMemoryHandle /* result_shm_handle */) |
| 1036 |
| 1037 // PPB_FileChooser. |
| 1038 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create, |
| 1039 PP_Instance /* instance */, |
| 1040 int /* mode */, |
| 1041 std::string /* accept_mime_types */, |
| 1042 ppapi::HostResource /* result */) |
| 1043 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, |
| 1044 ppapi::HostResource /* file_chooser */, |
| 1045 PP_Bool /* save_as */, |
| 1046 ppapi::proxy::SerializedVar /* suggested_file_name */, |
| 1047 bool /* require_user_gesture */) |
| 1048 |
| 1049 // PPB_NetworkMonitor_Private. |
| 1050 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
| 1051 uint32 /* plugin_dispatcher_id */) |
| 1052 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
| 1053 uint32 /* plugin_dispatcher_id */) |
| 1054 |
| 1055 // PPB_HostResolver_Private. |
| 1056 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, |
| 1057 int32 /* routing_id */, |
| 1058 uint32 /* plugin_dispatcher_id */, |
| 1059 uint32 /* host_resolver_id */, |
| 1060 ppapi::HostPortPair /* host_port */, |
| 1061 PP_HostResolver_Private_Hint /* hint */) |
| 1062 |
| 1063 // PPB_PDF |
| 1064 IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1065 PpapiHostMsg_PPBPDF_GetFontFileWithFallback, |
| 1066 PP_Instance /* instance */, |
| 1067 ppapi::proxy::SerializedFontDescription /* description */, |
| 1068 int32_t /* charset */, |
| 1069 ppapi::HostResource /* result */) |
| 1070 IPC_SYNC_MESSAGE_ROUTED2_1( |
| 1071 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
| 1072 ppapi::HostResource /* font_file */, |
| 1073 uint32_t /* table */, |
| 1074 std::string /* result */) |
| 1075 |
| 1076 |
| 1077 // PPB_Talk. |
| 1078 IPC_MESSAGE_ROUTED2( |
| 1079 PpapiHostMsg_PPBTalk_GetPermission, |
| 1080 uint32 /* plugin_dispatcher_id */, |
| 1081 PP_Resource /* resource */) |
| 1082 |
| 1083 // PPB_Testing. |
| 1084 IPC_SYNC_MESSAGE_ROUTED3_1( |
| 1085 PpapiHostMsg_PPBTesting_ReadImageData, |
| 1086 ppapi::HostResource /* device_context_2d */, |
| 1087 ppapi::HostResource /* image */, |
| 1088 PP_Point /* top_left */, |
| 1089 PP_Bool /* result */) |
| 1090 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBTesting_GetLiveObjectsForInstance, |
| 1091 PP_Instance /* instance */, |
| 1092 uint32 /* result */) |
| 1093 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBTesting_SimulateInputEvent, |
| 1094 PP_Instance /* instance */, |
| 1095 ppapi::InputEventData /* input_event */) |
| 1096 |
| 1087 // PPB_VideoCapture_Dev. | 1097 // PPB_VideoCapture_Dev. |
| 1088 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create, | 1098 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create, |
| 1089 PP_Instance /* instance */, | 1099 PP_Instance /* instance */, |
| 1090 ppapi::HostResource /* result */) | 1100 ppapi::HostResource /* result */) |
| 1091 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices, | 1101 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoCapture_EnumerateDevices, |
| 1092 ppapi::HostResource /* video_capture */) | 1102 ppapi::HostResource /* video_capture */) |
| 1093 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open, | 1103 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBVideoCapture_Open, |
| 1094 ppapi::HostResource /* video_capture */, | 1104 ppapi::HostResource /* video_capture */, |
| 1095 std::string /* device_id */, | 1105 std::string /* device_id */, |
| 1096 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, | 1106 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1126 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, | 1136 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, |
| 1127 ppapi::HostResource /* video_decoder */, | 1137 ppapi::HostResource /* video_decoder */, |
| 1128 int32_t /* picture buffer id */) | 1138 int32_t /* picture buffer id */) |
| 1129 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, | 1139 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, |
| 1130 ppapi::HostResource /* video_decoder */) | 1140 ppapi::HostResource /* video_decoder */) |
| 1131 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, | 1141 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, |
| 1132 ppapi::HostResource /* video_decoder */) | 1142 ppapi::HostResource /* video_decoder */) |
| 1133 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, | 1143 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, |
| 1134 ppapi::HostResource /* video_decoder */) | 1144 ppapi::HostResource /* video_decoder */) |
| 1135 | 1145 |
| 1136 #if !defined(OS_NACL) | |
| 1137 // PPB_Flash. | 1146 // PPB_Flash. |
| 1138 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, | 1147 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlash_SetInstanceAlwaysOnTop, |
| 1139 PP_Instance /* instance */, | 1148 PP_Instance /* instance */, |
| 1140 PP_Bool /* on_top */) | 1149 PP_Bool /* on_top */) |
| 1141 // This has to be synchronous becuase the caller may want to composite on | 1150 // This has to be synchronous becuase the caller may want to composite on |
| 1142 // top of the resulting text after the call is complete. | 1151 // top of the resulting text after the call is complete. |
| 1143 IPC_SYNC_MESSAGE_ROUTED1_1( | 1152 IPC_SYNC_MESSAGE_ROUTED1_1( |
| 1144 PpapiHostMsg_PPBFlash_DrawGlyphs, | 1153 PpapiHostMsg_PPBFlash_DrawGlyphs, |
| 1145 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, | 1154 ppapi::proxy::PPBFlash_DrawGlyphs_Params /* params */, |
| 1146 PP_Bool /* result */) | 1155 PP_Bool /* result */) |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 // PPB_X509Certificate_Private | 1325 // PPB_X509Certificate_Private |
| 1317 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, | 1326 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, |
| 1318 std::vector<char> /* der */, | 1327 std::vector<char> /* der */, |
| 1319 bool /* succeeded */, | 1328 bool /* succeeded */, |
| 1320 ppapi::PPB_X509Certificate_Fields /* result */) | 1329 ppapi::PPB_X509Certificate_Fields /* result */) |
| 1321 | 1330 |
| 1322 // PPB_Font. | 1331 // PPB_Font. |
| 1323 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, | 1332 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, |
| 1324 std::string /* result */) | 1333 std::string /* result */) |
| 1325 #endif // !defined(OS_NACL) | 1334 #endif // !defined(OS_NACL) |
| OLD | NEW |