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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // result codes. | 423 // result codes. |
424 // | 424 // |
425 // The handler of this message should always close all of the handles passed | 425 // The handler of this message should always close all of the handles passed |
426 // in, since some could be valid even in the error case. | 426 // in, since some could be valid even in the error case. |
427 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, | 427 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
428 ppapi::HostResource /* audio_id */, | 428 ppapi::HostResource /* audio_id */, |
429 int32_t /* result_code (will be != PP_OK on failure) */, | 429 int32_t /* result_code (will be != PP_OK on failure) */, |
430 ppapi::proxy::SerializedHandle /* socket_handle */, | 430 ppapi::proxy::SerializedHandle /* socket_handle */, |
431 ppapi::proxy::SerializedHandle /* handle */) | 431 ppapi::proxy::SerializedHandle /* handle */) |
432 | 432 |
433 // PPB_FileIO. | |
434 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete, | |
435 ppapi::HostResource /* file_io */, | |
436 int32_t /* result */) | |
437 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete, | |
438 ppapi::HostResource /* file_io */, | |
439 int32_t /* result */) | |
440 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete, | |
441 ppapi::HostResource /* file_io */, | |
442 int32_t /* result */, | |
443 PP_FileInfo /* info */) | |
444 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete, | |
445 ppapi::HostResource /* file_io */, | |
446 int32_t /* result */, | |
447 std::string /* data */) | |
448 | |
449 // PPB_FileRef. | 433 // PPB_FileRef. |
450 IPC_MESSAGE_ROUTED3( | 434 IPC_MESSAGE_ROUTED3( |
451 PpapiMsg_PPBFileRef_CallbackComplete, | 435 PpapiMsg_PPBFileRef_CallbackComplete, |
452 ppapi::HostResource /* resource */, | 436 ppapi::HostResource /* resource */, |
453 int /* callback_id */, | 437 int /* callback_id */, |
454 int32_t /* result */) | 438 int32_t /* result */) |
455 | 439 |
456 // PPB_FileSystem. | 440 // PPB_FileSystem. |
457 IPC_MESSAGE_ROUTED2( | 441 IPC_MESSAGE_ROUTED2( |
458 PpapiMsg_PPBFileSystem_OpenComplete, | 442 PpapiMsg_PPBFileSystem_OpenComplete, |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, | 781 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
798 ppapi::HostResource /* audio_id */, | 782 ppapi::HostResource /* audio_id */, |
799 bool /* play */) | 783 bool /* play */) |
800 | 784 |
801 // PPB_Core. | 785 // PPB_Core. |
802 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 786 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
803 ppapi::HostResource) | 787 ppapi::HostResource) |
804 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 788 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
805 ppapi::HostResource) | 789 ppapi::HostResource) |
806 | 790 |
807 // PPB_FileIO. | |
808 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, | |
809 PP_Instance /* instance */, | |
810 ppapi::HostResource /* result */) | |
811 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, | |
812 ppapi::HostResource /* host_resource */, | |
813 ppapi::HostResource /* file_ref_resource */, | |
814 int32_t /* open_flags */) | |
815 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, | |
816 ppapi::HostResource /* host_resource */) | |
817 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query, | |
818 ppapi::HostResource /* host_resource */) | |
819 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch, | |
820 ppapi::HostResource /* host_resource */, | |
821 PP_Time /* last_access_time */, | |
822 PP_Time /* last_modified_time */) | |
823 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read, | |
824 ppapi::HostResource /* host_resource */, | |
825 int64_t /* offset */, | |
826 int32_t /* bytes_to_read */) | |
827 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write, | |
828 ppapi::HostResource /* host_resource */, | |
829 int64_t /* offset */, | |
830 std::string /* data */) | |
831 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength, | |
832 ppapi::HostResource /* host_resource */, | |
833 int64_t /* length */) | |
834 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush, | |
835 ppapi::HostResource /* host_resource */) | |
836 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite, | |
837 ppapi::HostResource /* host_resource */, | |
838 int64_t /* offset */, | |
839 int32_t /* bytes_to_write */) | |
840 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength, | |
841 ppapi::HostResource /* host_resource */, | |
842 int64_t /* length */) | |
843 | |
844 // PPB_FileRef. | 791 // PPB_FileRef. |
845 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, | 792 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, |
846 ppapi::HostResource /* file_system */, | 793 ppapi::HostResource /* file_system */, |
847 std::string /* path */, | 794 std::string /* path */, |
848 ppapi::PPB_FileRef_CreateInfo /* result */) | 795 ppapi::PPB_FileRef_CreateInfo /* result */) |
849 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, | 796 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
850 ppapi::HostResource /* file_ref */, | 797 ppapi::HostResource /* file_ref */, |
851 ppapi::PPB_FileRef_CreateInfo /* result */) | 798 ppapi::PPB_FileRef_CreateInfo /* result */) |
852 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, | 799 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
853 ppapi::HostResource /* file_ref */, | 800 ppapi::HostResource /* file_ref */, |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 // File chooser. | 1340 // File chooser. |
1394 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1341 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1395 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1342 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1396 bool /* save_as */, | 1343 bool /* save_as */, |
1397 bool /* open_multiple */, | 1344 bool /* open_multiple */, |
1398 std::string /* suggested_file_name */, | 1345 std::string /* suggested_file_name */, |
1399 std::vector<std::string> /* accept_mime_types */) | 1346 std::vector<std::string> /* accept_mime_types */) |
1400 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1347 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1401 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1348 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
1402 | 1349 |
| 1350 // FileIO |
| 1351 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) |
| 1352 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, |
| 1353 PP_Resource /* file_ref_resource */, |
| 1354 int32_t /* open_flags */) |
| 1355 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply) |
| 1356 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close) |
| 1357 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query) |
| 1358 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */) |
| 1359 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, |
| 1360 PP_Time /* last_access_time */, |
| 1361 PP_Time /* last_modified_time */) |
| 1362 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Read, |
| 1363 int64_t /* offset */, |
| 1364 int32_t /* bytes_to_read */) |
| 1365 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_ReadReply, std::string /* data */) |
| 1366 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Write, |
| 1367 int64_t /* offset */, |
| 1368 std::string /* data */) |
| 1369 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, |
| 1370 int64_t /* length */) |
| 1371 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) |
| 1372 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_WillWrite, |
| 1373 int64_t /* offset */, |
| 1374 int32_t /* bytes_to_write */) |
| 1375 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, |
| 1376 int64_t /* length */) |
| 1377 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) |
| 1378 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, |
| 1379 int32_t /* file descriptor */) |
| 1380 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) |
| 1381 |
1403 // Flash device ID. | 1382 // Flash device ID. |
1404 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) | 1383 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) |
1405 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) | 1384 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) |
1406 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, | 1385 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, |
1407 std::string /* id */) | 1386 std::string /* id */) |
1408 | 1387 |
1409 // Gamepad. | 1388 // Gamepad. |
1410 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1389 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
1411 | 1390 |
1412 // Requests that the gamepad host send the shared memory handle to the plugin | 1391 // Requests that the gamepad host send the shared memory handle to the plugin |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1733 std::vector<ppapi::HostResource> /* buffers */, | 1712 std::vector<ppapi::HostResource> /* buffers */, |
1734 uint32_t /* buffer_size */) | 1713 uint32_t /* buffer_size */) |
1735 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1714 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1736 uint32_t /* status */) | 1715 uint32_t /* status */) |
1737 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1716 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1738 uint32_t /* error */) | 1717 uint32_t /* error */) |
1739 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1718 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1740 uint32_t /* buffer */) | 1719 uint32_t /* buffer */) |
1741 | 1720 |
1742 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1721 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |