OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_ |
| 6 #define MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "media/video/capture/video_capture_device.h" |
| 13 |
| 14 namespace media { |
| 15 |
| 16 class ScreenCaptureFactoryAndroid { |
| 17 public: |
| 18 static bool RegisterScreenCaptureFactory(JNIEnv* env); |
| 19 static |
| 20 base::android::ScopedJavaLocalRef<jobject> createScreenCaptureMachineAndroid( |
| 21 jlong nativeScreenCaptureMachineAndroid); |
| 22 static scoped_ptr<VideoCaptureDevice> Create(); |
| 23 |
| 24 ScreenCaptureFactoryAndroid() {} |
| 25 ~ScreenCaptureFactoryAndroid() {} |
| 26 |
| 27 private: |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureFactoryAndroid); |
| 30 }; |
| 31 |
| 32 } // namespace media |
| 33 |
| 34 #endif // MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_ |
OLD | NEW |