1 // Copyright 2015 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_CAMERA_CAPABILITIES_RESOURCE_H_
6 #define PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "ppapi/proxy/ppapi_proxy_export.h"
13 #include "ppapi/shared_impl/resource.h"
14 #include "ppapi/thunk/ppb_camera_capabilities_api.h"
19 class PPAPI_PROXY_EXPORT CameraCapabilitiesResource
21 public thunk::PPB_CameraCapabilities_API
{
23 CameraCapabilitiesResource(PP_Instance instance
,
24 const std::vector
<PP_VideoCaptureFormat
>& formats
);
26 ~CameraCapabilitiesResource() override
;
28 // Resource overrides.
29 thunk::PPB_CameraCapabilities_API
* AsPPB_CameraCapabilities_API() override
;
31 // PPB_CameraCapabilities_API implementation.
32 void GetSupportedVideoCaptureFormats(
34 PP_VideoCaptureFormat
** formats
) override
;
37 size_t num_video_capture_formats_
;
38 scoped_ptr
<PP_VideoCaptureFormat
[]> video_capture_formats_
;
40 DISALLOW_COPY_AND_ASSIGN(CameraCapabilitiesResource
);
46 #endif // PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_