| Index: media/capture/content/android/screen_capture_factory_android.h
|
| diff --git a/media/capture/content/android/screen_capture_factory_android.h b/media/capture/content/android/screen_capture_factory_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..50851414c1e35ca2e86b44e54ce708ea12225a31
|
| --- /dev/null
|
| +++ b/media/capture/content/android/screen_capture_factory_android.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_
|
| +#define MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_
|
| +
|
| +#include <jni.h>
|
| +#include <memory>
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "media/capture/video/video_capture_device.h"
|
| +
|
| +namespace media {
|
| +
|
| +class MEDIA_EXPORT ScreenCaptureFactoryAndroid {
|
| + public:
|
| + static bool RegisterScreenCaptureFactory(JNIEnv* env);
|
| + static base::android::ScopedJavaLocalRef<jobject>
|
| + createScreenCaptureMachineAndroid(jlong nativeScreenCaptureMachineAndroid);
|
| + static std::unique_ptr<VideoCaptureDevice> Create();
|
| +
|
| + ScreenCaptureFactoryAndroid() {}
|
| + ~ScreenCaptureFactoryAndroid() {}
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ScreenCaptureFactoryAndroid);
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_
|
|
|