Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 270213004: Implement Pepper PPB_VideoDecoder interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable some unit tests on Win 64 bit builds. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_graphics_3d_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_CONTROL3(PpapiHostMsg_VideoDecoder_Decode,
1835 uint32_t /* shm_id */,
1836 uint32_t /* size */,
1837 int32_t /* decode_id */)
1838 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply,
1839 uint32_t /* shm_id */)
1840 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_RequestTextures,
1841 uint32_t /* num_textures */,
1842 PP_Size /* size */,
1843 uint32_t /* texture_target */)
1844 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures,
1845 PP_Size /* size */,
1846 std::vector<uint32_t> /* texture_ids */)
1847 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoDecoder_PictureReady,
1848 int32_t /* decode_id */,
1849 uint32_t /* texture_id */)
1850 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture,
1851 uint32_t /* texture_id */)
1852 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
1853 uint32_t /* texture_id */)
1854 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
1855 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
1856 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
1857 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
1858 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
1859 int32_t /* error */)
1860
1817 #if !defined(OS_NACL) && !defined(NACL_WIN64) 1861 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1818 1862
1819 // Audio input. 1863 // Audio input.
1820 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) 1864 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
1821 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, 1865 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1822 std::string /* device_id */, 1866 std::string /* device_id */,
1823 PP_AudioSampleRate /* sample_rate */, 1867 PP_AudioSampleRate /* sample_rate */,
1824 uint32_t /* sample_frame_count */) 1868 uint32_t /* sample_frame_count */)
1825 // Reply to an Open call. This supplies a socket handle and a shared memory 1869 // Reply to an Open call. This supplies a socket handle and a shared memory
1826 // handle. Both handles are passed in the ReplyParams struct. 1870 // handle. Both handles are passed in the ReplyParams struct.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2162 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2119 PP_TalkPermission /* permission */) 2163 PP_TalkPermission /* permission */)
2120 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2164 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2121 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2165 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2122 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2166 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2123 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2167 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2124 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2168 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2125 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2169 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2126 2170
2127 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2171 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_graphics_3d_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698