| 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_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 "media/video/capture/video_capture_proxy.h" | 13 #include "media/video/capture/video_capture_proxy.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 PepperPlatformVideoCaptureImpl::PepperPlatformVideoCaptureImpl( | 17 PepperPlatformVideoCaptureImpl::PepperPlatformVideoCaptureImpl( |
| 18 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, | 18 const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, |
| 19 const std::string& device_id, | 19 const std::string& device_id, |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 session_id_ = plugin_delegate_->GetSessionID(PP_DEVICETYPE_DEV_VIDEOCAPTURE, | 170 session_id_ = plugin_delegate_->GetSessionID(PP_DEVICETYPE_DEV_VIDEOCAPTURE, |
| 171 label); | 171 label); |
| 172 Initialize(); | 172 Initialize(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 if (handler_) | 175 if (handler_) |
| 176 handler_->OnInitialized(this, succeeded); | 176 handler_->OnInitialized(this, succeeded); |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace content | 179 } // namespace content |
| OLD | NEW |