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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
811 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, | 795 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
812 ppapi::HostResource /* audio_id */, | 796 ppapi::HostResource /* audio_id */, |
813 bool /* play */) | 797 bool /* play */) |
814 | 798 |
815 // PPB_Core. | 799 // PPB_Core. |
816 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 800 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
817 ppapi::HostResource) | 801 ppapi::HostResource) |
818 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 802 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
819 ppapi::HostResource) | 803 ppapi::HostResource) |
820 | 804 |
821 // PPB_FileIO. | |
822 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileIO_Create, | |
823 PP_Instance /* instance */, | |
824 ppapi::HostResource /* result */) | |
825 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Open, | |
826 ppapi::HostResource /* host_resource */, | |
827 ppapi::HostResource /* file_ref_resource */, | |
828 int32_t /* open_flags */) | |
829 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Close, | |
830 ppapi::HostResource /* host_resource */) | |
831 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Query, | |
832 ppapi::HostResource /* host_resource */) | |
833 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Touch, | |
834 ppapi::HostResource /* host_resource */, | |
835 PP_Time /* last_access_time */, | |
836 PP_Time /* last_modified_time */) | |
837 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Read, | |
838 ppapi::HostResource /* host_resource */, | |
839 int64_t /* offset */, | |
840 int32_t /* bytes_to_read */) | |
841 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_Write, | |
842 ppapi::HostResource /* host_resource */, | |
843 int64_t /* offset */, | |
844 std::string /* data */) | |
845 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_SetLength, | |
846 ppapi::HostResource /* host_resource */, | |
847 int64_t /* length */) | |
848 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFileIO_Flush, | |
849 ppapi::HostResource /* host_resource */) | |
850 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileIO_WillWrite, | |
851 ppapi::HostResource /* host_resource */, | |
852 int64_t /* offset */, | |
853 int32_t /* bytes_to_write */) | |
854 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileIO_WillSetLength, | |
855 ppapi::HostResource /* host_resource */, | |
856 int64_t /* length */) | |
857 | |
858 // PPB_FileRef. | 805 // PPB_FileRef. |
859 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, | 806 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, |
860 ppapi::HostResource /* file_system */, | 807 ppapi::HostResource /* file_system */, |
861 std::string /* path */, | 808 std::string /* path */, |
862 ppapi::PPB_FileRef_CreateInfo /* result */) | 809 ppapi::PPB_FileRef_CreateInfo /* result */) |
863 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, | 810 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
864 ppapi::HostResource /* file_ref */, | 811 ppapi::HostResource /* file_ref */, |
865 ppapi::PPB_FileRef_CreateInfo /* result */) | 812 ppapi::PPB_FileRef_CreateInfo /* result */) |
866 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, | 813 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
867 ppapi::HostResource /* file_ref */, | 814 ppapi::HostResource /* file_ref */, |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1502 // File chooser. | 1449 // File chooser. |
1503 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1450 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1504 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1451 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1505 bool /* save_as */, | 1452 bool /* save_as */, |
1506 bool /* open_multiple */, | 1453 bool /* open_multiple */, |
1507 std::string /* suggested_file_name */, | 1454 std::string /* suggested_file_name */, |
1508 std::vector<std::string> /* accept_mime_types */) | 1455 std::vector<std::string> /* accept_mime_types */) |
1509 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1456 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1510 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1457 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
1511 | 1458 |
1459 // FileIO, Plugin -> Host. | |
1460 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) | |
1461 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, | |
1462 PP_Resource /* file_ref_resource */, | |
1463 int32_t /* open_flags */) | |
1464 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close) | |
1465 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query) | |
1466 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, | |
1467 PP_Time /* last_access_time */, | |
1468 PP_Time /* last_modified_time */) | |
1469 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Read, | |
1470 int64_t /* offset */, | |
1471 int32_t /* bytes_to_read */) | |
1472 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Write, | |
1473 int64_t /* offset */, | |
1474 std::string /* data */) | |
1475 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, | |
1476 int64_t /* length */) | |
1477 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) | |
1478 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_WillWrite, | |
1479 int64_t /* offset */, | |
1480 int32_t /* bytes_to_write */) | |
1481 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, | |
1482 int64_t /* length */) | |
1483 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) | |
1484 | |
1485 // FileIO, Host -> Plugin. | |
raymes
2012/11/29 00:50:58
nit: I would just group these together in the same
victorhsieh
2012/11/29 06:34:55
Done.
| |
1486 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralComplete) | |
1487 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenFileComplete) | |
1488 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryComplete, | |
1489 PP_FileInfo /* info */) | |
1490 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_ReadComplete, | |
1491 std::string /* data */) | |
1492 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, | |
1493 int32_t /* file descriptor */) | |
1494 | |
1512 // Flash device ID. | 1495 // Flash device ID. |
1513 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) | 1496 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) |
1514 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) | 1497 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) |
1515 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, | 1498 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, |
1516 std::string /* id */) | 1499 std::string /* id */) |
1517 | 1500 |
1518 // Gamepad. | 1501 // Gamepad. |
1519 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1502 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
1520 | 1503 |
1521 // Requests that the gamepad host send the shared memory handle to the plugin | 1504 // Requests that the gamepad host send the shared memory handle to the plugin |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1698 std::vector<ppapi::HostResource> /* buffers */, | 1681 std::vector<ppapi::HostResource> /* buffers */, |
1699 uint32_t /* buffer_size */) | 1682 uint32_t /* buffer_size */) |
1700 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1683 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1701 uint32_t /* status */) | 1684 uint32_t /* status */) |
1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1685 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1703 uint32_t /* error */) | 1686 uint32_t /* error */) |
1704 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1687 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1705 uint32_t /* buffer */) | 1688 uint32_t /* buffer */) |
1706 | 1689 |
1707 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1690 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |