Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(867)

Unified Diff: content/browser/media/capture/screen_capture_device_android.h

Issue 1917023003: ScreenCapture for Android phase1, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dependency Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/media/capture/screen_capture_device_android.h
diff --git a/content/browser/media/capture/screen_capture_device_android.h b/content/browser/media/capture/screen_capture_device_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..6c8e6879df53eed5d331246575f59c9f57966095
--- /dev/null
+++ b/content/browser/media/capture/screen_capture_device_android.h
@@ -0,0 +1,37 @@
+// Copyright 2016 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 CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
+#define CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
+
+#include <memory>
+
+#include "media/capture/content/screen_capture_device_core.h"
+#include "media/capture/video/video_capture_device.h"
+
+namespace content {
+
+// ScreenCaptureDeviceAndroid is a forwarder to media::ScreenCaptureDeviceCore
+// while keeping the Power Saving from kicking in between AllocateAndStart() and
+// StopAndDeAllocate().
+class ScreenCaptureDeviceAndroid : public media::VideoCaptureDevice {
+ public:
+ ScreenCaptureDeviceAndroid();
+ ~ScreenCaptureDeviceAndroid() override;
+
+ // VideoCaptureDevice implementation.
+ void AllocateAndStart(const media::VideoCaptureParams& params,
+ std::unique_ptr<Client> client) override;
+ void StopAndDeAllocate() override;
+ void RequestRefreshFrame() override;
+
+ private:
+ media::ScreenCaptureDeviceCore core_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
« no previous file with comments | « content/app/android/library_loader_hooks.cc ('k') | content/browser/media/capture/screen_capture_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698