| 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 <map> | 6 #include <map> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
| 13 #include "base/process/process.h" | 13 #include "base/process/process.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "gpu/command_buffer/common/command_buffer.h" | 17 #include "gpu/command_buffer/common/command_buffer.h" |
| 18 #include "gpu/command_buffer/common/mailbox.h" |
| 18 #include "gpu/ipc/gpu_command_buffer_traits.h" | 19 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 19 #include "ipc/ipc_channel_handle.h" | 20 #include "ipc/ipc_channel_handle.h" |
| 20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
| 21 #include "ipc/ipc_message_utils.h" | 22 #include "ipc/ipc_message_utils.h" |
| 22 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
| 23 #include "ppapi/c/dev/pp_video_capture_dev.h" | 24 #include "ppapi/c/dev/pp_video_capture_dev.h" |
| 24 #include "ppapi/c/dev/pp_video_dev.h" | 25 #include "ppapi/c/dev/pp_video_dev.h" |
| 25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 26 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 26 #include "ppapi/c/dev/ppb_url_util_dev.h" | 27 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| 27 #include "ppapi/c/dev/ppp_printing_dev.h" | 28 #include "ppapi/c/dev/ppp_printing_dev.h" |
| 28 #include "ppapi/c/pp_bool.h" | 29 #include "ppapi/c/pp_bool.h" |
| 30 #include "ppapi/c/pp_codecs.h" |
| 29 #include "ppapi/c/pp_file_info.h" | 31 #include "ppapi/c/pp_file_info.h" |
| 30 #include "ppapi/c/pp_instance.h" | 32 #include "ppapi/c/pp_instance.h" |
| 31 #include "ppapi/c/pp_module.h" | 33 #include "ppapi/c/pp_module.h" |
| 32 #include "ppapi/c/pp_point.h" | 34 #include "ppapi/c/pp_point.h" |
| 33 #include "ppapi/c/pp_rect.h" | 35 #include "ppapi/c/pp_rect.h" |
| 34 #include "ppapi/c/pp_resource.h" | 36 #include "ppapi/c/pp_resource.h" |
| 35 #include "ppapi/c/pp_size.h" | 37 #include "ppapi/c/pp_size.h" |
| 36 #include "ppapi/c/pp_time.h" | 38 #include "ppapi/c/pp_time.h" |
| 37 #include "ppapi/c/ppb_audio_config.h" | 39 #include "ppapi/c/ppb_audio_config.h" |
| 38 #include "ppapi/c/ppb_image_data.h" | 40 #include "ppapi/c/ppb_image_data.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) | 116 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) |
| 115 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 117 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
| 116 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 118 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
| 117 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 119 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
| 118 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 120 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
| 119 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, | 121 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
| 120 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) | 122 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) |
| 121 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 123 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
| 122 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 124 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
| 123 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) | 125 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
| 126 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
| 124 | 127 |
| 125 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 128 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
| 126 IPC_STRUCT_TRAITS_MEMBER(x) | 129 IPC_STRUCT_TRAITS_MEMBER(x) |
| 127 IPC_STRUCT_TRAITS_MEMBER(y) | 130 IPC_STRUCT_TRAITS_MEMBER(y) |
| 128 IPC_STRUCT_TRAITS_END() | 131 IPC_STRUCT_TRAITS_END() |
| 129 | 132 |
| 130 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 133 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
| 131 IPC_STRUCT_TRAITS_MEMBER(x) | 134 IPC_STRUCT_TRAITS_MEMBER(x) |
| 132 IPC_STRUCT_TRAITS_MEMBER(y) | 135 IPC_STRUCT_TRAITS_MEMBER(y) |
| 133 IPC_STRUCT_TRAITS_END() | 136 IPC_STRUCT_TRAITS_END() |
| (...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 | 1810 |
| 1808 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create) | 1811 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create) |
| 1809 IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection, | 1812 IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection, |
| 1810 uint32_t /* desired_method_mask */) | 1813 uint32_t /* desired_method_mask */) |
| 1811 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply) | 1814 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply) |
| 1812 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus) | 1815 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus) |
| 1813 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply, | 1816 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply, |
| 1814 uint32_t /* link_mask */, | 1817 uint32_t /* link_mask */, |
| 1815 uint32_t /* protection_mask */) | 1818 uint32_t /* protection_mask */) |
| 1816 | 1819 |
| 1820 // VideoDecoder ------------------------------------------------------ |
| 1821 |
| 1822 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create) |
| 1823 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Initialize, |
| 1824 ppapi::HostResource /* graphics_context */, |
| 1825 PP_VideoProfile /* profile */, |
| 1826 bool /* allow_software_fallback */) |
| 1827 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply) |
| 1828 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm, |
| 1829 uint32_t /* shm_id */, |
| 1830 uint32_t /* shm_size */) |
| 1831 // On success, a shm handle is passed in the ReplyParams struct. |
| 1832 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply, |
| 1833 uint32_t /* shm_size */) |
| 1834 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_Decode, |
| 1835 uint32_t /* shm_id */, |
| 1836 uint32_t /* size */) |
| 1837 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply, |
| 1838 uint32_t /* shm_id */) |
| 1839 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_RequestTextures, |
| 1840 uint32_t /* num_textures */, |
| 1841 PP_Size /* size */, |
| 1842 uint32_t /* texture_target */) |
| 1843 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures, |
| 1844 PP_Size /* size */, |
| 1845 std::vector<uint32_t> /* texture_ids */) |
| 1846 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoDecoder_PictureReady, |
| 1847 int32_t /* decode_id */, |
| 1848 uint32_t /* texture_id */) |
| 1849 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture, |
| 1850 uint32_t /* texture_id */) |
| 1851 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture, |
| 1852 uint32_t /* texture_id */) |
| 1853 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush) |
| 1854 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply) |
| 1855 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset) |
| 1856 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) |
| 1857 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, |
| 1858 int32_t /* error */) |
| 1859 |
| 1817 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1860 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 1818 | 1861 |
| 1819 // Audio input. | 1862 // Audio input. |
| 1820 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) | 1863 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) |
| 1821 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, | 1864 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, |
| 1822 std::string /* device_id */, | 1865 std::string /* device_id */, |
| 1823 PP_AudioSampleRate /* sample_rate */, | 1866 PP_AudioSampleRate /* sample_rate */, |
| 1824 uint32_t /* sample_frame_count */) | 1867 uint32_t /* sample_frame_count */) |
| 1825 // Reply to an Open call. This supplies a socket handle and a shared memory | 1868 // Reply to an Open call. This supplies a socket handle and a shared memory |
| 1826 // handle. Both handles are passed in the ReplyParams struct. | 1869 // handle. Both handles are passed in the ReplyParams struct. |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2161 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
| 2119 PP_TalkPermission /* permission */) | 2162 PP_TalkPermission /* permission */) |
| 2120 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2163 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
| 2121 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2164 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
| 2122 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2165 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
| 2123 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2166 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
| 2124 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2167 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
| 2125 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2168 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
| 2126 | 2169 |
| 2127 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2170 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |