| OLD | NEW |
| 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 "content/common/content_export.h" |
| 10 #include "media/capture/content/screen_capture_device_core.h" | 11 #include "media/capture/content/screen_capture_device_core.h" |
| 11 #include "media/capture/video/video_capture_device.h" | 12 #include "media/capture/video/video_capture_device.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 // ScreenCaptureDeviceAndroid is a forwarder to media::ScreenCaptureDeviceCore | 16 // ScreenCaptureDeviceAndroid is a forwarder to media::ScreenCaptureDeviceCore |
| 16 // while keeping the Power Saving from kicking in between AllocateAndStart() and | 17 // while keeping the Power Saving from kicking in between AllocateAndStart() and |
| 17 // StopAndDeAllocate(). | 18 // StopAndDeAllocate(). |
| 18 class ScreenCaptureDeviceAndroid : public media::VideoCaptureDevice { | 19 class CONTENT_EXPORT ScreenCaptureDeviceAndroid |
| 20 : public media::VideoCaptureDevice { |
| 19 public: | 21 public: |
| 20 ScreenCaptureDeviceAndroid(); | 22 ScreenCaptureDeviceAndroid(); |
| 21 ~ScreenCaptureDeviceAndroid() override; | 23 ~ScreenCaptureDeviceAndroid() override; |
| 22 | 24 |
| 23 // VideoCaptureDevice implementation. | 25 // VideoCaptureDevice implementation. |
| 24 void AllocateAndStart(const media::VideoCaptureParams& params, | 26 void AllocateAndStart(const media::VideoCaptureParams& params, |
| 25 std::unique_ptr<Client> client) override; | 27 std::unique_ptr<Client> client) override; |
| 26 void StopAndDeAllocate() override; | 28 void StopAndDeAllocate() override; |
| 27 void RequestRefreshFrame() override; | 29 void RequestRefreshFrame() override; |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 media::ScreenCaptureDeviceCore core_; | 32 media::ScreenCaptureDeviceCore core_; |
| 31 | 33 |
| 32 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid); | 34 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid); |
| 33 }; | 35 }; |
| 34 | 36 |
| 35 } // namespace content | 37 } // namespace content |
| 36 | 38 |
| 37 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_ | 39 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_ |
| OLD | NEW |