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 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h" | 5 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "content/renderer/media/video_capture_impl_manager.h" | 10 #include "content/renderer/media/video_capture_impl_manager.h" |
11 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" | 11 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
13 #include "googleurl/src/gurl.h" | |
14 #include "media/video/capture/video_capture_proxy.h" | 13 #include "media/video/capture/video_capture_proxy.h" |
| 14 #include "url/gurl.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 PepperPlatformVideoCaptureImpl::PepperPlatformVideoCaptureImpl( | 18 PepperPlatformVideoCaptureImpl::PepperPlatformVideoCaptureImpl( |
19 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, | 19 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, |
20 const std::string& device_id, | 20 const std::string& device_id, |
21 const GURL& document_url, | 21 const GURL& document_url, |
22 webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler* handler) | 22 webkit::ppapi::PluginDelegate::PlatformVideoCaptureEventHandler* handler) |
23 : plugin_delegate_(plugin_delegate), | 23 : plugin_delegate_(plugin_delegate), |
24 device_id_(device_id), | 24 device_id_(device_id), |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 session_id_ = plugin_delegate_->GetSessionID(PP_DEVICETYPE_DEV_VIDEOCAPTURE, | 167 session_id_ = plugin_delegate_->GetSessionID(PP_DEVICETYPE_DEV_VIDEOCAPTURE, |
168 label); | 168 label); |
169 Initialize(); | 169 Initialize(); |
170 } | 170 } |
171 | 171 |
172 if (handler_) | 172 if (handler_) |
173 handler_->OnInitialized(this, succeeded); | 173 handler_->OnInitialized(this, succeeded); |
174 } | 174 } |
175 | 175 |
176 } // namespace content | 176 } // namespace content |
OLD | NEW |