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/cpp/completion_callback.h" | 9 #include "ppapi/cpp/completion_callback.h" |
10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
11 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 11 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" |
12 #include "ppapi/shared_impl/video_decoder_impl.h" | 12 #include "ppapi/shared_impl/video_decoder_impl.h" |
13 #include "ppapi/thunk/ppb_video_decoder_api.h" | 13 #include "ppapi/thunk/ppb_video_decoder_api.h" |
14 | 14 |
15 namespace pp { | 15 namespace ppapi { |
16 namespace proxy { | 16 namespace proxy { |
17 | 17 |
18 class PPB_VideoDecoder_Proxy : public InterfaceProxy { | 18 class PPB_VideoDecoder_Proxy : public InterfaceProxy { |
19 public: | 19 public: |
20 PPB_VideoDecoder_Proxy(Dispatcher* dispatcher, const void* target_interface); | 20 PPB_VideoDecoder_Proxy(Dispatcher* dispatcher, const void* target_interface); |
21 virtual ~PPB_VideoDecoder_Proxy(); | 21 virtual ~PPB_VideoDecoder_Proxy(); |
22 | 22 |
23 static const Info* GetInfo(); | 23 static const Info* GetInfo(); |
24 | 24 |
25 // Creates a VideoDecoder object in the plugin process. | 25 // Creates a VideoDecoder object in the plugin process. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void SendMsgResetACKToPlugin( | 62 void SendMsgResetACKToPlugin( |
63 int32_t result, const ppapi::HostResource& decoder); | 63 int32_t result, const ppapi::HostResource& decoder); |
64 | 64 |
65 // Message handlers in the plugin process to receive messages from the | 65 // Message handlers in the plugin process to receive messages from the |
66 // renderer process. | 66 // renderer process. |
67 void OnMsgEndOfBitstreamACK(const ppapi::HostResource& decoder, | 67 void OnMsgEndOfBitstreamACK(const ppapi::HostResource& decoder, |
68 int32_t id, int32_t result); | 68 int32_t id, int32_t result); |
69 void OnMsgFlushACK(const ppapi::HostResource& decoder, int32_t result); | 69 void OnMsgFlushACK(const ppapi::HostResource& decoder, int32_t result); |
70 void OnMsgResetACK(const ppapi::HostResource& decoder, int32_t result); | 70 void OnMsgResetACK(const ppapi::HostResource& decoder, int32_t result); |
71 | 71 |
72 CompletionCallbackFactory<PPB_VideoDecoder_Proxy, | 72 pp::CompletionCallbackFactory<PPB_VideoDecoder_Proxy, |
73 ProxyNonThreadSafeRefCount> callback_factory_; | 73 ProxyNonThreadSafeRefCount> callback_factory_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); | 75 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace proxy | 78 } // namespace proxy |
79 } // namespace pp | 79 } // namespace ppapi |
80 | 80 |
81 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ | 81 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ |
OLD | NEW |