Respect --profile-directory flag when used with --show-app-list flag.
[chromium-blink-merge.git] / ppapi / proxy / ppp_video_decoder_proxy.h
blob54beac127969b8a4dfe4410c14188e451e99925d
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_PPP_VIDEO_DECODER_PROXY_H_
6 #define PPAPI_PROXY_PPP_VIDEO_DECODER_PROXY_H_
8 #include "ppapi/c/dev/ppp_video_decoder_dev.h"
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/proxy/interface_proxy.h"
11 #include "ppapi/shared_impl/host_resource.h"
13 struct PP_Picture_Dev;
14 struct PP_Size;
16 namespace ppapi {
17 namespace proxy {
19 class PPP_VideoDecoder_Proxy : public InterfaceProxy {
20 public:
21 PPP_VideoDecoder_Proxy(Dispatcher* dispatcher);
22 virtual ~PPP_VideoDecoder_Proxy();
24 static const PPP_VideoDecoder_Dev* GetProxyInterface();
26 // InterfaceProxy implementation.
27 virtual bool OnMessageReceived(const IPC::Message& msg);
29 private:
30 // Message handlers.
31 void OnMsgProvidePictureBuffers(const ppapi::HostResource& decoder,
32 uint32_t req_num_of_buffers,
33 const PP_Size& dimensions,
34 uint32_t texture_target);
35 void OnMsgDismissPictureBuffer(const ppapi::HostResource& decoder,
36 int32_t picture_id);
37 void OnMsgPictureReady(const ppapi::HostResource& decoder,
38 const PP_Picture_Dev& picture_buffer);
39 void OnMsgNotifyError(const ppapi::HostResource& decoder,
40 PP_VideoDecodeError_Dev error);
42 // When this proxy is in the plugin side, this value caches the interface
43 // pointer so we don't have to retrieve it from the dispatcher each time.
44 // In the host, this value is always NULL.
45 const PPP_VideoDecoder_Dev* ppp_video_decoder_impl_;
47 DISALLOW_COPY_AND_ASSIGN(PPP_VideoDecoder_Proxy);
50 } // namespace proxy
51 } // namespace ppapi
53 #endif // PPAPI_PROXY_PPP_VIDEO_DECODER_PROXY_H_