OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/capture/video/android/video_capture_device_factory_android.h" | 5 #include "media/capture/video/android/video_capture_device_factory_android.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
13 #include "jni/VideoCaptureFactory_jni.h" | 14 #include "jni/VideoCaptureFactory_jni.h" |
14 #include "media/capture/video/android/video_capture_device_android.h" | 15 #include "media/capture/video/android/video_capture_device_android.h" |
15 | 16 |
16 using base::android::AttachCurrentThread; | 17 using base::android::AttachCurrentThread; |
17 using base::android::JavaRef; | 18 using base::android::JavaRef; |
18 using base::android::ScopedJavaLocalRef; | 19 using base::android::ScopedJavaLocalRef; |
19 | 20 |
20 namespace media { | 21 namespace media { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 142 } |
142 | 143 |
143 // static | 144 // static |
144 VideoCaptureDeviceFactory* | 145 VideoCaptureDeviceFactory* |
145 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory( | 146 VideoCaptureDeviceFactory::CreateVideoCaptureDeviceFactory( |
146 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | 147 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { |
147 return new VideoCaptureDeviceFactoryAndroid(); | 148 return new VideoCaptureDeviceFactoryAndroid(); |
148 } | 149 } |
149 | 150 |
150 } // namespace media | 151 } // namespace media |
OLD | NEW |