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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // Creates a VideoDecoder object in the plugin process. | 23 // Creates a VideoDecoder object in the plugin process. |
24 static PP_Resource CreateProxyResource( | 24 static PP_Resource CreateProxyResource( |
25 PP_Instance instance, | 25 PP_Instance instance, |
26 PP_Resource graphics_context, | 26 PP_Resource graphics_context, |
27 PP_VideoDecoder_Profile profile); | 27 PP_VideoDecoder_Profile profile); |
28 | 28 |
29 // InterfaceProxy implementation. | 29 // InterfaceProxy implementation. |
30 virtual bool OnMessageReceived(const IPC::Message& msg); | 30 virtual bool OnMessageReceived(const IPC::Message& msg); |
31 | 31 |
32 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_VIDEO_DECODER_DEV; | 32 static const ApiID kApiID = API_ID_PPB_VIDEO_DECODER_DEV; |
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, |
(...skipping 27 matching lines...) Expand all Loading... |
70 pp::CompletionCallbackFactory<PPB_VideoDecoder_Proxy, | 70 pp::CompletionCallbackFactory<PPB_VideoDecoder_Proxy, |
71 ProxyNonThreadSafeRefCount> callback_factory_; | 71 ProxyNonThreadSafeRefCount> callback_factory_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); | 73 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace proxy | 76 } // namespace proxy |
77 } // namespace ppapi | 77 } // namespace ppapi |
78 | 78 |
79 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ | 79 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ |
OLD | NEW |