OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_VIDEO_CAPTURE_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ |
6 #define PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ | 6 #define PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ppapi/c/dev/ppp_video_capture_dev.h" | 9 #include "ppapi/c/dev/ppp_video_capture_dev.h" |
10 #include "ppapi/proxy/device_enumeration_resource_helper.h" | 10 #include "ppapi/proxy/device_enumeration_resource_helper.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 PP_Instance instance, | 22 PP_Instance instance, |
23 PluginDispatcher* dispatcher); | 23 PluginDispatcher* dispatcher); |
24 virtual ~VideoCaptureResource(); | 24 virtual ~VideoCaptureResource(); |
25 | 25 |
26 // PluginResource override. | 26 // PluginResource override. |
27 virtual thunk::PPB_VideoCapture_API* AsPPB_VideoCapture_API() OVERRIDE { | 27 virtual thunk::PPB_VideoCapture_API* AsPPB_VideoCapture_API() OVERRIDE { |
28 return this; | 28 return this; |
29 } | 29 } |
30 | 30 |
31 // PPB_VideoCapture_API implementation. | 31 // PPB_VideoCapture_API implementation. |
32 virtual int32_t EnumerateDevices0_2( | |
33 PP_Resource* devices, | |
34 scoped_refptr<TrackedCallback> callback) OVERRIDE; | |
35 virtual int32_t EnumerateDevices( | 32 virtual int32_t EnumerateDevices( |
36 const PP_ArrayOutput& output, | 33 const PP_ArrayOutput& output, |
37 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 34 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
38 virtual int32_t MonitorDeviceChange( | 35 virtual int32_t MonitorDeviceChange( |
39 PP_MonitorDeviceChangeCallback callback, | 36 PP_MonitorDeviceChangeCallback callback, |
40 void* user_data) OVERRIDE; | 37 void* user_data) OVERRIDE; |
41 virtual int32_t Open(const std::string& device_id, | 38 virtual int32_t Open(const std::string& device_id, |
42 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | 39 const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
43 uint32_t buffer_count, | 40 uint32_t buffer_count, |
44 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 41 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 87 |
91 DeviceEnumerationResourceHelper enumeration_helper_; | 88 DeviceEnumerationResourceHelper enumeration_helper_; |
92 | 89 |
93 DISALLOW_COPY_AND_ASSIGN(VideoCaptureResource); | 90 DISALLOW_COPY_AND_ASSIGN(VideoCaptureResource); |
94 }; | 91 }; |
95 | 92 |
96 } // namespace proxy | 93 } // namespace proxy |
97 } // namespace ppapi | 94 } // namespace ppapi |
98 | 95 |
99 #endif // PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ | 96 #endif // PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ |
OLD | NEW |