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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 // result codes. | 414 // result codes. |
415 // | 415 // |
416 // The handler of this message should always close all of the handles passed | 416 // The handler of this message should always close all of the handles passed |
417 // in, since some could be valid even in the error case. | 417 // in, since some could be valid even in the error case. |
418 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, | 418 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, |
419 ppapi::HostResource /* audio_id */, | 419 ppapi::HostResource /* audio_id */, |
420 int32_t /* result_code (will be != PP_OK on failure) */, | 420 int32_t /* result_code (will be != PP_OK on failure) */, |
421 ppapi::proxy::SerializedHandle /* socket_handle */, | 421 ppapi::proxy::SerializedHandle /* socket_handle */, |
422 ppapi::proxy::SerializedHandle /* handle */) | 422 ppapi::proxy::SerializedHandle /* handle */) |
423 | 423 |
424 // PPB_FileIO. | |
425 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_GeneralComplete, | |
426 ppapi::HostResource /* file_io */, | |
427 int32_t /* result */) | |
428 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBFileIO_OpenFileComplete, | |
429 ppapi::HostResource /* file_io */, | |
430 int32_t /* result */) | |
431 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_QueryComplete, | |
432 ppapi::HostResource /* file_io */, | |
433 int32_t /* result */, | |
434 PP_FileInfo /* info */) | |
435 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBFileIO_ReadComplete, | |
436 ppapi::HostResource /* file_io */, | |
437 int32_t /* result */, | |
438 std::string /* data */) | |
439 | |
440 // PPB_FileRef. | 424 // PPB_FileRef. |
441 IPC_MESSAGE_ROUTED3( | 425 IPC_MESSAGE_ROUTED3( |
442 PpapiMsg_PPBFileRef_CallbackComplete, | 426 PpapiMsg_PPBFileRef_CallbackComplete, |
443 ppapi::HostResource /* resource */, | 427 ppapi::HostResource /* resource */, |
444 int /* callback_id */, | 428 int /* callback_id */, |
445 int32_t /* result */) | 429 int32_t /* result */) |
446 | 430 |
447 // PPB_FileSystem. | 431 // PPB_FileSystem. |
448 IPC_MESSAGE_ROUTED2( | 432 IPC_MESSAGE_ROUTED2( |
449 PpapiMsg_PPBFileSystem_OpenComplete, | 433 PpapiMsg_PPBFileSystem_OpenComplete, |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, | 783 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
800 ppapi::HostResource /* audio_id */, | 784 ppapi::HostResource /* audio_id */, |
801 bool /* play */) | 785 bool /* play */) |
802 | 786 |
803 // PPB_Core. | 787 // PPB_Core. |
804 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 788 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
805 ppapi::HostResource) | 789 ppapi::HostResource) |
806 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 790 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
807 ppapi::HostResource) | 791 ppapi::HostResource) |
808 | 792 |
809 // PPB_FileIO. | |
810 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, | |
811 PP_Instance /* instance */, | |
812 ppapi::HostResource /* result */) | |
813 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, | |
814 ppapi::HostResource /* host_resource */, | |
815 ppapi::HostResource /* file_ref_resource */, | |
816 int32_t /* open_flags */) | |
817 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, | |
818 ppapi::HostResource /* host_resource */) | |
819 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query, | |
820 ppapi::HostResource /* host_resource */) | |
821 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch, | |
822 ppapi::HostResource /* host_resource */, | |
823 PP_Time /* last_access_time */, | |
824 PP_Time /* last_modified_time */) | |
825 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read, | |
826 ppapi::HostResource /* host_resource */, | |
827 int64_t /* offset */, | |
828 int32_t /* bytes_to_read */) | |
829 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write, | |
830 ppapi::HostResource /* host_resource */, | |
831 int64_t /* offset */, | |
832 std::string /* data */) | |
833 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength, | |
834 ppapi::HostResource /* host_resource */, | |
835 int64_t /* length */) | |
836 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush, | |
837 ppapi::HostResource /* host_resource */) | |
838 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite, | |
839 ppapi::HostResource /* host_resource */, | |
840 int64_t /* offset */, | |
841 int32_t /* bytes_to_write */) | |
842 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength, | |
843 ppapi::HostResource /* host_resource */, | |
844 int64_t /* length */) | |
845 | |
846 // PPB_FileRef. | 793 // PPB_FileRef. |
847 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, | 794 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, |
848 ppapi::HostResource /* file_system */, | 795 ppapi::HostResource /* file_system */, |
849 std::string /* path */, | 796 std::string /* path */, |
850 ppapi::PPB_FileRef_CreateInfo /* result */) | 797 ppapi::PPB_FileRef_CreateInfo /* result */) |
851 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, | 798 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
852 ppapi::HostResource /* file_ref */, | 799 ppapi::HostResource /* file_ref */, |
853 ppapi::PPB_FileRef_CreateInfo /* result */) | 800 ppapi::PPB_FileRef_CreateInfo /* result */) |
854 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, | 801 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
855 ppapi::HostResource /* file_ref */, | 802 ppapi::HostResource /* file_ref */, |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 // File chooser. | 1397 // File chooser. |
1451 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1398 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1452 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1399 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1453 bool /* save_as */, | 1400 bool /* save_as */, |
1454 bool /* open_multiple */, | 1401 bool /* open_multiple */, |
1455 std::string /* suggested_file_name */, | 1402 std::string /* suggested_file_name */, |
1456 std::vector<std::string> /* accept_mime_types */) | 1403 std::vector<std::string> /* accept_mime_types */) |
1457 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1404 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1458 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1405 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
1459 | 1406 |
| 1407 // FileIO |
| 1408 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) |
| 1409 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, |
| 1410 PP_Resource /* file_ref_resource */, |
| 1411 int32_t /* open_flags */) |
| 1412 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply) |
| 1413 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close) |
| 1414 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query) |
| 1415 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */) |
| 1416 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, |
| 1417 PP_Time /* last_access_time */, |
| 1418 PP_Time /* last_modified_time */) |
| 1419 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Read, |
| 1420 int64_t /* offset */, |
| 1421 int32_t /* bytes_to_read */) |
| 1422 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_ReadReply, std::string /* data */) |
| 1423 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Write, |
| 1424 int64_t /* offset */, |
| 1425 std::string /* data */) |
| 1426 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, |
| 1427 int64_t /* length */) |
| 1428 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) |
| 1429 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_WillWrite, |
| 1430 int64_t /* offset */, |
| 1431 int32_t /* bytes_to_write */) |
| 1432 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, |
| 1433 int64_t /* length */) |
| 1434 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) |
| 1435 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, |
| 1436 int32_t /* file descriptor */) |
| 1437 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) |
| 1438 |
1460 // Flash device ID. | 1439 // Flash device ID. |
1461 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) | 1440 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) |
1462 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) | 1441 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) |
1463 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, | 1442 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, |
1464 std::string /* id */) | 1443 std::string /* id */) |
1465 | 1444 |
1466 // Gamepad. | 1445 // Gamepad. |
1467 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1446 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
1468 | 1447 |
1469 // Requests that the gamepad host send the shared memory handle to the plugin | 1448 // Requests that the gamepad host send the shared memory handle to the plugin |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 std::vector<ppapi::HostResource> /* buffers */, | 1666 std::vector<ppapi::HostResource> /* buffers */, |
1688 uint32_t /* buffer_size */) | 1667 uint32_t /* buffer_size */) |
1689 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1668 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1690 uint32_t /* status */) | 1669 uint32_t /* status */) |
1691 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1670 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1692 uint32_t /* error */) | 1671 uint32_t /* error */) |
1693 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1672 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1694 uint32_t /* buffer */) | 1673 uint32_t /* buffer */) |
1695 | 1674 |
1696 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1675 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |