| Index: content/browser/media/capture/aura_window_capture_machine.h
|
| diff --git a/content/browser/media/capture/aura_window_capture_machine.h b/content/browser/media/capture/aura_window_capture_machine.h
|
| index a5fbd594055d28d372308a6638759a75ad6ae3bb..244180719cc21d525b6a3522ab83ee2dfb77f7ea 100644
|
| --- a/content/browser/media/capture/aura_window_capture_machine.h
|
| +++ b/content/browser/media/capture/aura_window_capture_machine.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "content/browser/media/capture/cursor_renderer_aura.h"
|
| +#include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h"
|
| #include "media/capture/content/screen_capture_device_core.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/aura/window_observer.h"
|
| @@ -21,10 +22,6 @@ namespace cc {
|
| class CopyOutputResult;
|
| } // namespace cc
|
|
|
| -namespace device {
|
| -class PowerSaveBlocker;
|
| -} // namespace device
|
| -
|
| namespace viz {
|
| class ReadbackYUVInterface;
|
| }
|
| @@ -125,9 +122,9 @@ class AuraWindowCaptureMachine
|
| // Renders mouse cursor on frame.
|
| std::unique_ptr<content::CursorRendererAura> cursor_renderer_;
|
|
|
| - // TODO(jiayl): Remove power_save_blocker_ when there is an API to keep the
|
| + // TODO(jiayl): Remove wake_lock_ when there is an API to keep the
|
| // screen from sleeping for the drive-by web.
|
| - std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
|
| + device::mojom::WakeLockServicePtr wake_lock_;
|
|
|
| // False while frame capture has been suspended. All other aspects of the
|
| // machine are maintained.
|
|
|