cc: Prevent TransformTree::CombineTransformsBetween from scaling by 1/0
[chromium-blink-merge.git] / ppapi / proxy / camera_capabilities_resource.h
blob82e8df86275115ddf70406f055ce7183c1128e16
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_
8 #include <vector>
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"
16 namespace ppapi {
17 namespace proxy {
19 class PPAPI_PROXY_EXPORT CameraCapabilitiesResource
20 : public Resource,
21 public thunk::PPB_CameraCapabilities_API {
22 public:
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(
33 uint32_t* array_size,
34 PP_VideoCaptureFormat** formats) override;
36 private:
37 size_t num_video_capture_formats_;
38 scoped_ptr<PP_VideoCaptureFormat[]> video_capture_formats_;
40 DISALLOW_COPY_AND_ASSIGN(CameraCapabilitiesResource);
43 } // namespace proxy
44 } // namespace ppapi
46 #endif // PPAPI_PROXY_CAMERA_CAPABILITIES_RESOURCE_H_