| 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 40344e4d6fe93f53609d33253749487be476c21e..45314c22ac6fd52c608301e9a33d6010bdacfe3f 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 display_compositor {
|
| class ReadbackYUVInterface;
|
| }
|
| @@ -126,9 +123,7 @@ 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
|
| - // 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.
|
|
|