| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) | 221 IPC_STRUCT_TRAITS_BEGIN(ppapi::PPB_URLRequestInfo_Data::BodyItem) |
| 222 IPC_STRUCT_TRAITS_MEMBER(is_file) | 222 IPC_STRUCT_TRAITS_MEMBER(is_file) |
| 223 IPC_STRUCT_TRAITS_MEMBER(data) | 223 IPC_STRUCT_TRAITS_MEMBER(data) |
| 224 // Note: we don't serialize file_ref. | 224 // Note: we don't serialize file_ref. |
| 225 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) | 225 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource) |
| 226 IPC_STRUCT_TRAITS_MEMBER(start_offset) | 226 IPC_STRUCT_TRAITS_MEMBER(start_offset) |
| 227 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) | 227 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) |
| 228 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) | 228 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) |
| 229 IPC_STRUCT_TRAITS_END() | 229 IPC_STRUCT_TRAITS_END() |
| 230 | 230 |
| 231 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedSharedMemoryHandle) |
| 232 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 233 IPC_STRUCT_TRAITS_MEMBER(size) |
| 234 IPC_STRUCT_TRAITS_END() |
| 235 |
| 236 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::SerializedFileDescriptor) |
| 237 IPC_STRUCT_TRAITS_MEMBER(descriptor) |
| 238 IPC_STRUCT_TRAITS_END() |
| 239 |
| 231 #if !defined(OS_NACL) | 240 #if !defined(OS_NACL) |
| 232 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) | 241 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPVideoCapture_Buffer) |
| 233 IPC_STRUCT_TRAITS_MEMBER(resource) | 242 IPC_STRUCT_TRAITS_MEMBER(resource) |
| 234 IPC_STRUCT_TRAITS_MEMBER(handle) | 243 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 235 IPC_STRUCT_TRAITS_MEMBER(size) | 244 IPC_STRUCT_TRAITS_MEMBER(size) |
| 236 IPC_STRUCT_TRAITS_END() | 245 IPC_STRUCT_TRAITS_END() |
| 237 | 246 |
| 238 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) | 247 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) |
| 239 IPC_STRUCT_TRAITS_MEMBER(name) | 248 IPC_STRUCT_TRAITS_MEMBER(name) |
| 240 IPC_STRUCT_TRAITS_MEMBER(type) | 249 IPC_STRUCT_TRAITS_MEMBER(type) |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 | 355 |
| 347 // PPB_Audio. | 356 // PPB_Audio. |
| 348 | 357 |
| 349 // Notifies the result of the audio stream create call. This is called in | 358 // Notifies the result of the audio stream create call. This is called in |
| 350 // both error cases and in the normal success case. These cases are | 359 // both error cases and in the normal success case. These cases are |
| 351 // differentiated by the result code, which is one of the standard PPAPI | 360 // differentiated by the result code, which is one of the standard PPAPI |
| 352 // result codes. | 361 // result codes. |
| 353 // | 362 // |
| 354 // The handler of this message should always close all of the handles passed | 363 // The handler of this message should always close all of the handles passed |
| 355 // in, since some could be valid even in the error case. | 364 // in, since some could be valid even in the error case. |
| 356 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, | 365 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
| 357 ppapi::HostResource /* audio_id */, | 366 ppapi::HostResource /* audio_id */, |
| 358 int32_t /* result_code (will be != PP_OK on failure) */, | 367 int32_t /* result_code (will be != PP_OK on failure) */, |
| 359 IPC::PlatformFileForTransit /* socket_handle */, | 368 ppapi::proxy::SerializedFileDescriptor /* socket_handle */, |
| 360 base::SharedMemoryHandle /* handle */, | 369 ppapi::proxy::SerializedSharedMemoryHandle /* handle */) |
| 361 int32_t /* length */) | |
| 362 | 370 |
| 363 // PPB_AudioInput_Dev. | 371 // PPB_AudioInput_Dev. |
| 364 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBAudioInput_EnumerateDevicesACK, | 372 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBAudioInput_EnumerateDevicesACK, |
| 365 ppapi::HostResource /* audio_input */, | 373 ppapi::HostResource /* audio_input */, |
| 366 int32_t /* result */, | 374 int32_t /* result */, |
| 367 std::vector<ppapi::DeviceRefData> /* devices */) | 375 std::vector<ppapi::DeviceRefData> /* devices */) |
| 368 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_OpenACK, | 376 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudioInput_OpenACK, |
| 369 ppapi::HostResource /* audio_input */, | 377 ppapi::HostResource /* audio_input */, |
| 370 int32_t /* result_code (will be != PP_OK on failure) */, | 378 int32_t /* result_code (will be != PP_OK on failure) */, |
| 371 IPC::PlatformFileForTransit /* socket_handle */, | 379 IPC::PlatformFileForTransit /* socket_handle */, |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 | 910 |
| 903 // PPB_ImageData. | 911 // PPB_ImageData. |
| 904 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, | 912 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create, |
| 905 PP_Instance /* instance */, | 913 PP_Instance /* instance */, |
| 906 int32 /* format */, | 914 int32 /* format */, |
| 907 PP_Size /* size */, | 915 PP_Size /* size */, |
| 908 PP_Bool /* init_to_zero */, | 916 PP_Bool /* init_to_zero */, |
| 909 ppapi::HostResource /* result_resource */, | 917 ppapi::HostResource /* result_resource */, |
| 910 std::string /* image_data_desc */, | 918 std::string /* image_data_desc */, |
| 911 ppapi::proxy::ImageHandle /* result */) | 919 ppapi::proxy::ImageHandle /* result */) |
| 920 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreateNaCl, |
| 921 PP_Instance /* instance */, |
| 922 int32 /* format */, |
| 923 PP_Size /* size */, |
| 924 PP_Bool /* init_to_zero */, |
| 925 ppapi::HostResource /* result_resource */, |
| 926 std::string /* image_data_desc */, |
| 927 base::SharedMemoryHandle /* result */) |
| 912 | 928 |
| 913 // PPB_Instance. | 929 // PPB_Instance. |
| 914 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, | 930 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, |
| 915 PP_Instance /* instance */, | 931 PP_Instance /* instance */, |
| 916 ppapi::proxy::SerializedVar /* result */) | 932 ppapi::proxy::SerializedVar /* result */) |
| 917 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, | 933 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, |
| 918 PP_Instance /* instance */, | 934 PP_Instance /* instance */, |
| 919 ppapi::proxy::SerializedVar /* result */) | 935 ppapi::proxy::SerializedVar /* result */) |
| 920 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, | 936 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, |
| 921 PP_Instance /* instance */, | 937 PP_Instance /* instance */, |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1429 | 1445 |
| 1430 // File chooser. | 1446 // File chooser. |
| 1431 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1447 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1432 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1448 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1433 bool /* save_as */, | 1449 bool /* save_as */, |
| 1434 bool /* open_multiple */, | 1450 bool /* open_multiple */, |
| 1435 std::string /* suggested_file_name */, | 1451 std::string /* suggested_file_name */, |
| 1436 std::vector<std::string> /* accept_mime_types */) | 1452 std::vector<std::string> /* accept_mime_types */) |
| 1437 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1453 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1438 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1454 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
| OLD | NEW |