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

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

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_ 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "media/capture/content/screen_capture_device_core.h" 10 #include "device/capture/content/screen_capture_device_core.h"
11 #include "media/capture/video/video_capture_device.h" 11 #include "device/capture/video/video_capture_device.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // ScreenCaptureDeviceAndroid is a forwarder to media::ScreenCaptureDeviceCore 15 // ScreenCaptureDeviceAndroid is a forwarder to media::ScreenCaptureDeviceCore
16 // while keeping the Power Saving from kicking in between AllocateAndStart() and 16 // while keeping the Power Saving from kicking in between AllocateAndStart() and
17 // StopAndDeAllocate(). 17 // StopAndDeAllocate().
18 class ScreenCaptureDeviceAndroid : public media::VideoCaptureDevice { 18 class ScreenCaptureDeviceAndroid : public media::VideoCaptureDevice {
19 public: 19 public:
20 ScreenCaptureDeviceAndroid(); 20 ScreenCaptureDeviceAndroid();
21 ~ScreenCaptureDeviceAndroid() override; 21 ~ScreenCaptureDeviceAndroid() override;
22 22
23 // VideoCaptureDevice implementation. 23 // VideoCaptureDevice implementation.
24 void AllocateAndStart(const media::VideoCaptureParams& params, 24 void AllocateAndStart(const media::VideoCaptureParams& params,
25 std::unique_ptr<Client> client) override; 25 std::unique_ptr<Client> client) override;
26 void StopAndDeAllocate() override; 26 void StopAndDeAllocate() override;
27 void RequestRefreshFrame() override; 27 void RequestRefreshFrame() override;
28 28
29 private: 29 private:
30 media::ScreenCaptureDeviceCore core_; 30 media::ScreenCaptureDeviceCore core_;
31 31
32 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid); 32 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid);
33 }; 33 };
34 34
35 } // namespace content 35 } // namespace content
36 36
37 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_ 37 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/media/capture/image_capture_impl.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