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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ppapi/c/dev/ppp_video_capture_dev.h" | 12 #include "ppapi/c/dev/ppp_video_capture_dev.h" |
13 #include "ppapi/proxy/device_enumeration_resource_helper.h" | 13 #include "ppapi/proxy/device_enumeration_resource_helper.h" |
14 #include "ppapi/proxy/plugin_resource.h" | 14 #include "ppapi/proxy/plugin_resource.h" |
15 #include "ppapi/thunk/ppb_video_capture_api.h" | 15 #include "ppapi/thunk/ppb_video_capture_api.h" |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
18 namespace proxy { | 18 namespace proxy { |
19 | 19 |
| 20 class PluginDispatcher; |
| 21 |
20 class VideoCaptureResource | 22 class VideoCaptureResource |
21 : public PluginResource, | 23 : public PluginResource, |
22 public ::ppapi::thunk::PPB_VideoCapture_API { | 24 public ::ppapi::thunk::PPB_VideoCapture_API { |
23 public: | 25 public: |
24 VideoCaptureResource(Connection connection, | 26 VideoCaptureResource(Connection connection, |
25 PP_Instance instance, | 27 PP_Instance instance, |
26 PluginDispatcher* dispatcher); | 28 PluginDispatcher* dispatcher); |
27 ~VideoCaptureResource() override; | 29 ~VideoCaptureResource() override; |
28 | 30 |
29 // PluginResource override. | 31 // PluginResource override. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 92 |
91 DeviceEnumerationResourceHelper enumeration_helper_; | 93 DeviceEnumerationResourceHelper enumeration_helper_; |
92 | 94 |
93 DISALLOW_COPY_AND_ASSIGN(VideoCaptureResource); | 95 DISALLOW_COPY_AND_ASSIGN(VideoCaptureResource); |
94 }; | 96 }; |
95 | 97 |
96 } // namespace proxy | 98 } // namespace proxy |
97 } // namespace ppapi | 99 } // namespace ppapi |
98 | 100 |
99 #endif // PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ | 101 #endif // PPAPI_PROXY_VIDEO_CAPTURE_RESOURCE_H_ |
OLD | NEW |