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

Side by Side Diff: content/browser/media/capture/screen_capture_device_android.h

Issue 2125973002: Reland: ScreenCapture for Android phase1, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dependency to mojo/interfaces:image_capture Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
7
8 #include <memory>
9
10 #include "media/capture/content/screen_capture_device_core.h"
11 #include "media/capture/video/video_capture_device.h"
12
13 namespace content {
14
15 // ScreenCaptureDeviceAndroid is a forwarder to media::ScreenCaptureDeviceCore
16 // while keeping the Power Saving from kicking in between AllocateAndStart() and
17 // StopAndDeAllocate().
18 class ScreenCaptureDeviceAndroid : public media::VideoCaptureDevice {
19 public:
20 ScreenCaptureDeviceAndroid();
21 ~ScreenCaptureDeviceAndroid() override;
22
23 // VideoCaptureDevice implementation.
24 void AllocateAndStart(const media::VideoCaptureParams& params,
25 std::unique_ptr<Client> client) override;
26 void StopAndDeAllocate() override;
27 void RequestRefreshFrame() override;
28
29 private:
30 media::ScreenCaptureDeviceCore core_;
31
32 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
OLDNEW
« 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