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

Unified Diff: device/wake_lock/wake_lock_service_context.h

Issue 2867303003: Generalize the API of WakeLockContext mojo interface. (Closed)
Patch Set: 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: device/wake_lock/wake_lock_service_context.h
diff --git a/device/wake_lock/wake_lock_service_context.h b/device/wake_lock/wake_lock_service_context.h
index f5c5fd9c312f60a6ec20ba29a70f1fdc5777b74a..3c3eda640f833453e1754726ba65fe685f6aa43f 100644
--- a/device/wake_lock/wake_lock_service_context.h
+++ b/device/wake_lock/wake_lock_service_context.h
@@ -16,6 +16,8 @@
namespace device {
+class PowerSaveBlocker;
+
// Callback that maps a context ID to the NativeView associated with
// that context. This callback is provided to the Device Service by its
// embedder.
@@ -31,7 +33,10 @@ class WakeLockServiceContext : public mojom::WakeLockContext {
~WakeLockServiceContext() override;
// mojom::WakeLockContext:
- void GetWakeLock(mojom::WakeLockServiceRequest request) override;
+ void GetWakeLock(device::PowerSaveBlocker::PowerSaveBlockerType type,
+ device::PowerSaveBlocker::Reason reason,
+ const std::string& description,
+ mojom::WakeLockServiceRequest request) override;
private:
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698