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

Side by Side Diff: ppapi/proxy/ppb_video_decoder_proxy.h

Issue 7844018: Revert 100748 - This patch tries to remove most of the manual registration for Pepper interfaces,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « ppapi/proxy/ppb_video_capture_proxy.cc ('k') | ppapi/proxy/ppb_video_decoder_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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, const void* target_interface);
21 virtual ~PPB_VideoDecoder_Proxy(); 21 virtual ~PPB_VideoDecoder_Proxy();
22 22
23 static const Info* GetInfo();
24
23 // Creates a VideoDecoder object in the plugin process. 25 // Creates a VideoDecoder object in the plugin process.
24 static PP_Resource CreateProxyResource( 26 static PP_Resource CreateProxyResource(
25 PP_Instance instance, 27 PP_Instance instance,
26 PP_Resource graphics_context, 28 PP_Resource graphics_context,
27 PP_VideoDecoder_Profile profile); 29 PP_VideoDecoder_Profile profile);
28 30
29 // InterfaceProxy implementation. 31 // InterfaceProxy implementation.
30 virtual bool OnMessageReceived(const IPC::Message& msg); 32 virtual bool OnMessageReceived(const IPC::Message& msg);
31 33
32 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_VIDEO_DECODER_DEV; 34 const PPB_VideoDecoder_Dev* ppb_video_decoder_target() const {
35 return static_cast<const PPB_VideoDecoder_Dev*>(target_interface());
36 }
33 37
34 private: 38 private:
35 // Message handlers in the renderer process to receive messages from the 39 // Message handlers in the renderer process to receive messages from the
36 // plugin process. 40 // plugin process.
37 void OnMsgCreate(PP_Instance instance, 41 void OnMsgCreate(PP_Instance instance,
38 const ppapi::HostResource& graphics_context, 42 const ppapi::HostResource& graphics_context,
39 PP_VideoDecoder_Profile profile, 43 PP_VideoDecoder_Profile profile,
40 ppapi::HostResource* result); 44 ppapi::HostResource* result);
41 void OnMsgDecode( 45 void OnMsgDecode(
42 const ppapi::HostResource& decoder, 46 const ppapi::HostResource& decoder,
(...skipping 27 matching lines...) Expand all
70 pp::CompletionCallbackFactory<PPB_VideoDecoder_Proxy, 74 pp::CompletionCallbackFactory<PPB_VideoDecoder_Proxy,
71 ProxyNonThreadSafeRefCount> callback_factory_; 75 ProxyNonThreadSafeRefCount> callback_factory_;
72 76
73 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy); 77 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Proxy);
74 }; 78 };
75 79
76 } // namespace proxy 80 } // namespace proxy
77 } // namespace ppapi 81 } // namespace ppapi
78 82
79 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_ 83 #endif // PPAPI_PROXY_PPB_VIDEO_DECODER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_video_capture_proxy.cc ('k') | ppapi/proxy/ppb_video_decoder_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698