OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/proxy/interface_proxy.h" | 9 #include "ppapi/proxy/interface_proxy.h" |
10 #include "ppapi/proxy/proxy_completion_callback_factory.h" | 10 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 private: | 34 private: |
35 // Message handlers in the renderer process to receive messages from the | 35 // Message handlers in the renderer process to receive messages from the |
36 // plugin process. | 36 // plugin process. |
37 void OnMsgCreate(PP_Instance instance, | 37 void OnMsgCreate(PP_Instance instance, |
38 const ppapi::HostResource& graphics_context, | 38 const ppapi::HostResource& graphics_context, |
39 PP_VideoDecoder_Profile profile, | 39 PP_VideoDecoder_Profile profile, |
40 ppapi::HostResource* result); | 40 ppapi::HostResource* result); |
41 void OnMsgDecode( | 41 void OnMsgDecode( |
42 const ppapi::HostResource& decoder, | 42 const ppapi::HostResource& decoder, |
43 const ppapi::HostResource& buffer, int32 id, int32 size); | 43 const ppapi::HostResource& buffer, int32 id, uint32 size); |
44 void OnMsgAssignPictureBuffers( | 44 void OnMsgAssignPictureBuffers( |
45 const ppapi::HostResource& decoder, | 45 const ppapi::HostResource& decoder, |
46 const std::vector<PP_PictureBuffer_Dev>& buffers); | 46 const std::vector<PP_PictureBuffer_Dev>& buffers); |
47 void OnMsgReusePictureBuffer( | 47 void OnMsgReusePictureBuffer( |
48 const ppapi::HostResource& decoder, | 48 const ppapi::HostResource& decoder, |
49 int32 picture_buffer_id); | 49 int32 picture_buffer_id); |
50 void OnMsgFlush(const ppapi::HostResource& decoder); | 50 void OnMsgFlush(const ppapi::HostResource& decoder); |
51 void OnMsgReset(const ppapi::HostResource& decoder); | 51 void OnMsgReset(const ppapi::HostResource& decoder); |
52 void OnMsgDestroy(const ppapi::HostResource& decoder); | 52 void OnMsgDestroy(const ppapi::HostResource& decoder); |
53 | 53 |
(...skipping 15 matching lines...) Expand all Loading... |
69 | 69 |
70 ProxyCompletionCallbackFactory<PPB_VideoDecoder_Proxy> callback_factory_; | 70 ProxyCompletionCallbackFactory<PPB_VideoDecoder_Proxy> callback_factory_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); | 72 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace proxy | 75 } // namespace proxy |
76 } // namespace ppapi | 76 } // namespace ppapi |
77 | 77 |
78 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ | 78 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ |
OLD | NEW |