| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser/media/capture/image_capture_impl.h" | 5 #include "content/browser/media/capture/image_capture_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "content/browser/browser_main_loop.h" | 10 #include "content/browser/browser_main_loop.h" |
| 11 #include "content/browser/renderer_host/media/media_stream_manager.h" | 11 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 12 #include "content/browser/renderer_host/media/video_capture_manager.h" | 12 #include "content/browser/renderer_host/media/video_capture_manager.h" |
| 13 #include "content/common/media/media_stream_options.h" | 13 #include "content/common/media/media_stream_options.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "device/capture/video/video_capture_device.h" |
| 15 #include "media/base/bind_to_current_loop.h" | 16 #include "media/base/bind_to_current_loop.h" |
| 16 #include "media/capture/video/video_capture_device.h" | |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 void RunGetCapabilitiesCallbackOnUIThread( | 22 void RunGetCapabilitiesCallbackOnUIThread( |
| 23 const ImageCaptureImpl::GetCapabilitiesCallback& callback, | 23 const ImageCaptureImpl::GetCapabilitiesCallback& callback, |
| 24 media::mojom::PhotoCapabilitiesPtr capabilities) { | 24 media::mojom::PhotoCapabilitiesPtr capabilities) { |
| 25 BrowserThread::PostTask( | 25 BrowserThread::PostTask( |
| 26 BrowserThread::UI, FROM_HERE, | 26 BrowserThread::UI, FROM_HERE, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 base::Bind(&TakePhotoOnIOThread, source_id, | 167 base::Bind(&TakePhotoOnIOThread, source_id, |
| 168 BrowserMainLoop::GetInstance()->media_stream_manager(), | 168 BrowserMainLoop::GetInstance()->media_stream_manager(), |
| 169 base::Passed(&scoped_callback))); | 169 base::Passed(&scoped_callback))); |
| 170 } | 170 } |
| 171 | 171 |
| 172 ImageCaptureImpl::ImageCaptureImpl( | 172 ImageCaptureImpl::ImageCaptureImpl( |
| 173 mojo::InterfaceRequest<media::mojom::ImageCapture> request) | 173 mojo::InterfaceRequest<media::mojom::ImageCapture> request) |
| 174 : binding_(this, std::move(request)) {} | 174 : binding_(this, std::move(request)) {} |
| 175 | 175 |
| 176 } // namespace content | 176 } // namespace content |
| OLD | NEW |