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

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: Rebase. Created 6 years, 7 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 // Decode in the case where a shm buffer must be created or resized. Contains
1824 // the buffer data and the id indicating whether to create or resize a buffer.
1825 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_DecodeBuffer,
1826 std::vector<uint8_t> /* buffer */,
1827 uint32_t /* pending_shm_id */)
1828 // Unsolicited reply to a DecodeBuffer message. On success, contains a shared
1829 // memory handle.
1830 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_CreatedShm,
1831 uint32_t /* size */)
1832 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_Decode,
1833 uint32_t /* shm_id */,
1834 uint32_t /* size */)
1835 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DecodeReply,
1836 uint32_t /* shm_id */)
1837 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_VideoDecoder_RequestTextures,
1838 uint32_t /* num_textures */,
1839 PP_Size /* size */,
1840 uint32_t /* texture_target */)
1841 IPC_MESSAGE_CONTROL2(PpapiHostMsg_VideoDecoder_AssignTextures,
1842 PP_Size /* size */,
1843 std::vector<uint32_t> /* texture_ids */)
1844 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_VideoDecoder_PictureReady,
1845 uint32_t /* decode_id */,
1846 uint32_t /* texture_id */)
1847 IPC_MESSAGE_CONTROL1(PpapiHostMsg_VideoDecoder_RecyclePicture,
1848 uint32_t /* texture_id */)
1849 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_DismissPicture,
1850 uint32_t /* texture_id */)
1851 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Flush)
1852 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_FlushReply)
1853 IPC_MESSAGE_CONTROL0(PpapiHostMsg_VideoDecoder_Reset)
1854 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_VideoDecoder_ResetReply)
1855 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoDecoder_NotifyError,
1856 int32_t /* error */)
1857
1812 #if !defined(OS_NACL) && !defined(NACL_WIN64) 1858 #if !defined(OS_NACL) && !defined(NACL_WIN64)
1813 1859
1814 // Audio input. 1860 // Audio input.
1815 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create) 1861 IPC_MESSAGE_CONTROL0(PpapiHostMsg_AudioInput_Create)
1816 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open, 1862 IPC_MESSAGE_CONTROL3(PpapiHostMsg_AudioInput_Open,
1817 std::string /* device_id */, 1863 std::string /* device_id */,
1818 PP_AudioSampleRate /* sample_rate */, 1864 PP_AudioSampleRate /* sample_rate */,
1819 uint32_t /* sample_frame_count */) 1865 uint32_t /* sample_frame_count */)
1820 // Reply to an Open call. This supplies a socket handle and a shared memory 1866 // Reply to an Open call. This supplies a socket handle and a shared memory
1821 // handle. Both handles are passed in the ReplyParams struct. 1867 // handle. Both handles are passed in the ReplyParams struct.
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2159 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2114 PP_TalkPermission /* permission */) 2160 PP_TalkPermission /* permission */)
2115 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2161 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2116 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2162 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2117 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2163 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2118 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2164 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2119 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2165 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2120 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2166 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2121 2167
2122 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2168 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698