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 CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/public/renderer/renderer_ppapi_host.h" | 10 #include "content/public/renderer/renderer_ppapi_host.h" |
11 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" | 11 #include "content/renderer/pepper/pepper_device_enumeration_host_helper.h" |
| 12 #include "content/renderer/pepper/plugin_delegate.h" |
| 13 #include "content/renderer/pepper/ppb_buffer_impl.h" |
12 #include "media/video/capture/video_capture.h" | 14 #include "media/video/capture/video_capture.h" |
13 #include "media/video/capture/video_capture_types.h" | 15 #include "media/video/capture/video_capture_types.h" |
14 #include "ppapi/c/dev/ppp_video_capture_dev.h" | 16 #include "ppapi/c/dev/ppp_video_capture_dev.h" |
15 #include "ppapi/host/host_message_context.h" | 17 #include "ppapi/host/host_message_context.h" |
16 #include "ppapi/host/resource_host.h" | 18 #include "ppapi/host/resource_host.h" |
17 #include "webkit/plugins/ppapi/plugin_delegate.h" | |
18 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class RendererPpapiHostImpl; | 21 class RendererPpapiHostImpl; |
22 | 22 |
23 class PepperVideoCaptureHost | 23 class PepperVideoCaptureHost |
24 : public ppapi::host::ResourceHost, | 24 : public ppapi::host::ResourceHost, |
25 public webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler, | 25 public webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler, |
26 public PepperDeviceEnumerationHostHelper::Delegate { | 26 public PepperDeviceEnumerationHostHelper::Delegate { |
27 public: | 27 public: |
28 PepperVideoCaptureHost(RendererPpapiHostImpl* host, | 28 PepperVideoCaptureHost(RendererPpapiHostImpl* host, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ppapi::host::ReplyMessageContext open_reply_context_; | 103 ppapi::host::ReplyMessageContext open_reply_context_; |
104 | 104 |
105 PepperDeviceEnumerationHostHelper enumeration_helper_; | 105 PepperDeviceEnumerationHostHelper enumeration_helper_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(PepperVideoCaptureHost); | 107 DISALLOW_COPY_AND_ASSIGN(PepperVideoCaptureHost); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace content | 110 } // namespace content |
111 | 111 |
112 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ | 112 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ |
OLD | NEW |