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 "base/memory/ptr_util.h" |
10 #include "content/browser/browser_main_loop.h" | 11 #include "content/browser/browser_main_loop.h" |
11 #include "content/browser/renderer_host/media/media_stream_manager.h" | 12 #include "content/browser/renderer_host/media/media_stream_manager.h" |
12 #include "content/browser/renderer_host/media/video_capture_manager.h" | 13 #include "content/browser/renderer_host/media/video_capture_manager.h" |
13 #include "content/common/media/media_stream_options.h" | 14 #include "content/common/media/media_stream_options.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.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 #include "media/capture/video/video_capture_device.h" |
17 #include "mojo/public/cpp/bindings/strong_binding.h" | 18 #include "mojo/public/cpp/bindings/strong_binding.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 media::BindToCurrentLoop(base::Bind(&RunFailedTakePhotoCallback))); | 174 media::BindToCurrentLoop(base::Bind(&RunFailedTakePhotoCallback))); |
174 | 175 |
175 BrowserThread::PostTask( | 176 BrowserThread::PostTask( |
176 BrowserThread::IO, FROM_HERE, | 177 BrowserThread::IO, FROM_HERE, |
177 base::Bind(&TakePhotoOnIOThread, source_id, | 178 base::Bind(&TakePhotoOnIOThread, source_id, |
178 BrowserMainLoop::GetInstance()->media_stream_manager(), | 179 BrowserMainLoop::GetInstance()->media_stream_manager(), |
179 base::Passed(&scoped_callback))); | 180 base::Passed(&scoped_callback))); |
180 } | 181 } |
181 | 182 |
182 } // namespace content | 183 } // namespace content |
OLD | NEW |