Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 "content/public/browser/power_save_blocker.h" | |
| 11 #include "media/capture/content/screen_capture_device_core.h" | |
| 12 #include "media/capture/video/video_capture_device.h" | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 class ScreenCaptureDeviceAndroid : public media::VideoCaptureDevice { | |
|
mcasas
2016/05/19 19:11:39
Class comments? Sth like: SCDAndroid is a forwarde
braveyao
2016/05/20 22:27:24
Done.
| |
| 17 public: | |
| 18 ScreenCaptureDeviceAndroid(); | |
| 19 ~ScreenCaptureDeviceAndroid() override; | |
| 20 | |
| 21 static std::unique_ptr<media::VideoCaptureDevice> Create(); | |
| 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 std::unique_ptr<media::ScreenCaptureDeviceCore> core_; | |
|
mcasas
2016/05/19 19:11:40
const. Actually just make it a member:
media::Scre
braveyao
2016/05/20 22:27:25
Done the const part.
Not quite understand the res
mcasas
2016/05/23 18:19:55
I'm saying that you should make it
media::ScreenCa
braveyao
2016/05/24 00:03:26
Done.
| |
| 31 | |
| 32 // The capture device. | |
|
mcasas
2016/05/19 19:11:40
Remove superfluous comment.
braveyao
2016/05/20 22:27:24
Done.
| |
| 33 std::unique_ptr<media::VideoCaptureDevice> video_capture_device_; | |
|
mcasas
2016/05/19 19:11:40
Unused member?? Remove.
braveyao
2016/05/20 22:27:24
Done.
| |
| 34 | |
| 35 // TODO(jiayl): Remove power_save_blocker_ when there is an API to keep the | |
| 36 // screen from sleeping for the drive-by web. | |
|
mcasas
2016/05/19 19:11:40
I'm surprised you add comments for a 3rd person :)
braveyao
2016/05/20 22:27:24
This is merely from aura_window_capture_machine im
| |
| 37 std::unique_ptr<PowerSaveBlocker> power_save_blocker_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid); | |
| 40 }; | |
| 41 | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_SCREEN_CAPTURE_DEVICE_ANDROID_H_ | |
| OLD | NEW |