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_non_thread_safe_ref_count.h" | 10 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
11 #include "ppapi/shared_impl/ppb_video_decoder_shared.h" | 11 #include "ppapi/shared_impl/ppb_video_decoder_shared.h" |
12 #include "ppapi/thunk/ppb_video_decoder_api.h" | 12 #include "ppapi/thunk/ppb_video_decoder_api.h" |
13 #include "ppapi/utility/completion_callback_factory.h" | 13 #include "ppapi/utility/completion_callback_factory.h" |
14 | 14 |
15 namespace ppapi { | 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); | 20 PPB_VideoDecoder_Proxy(Dispatcher* dispatcher); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void SendMsgResetACKToPlugin( | 60 void SendMsgResetACKToPlugin( |
61 int32_t result, const ppapi::HostResource& decoder); | 61 int32_t result, const ppapi::HostResource& decoder); |
62 | 62 |
63 // Message handlers in the plugin process to receive messages from the | 63 // Message handlers in the plugin process to receive messages from the |
64 // renderer process. | 64 // renderer process. |
65 void OnMsgEndOfBitstreamACK(const ppapi::HostResource& decoder, | 65 void OnMsgEndOfBitstreamACK(const ppapi::HostResource& decoder, |
66 int32_t id, int32_t result); | 66 int32_t id, int32_t result); |
67 void OnMsgFlushACK(const ppapi::HostResource& decoder, int32_t result); | 67 void OnMsgFlushACK(const ppapi::HostResource& decoder, int32_t result); |
68 void OnMsgResetACK(const ppapi::HostResource& decoder, int32_t result); | 68 void OnMsgResetACK(const ppapi::HostResource& decoder, int32_t result); |
69 | 69 |
70 pp::CompletionCallbackFactory<PPB_VideoDecoder_Proxy, | 70 ProxyCompletionCallbackFactory<PPB_VideoDecoder_Proxy> callback_factory_; |
71 ProxyNonThreadSafeRefCount> callback_factory_; | |
72 | 71 |
73 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); | 72 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); |
74 }; | 73 }; |
75 | 74 |
76 } // namespace proxy | 75 } // namespace proxy |
77 } // namespace ppapi | 76 } // namespace ppapi |
78 | 77 |
79 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ | 78 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ |
OLD | NEW |