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

Unified Diff: content/browser/media/capture/aura_window_capture_machine.h

Issue 2881143003: Convert //content/browser/media to be clients of WakeLock mojo service. (Closed)
Patch Set: wake lock bindinterface should only be executed once. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698