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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) | 115 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) |
114 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) | 116 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) |
115 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) | 117 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) |
116 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) | 118 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) |
117 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) | 119 IPC_ENUM_TRAITS(PP_TrueTypeFontCharset_Dev) |
118 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, | 120 IPC_ENUM_TRAITS_MAX_VALUE(PP_UDPSocket_Option, |
119 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) | 121 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE) |
120 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) | 122 IPC_ENUM_TRAITS(PP_VideoDecodeError_Dev) |
121 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) | 123 IPC_ENUM_TRAITS(PP_VideoDecoder_Profile) |
122 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) | 124 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoFrame_Format, PP_VIDEOFRAME_FORMAT_LAST) |
| 125 IPC_ENUM_TRAITS_MAX_VALUE(PP_VideoProfile, PP_VIDEOPROFILE_MAX) |
123 | 126 |
124 IPC_STRUCT_TRAITS_BEGIN(PP_Point) | 127 IPC_STRUCT_TRAITS_BEGIN(PP_Point) |
125 IPC_STRUCT_TRAITS_MEMBER(x) | 128 IPC_STRUCT_TRAITS_MEMBER(x) |
126 IPC_STRUCT_TRAITS_MEMBER(y) | 129 IPC_STRUCT_TRAITS_MEMBER(y) |
127 IPC_STRUCT_TRAITS_END() | 130 IPC_STRUCT_TRAITS_END() |
128 | 131 |
129 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) | 132 IPC_STRUCT_TRAITS_BEGIN(PP_FloatPoint) |
130 IPC_STRUCT_TRAITS_MEMBER(x) | 133 IPC_STRUCT_TRAITS_MEMBER(x) |
131 IPC_STRUCT_TRAITS_MEMBER(y) | 134 IPC_STRUCT_TRAITS_MEMBER(y) |
132 IPC_STRUCT_TRAITS_END() | 135 IPC_STRUCT_TRAITS_END() |
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1802 | 1805 |
1803 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create) | 1806 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_Create) |
1804 IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection, | 1807 IPC_MESSAGE_CONTROL1(PpapiHostMsg_OutputProtection_EnableProtection, |
1805 uint32_t /* desired_method_mask */) | 1808 uint32_t /* desired_method_mask */) |
1806 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply) | 1809 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_OutputProtection_EnableProtectionReply) |
1807 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus) | 1810 IPC_MESSAGE_CONTROL0(PpapiHostMsg_OutputProtection_QueryStatus) |
1808 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply, | 1811 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_OutputProtection_QueryStatusReply, |
1809 uint32_t /* link_mask */, | 1812 uint32_t /* link_mask */, |
1810 uint32_t /* protection_mask */) | 1813 uint32_t /* protection_mask */) |
1811 | 1814 |
| 1815 // VideoDecoder ------------------------------------------------------ |
| 1816 |
| 1817 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Create) |
| 1818 IPC_MESSAGE_CONTROL3(PpapiHostMsg_VideoDecoder_Initialize, |
| 1819 ppapi::HostResource /* graphics_context */, |
| 1820 PP_VideoProfile /* profile */, |
| 1821 bool /* allow_software_fallback */) |
| 1822 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_InitializeReply) |
| 1823 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_GetShm, |
| 1824 uint32_t /* shm_id */, |
| 1825 uint32_t /* shm_size */) |
| 1826 // On success, a shm handle is passed in the ReplyParams struct. |
| 1827 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_GetShmReply, |
| 1828 uint32_t /* shm_size */) |
| 1829 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_Decode, |
| 1830 uint32_t /* shm_id */, |
| 1831 uint32_t /* size */) |
| 1832 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply, |
| 1833 uint32_t /* shm_id */) |
| 1834 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_RequestTextures, |
| 1835 uint32_t /* num_textures */, |
| 1836 PP_Size /* size */, |
| 1837 uint32_t /* texture_target */) |
| 1838 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures, |
| 1839 PP_Size /* size */, |
| 1840 std::vector<uint32_t> /* texture_ids */) |
| 1841 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoDecoder_PictureReady, |
| 1842 uint32_t /* decode_id */, |
| 1843 uint32_t /* texture_id */) |
| 1844 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture, |
| 1845 uint32_t /* texture_id */) |
| 1846 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture, |
| 1847 uint32_t /* texture_id */) |
| 1848 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush) |
| 1849 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply) |
| 1850 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset) |
| 1851 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply) |
| 1852 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError, |
| 1853 int32_t /* error */) |
| 1854 |
1812 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 1855 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
1813 | 1856 |
1814 // Audio input. | 1857 // Audio input. |
1815 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) | 1858 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) |
1816 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, | 1859 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, |
1817 std::string /* device_id */, | 1860 std::string /* device_id */, |
1818 PP_AudioSampleRate /* sample_rate */, | 1861 PP_AudioSampleRate /* sample_rate */, |
1819 uint32_t /* sample_frame_count */) | 1862 uint32_t /* sample_frame_count */) |
1820 // Reply to an Open call. This supplies a socket handle and a shared memory | 1863 // Reply to an Open call. This supplies a socket handle and a shared memory |
1821 // handle. Both handles are passed in the ReplyParams struct. | 1864 // handle. Both handles are passed in the ReplyParams struct. |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2113 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2156 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2114 PP_TalkPermission /* permission */) | 2157 PP_TalkPermission /* permission */) |
2115 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2158 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2116 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2159 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2117 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2160 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2118 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2161 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2119 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2162 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2120 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2163 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2121 | 2164 |
2122 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2165 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |