| 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #include "ppapi/shared_impl/url_response_info_data.h" | 66 #include "ppapi/shared_impl/url_response_info_data.h" |
| 67 | 67 |
| 68 #undef IPC_MESSAGE_EXPORT | 68 #undef IPC_MESSAGE_EXPORT |
| 69 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 69 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
| 70 | 70 |
| 71 #define IPC_MESSAGE_START PpapiMsgStart | 71 #define IPC_MESSAGE_START PpapiMsgStart |
| 72 | 72 |
| 73 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 73 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
| 74 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 74 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
| 75 IPC_ENUM_TRAITS(PP_DecryptorStreamType) | 75 IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
| 76 IPC_ENUM_TRAITS(PP_FileSystemType) |
| 76 IPC_ENUM_TRAITS(PP_FileType) | 77 IPC_ENUM_TRAITS(PP_FileType) |
| 77 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 78 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
| 78 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 79 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
| 79 IPC_ENUM_TRAITS(PP_FlashSetting) | 80 IPC_ENUM_TRAITS(PP_FlashSetting) |
| 80 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 81 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
| 81 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 82 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
| 82 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) | 83 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) |
| 83 IPC_ENUM_TRAITS(PP_NetworkListState_Private) | 84 IPC_ENUM_TRAITS(PP_NetworkListState_Private) |
| 84 IPC_ENUM_TRAITS(PP_NetworkListType_Private) | 85 IPC_ENUM_TRAITS(PP_NetworkListType_Private) |
| 85 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) | 86 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 ppapi::HostResource /* audio_id */, | 787 ppapi::HostResource /* audio_id */, |
| 787 bool /* play */) | 788 bool /* play */) |
| 788 | 789 |
| 789 // PPB_Core. | 790 // PPB_Core. |
| 790 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 791 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
| 791 ppapi::HostResource) | 792 ppapi::HostResource) |
| 792 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 793 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
| 793 ppapi::HostResource) | 794 ppapi::HostResource) |
| 794 | 795 |
| 795 // PPB_FileRef. | 796 // PPB_FileRef. |
| 796 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, | 797 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileRef_Create, |
| 797 ppapi::HostResource /* file_system */, | 798 PP_Instance /* instance */, |
| 799 PP_Resource /* file_system */, |
| 798 std::string /* path */, | 800 std::string /* path */, |
| 799 ppapi::PPB_FileRef_CreateInfo /* result */) | 801 ppapi::PPB_FileRef_CreateInfo /* result */) |
| 800 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, | 802 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, |
| 801 ppapi::HostResource /* file_ref */, | 803 ppapi::HostResource /* file_ref */, |
| 802 ppapi::PPB_FileRef_CreateInfo /* result */) | 804 ppapi::PPB_FileRef_CreateInfo /* result */) |
| 803 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, | 805 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, |
| 804 ppapi::HostResource /* file_ref */, | 806 ppapi::HostResource /* file_ref */, |
| 805 PP_Bool /* make_ancestors */, | 807 PP_Bool /* make_ancestors */, |
| 806 uint32_t /* callback_id */) | 808 uint32_t /* callback_id */) |
| 807 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, | 809 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, |
| 808 ppapi::HostResource /* file_ref */, | 810 ppapi::HostResource /* file_ref */, |
| 809 PP_Time /* last_access */, | 811 PP_Time /* last_access */, |
| 810 PP_Time /* last_modified */, | 812 PP_Time /* last_modified */, |
| 811 uint32_t /* callback_id */) | 813 uint32_t /* callback_id */) |
| 812 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, | 814 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, |
| 813 ppapi::HostResource /* file_ref */, | 815 ppapi::HostResource /* file_ref */, |
| 814 uint32_t /* callback_id */) | 816 uint32_t /* callback_id */) |
| 815 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, | 817 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, |
| 816 ppapi::HostResource /* file_ref */, | 818 ppapi::HostResource /* file_ref */, |
| 817 ppapi::HostResource /* new_file_ref */, | 819 ppapi::HostResource /* new_file_ref */, |
| 818 uint32_t /* callback_id */) | 820 uint32_t /* callback_id */) |
| 819 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query, | 821 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query, |
| 820 ppapi::HostResource /* file_ref */, | 822 ppapi::HostResource /* file_ref */, |
| 821 uint32_t /* callback_id */) | 823 uint32_t /* callback_id */) |
| 822 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, | 824 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, |
| 823 ppapi::HostResource /* file_ref */, | 825 ppapi::HostResource /* file_ref */, |
| 824 ppapi::proxy::SerializedVar /* result */) | 826 ppapi::proxy::SerializedVar /* result */) |
| 825 | 827 |
| 826 // PPB_FileSystem. | |
| 827 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create, | |
| 828 PP_Instance /* instance */, | |
| 829 int /* type */, | |
| 830 ppapi::HostResource /* result */) | |
| 831 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open, | |
| 832 ppapi::HostResource /* result */, | |
| 833 int64_t /* expected_size */) | |
| 834 | |
| 835 // PPB_Graphics3D. | 828 // PPB_Graphics3D. |
| 836 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, | 829 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, |
| 837 PP_Instance /* instance */, | 830 PP_Instance /* instance */, |
| 838 ppapi::HostResource /* share_context */, | 831 ppapi::HostResource /* share_context */, |
| 839 std::vector<int32_t> /* attrib_list */, | 832 std::vector<int32_t> /* attrib_list */, |
| 840 ppapi::HostResource /* result */) | 833 ppapi::HostResource /* result */) |
| 841 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, | 834 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, |
| 842 ppapi::HostResource /* context */) | 835 ppapi::HostResource /* context */) |
| 843 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, | 836 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
| 844 ppapi::HostResource /* context */, | 837 ppapi::HostResource /* context */, |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 int32_t /* bytes_to_write */) | 1381 int32_t /* bytes_to_write */) |
| 1389 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, | 1382 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, |
| 1390 int64_t /* length */) | 1383 int64_t /* length */) |
| 1391 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) | 1384 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) |
| 1392 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, | 1385 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, |
| 1393 int32_t /* file descriptor */) | 1386 int32_t /* file descriptor */) |
| 1394 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) | 1387 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) |
| 1395 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) | 1388 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) |
| 1396 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) | 1389 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) |
| 1397 | 1390 |
| 1391 // FileSystem |
| 1392 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create, |
| 1393 PP_FileSystemType /* type */) |
| 1394 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open, |
| 1395 int64_t /* expected_size */) |
| 1396 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply) |
| 1397 |
| 1398 // Flash device ID. | 1398 // Flash device ID. |
| 1399 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) | 1399 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) |
| 1400 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) | 1400 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) |
| 1401 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, | 1401 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, |
| 1402 std::string /* id */) | 1402 std::string /* id */) |
| 1403 | 1403 |
| 1404 // Gamepad. | 1404 // Gamepad. |
| 1405 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) | 1405 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) |
| 1406 | 1406 |
| 1407 // Requests that the gamepad host send the shared memory handle to the plugin | 1407 // Requests that the gamepad host send the shared memory handle to the plugin |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 std::vector<ppapi::HostResource> /* buffers */, | 1818 std::vector<ppapi::HostResource> /* buffers */, |
| 1819 uint32_t /* buffer_size */) | 1819 uint32_t /* buffer_size */) |
| 1820 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1820 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
| 1821 uint32_t /* status */) | 1821 uint32_t /* status */) |
| 1822 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1822 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
| 1823 uint32_t /* error */) | 1823 uint32_t /* error */) |
| 1824 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1824 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
| 1825 uint32_t /* buffer */) | 1825 uint32_t /* buffer */) |
| 1826 | 1826 |
| 1827 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1827 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |