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

Unified Diff: device/wake_lock/wake_lock_service_impl.h

Issue 2867303003: Generalize the API of WakeLockContext mojo interface. (Closed)
Patch Set: Generalize the API of WakeLockContext mojo interface. 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
« no previous file with comments | « device/wake_lock/wake_lock_service_context.cc ('k') | device/wake_lock/wake_lock_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/wake_lock/wake_lock_service_impl.h
diff --git a/device/wake_lock/wake_lock_service_impl.h b/device/wake_lock/wake_lock_service_impl.h
index 204aa83202d4421b9e1b1004c1ed34935c786326..a64ff40843c70fcf09937c9c7155c1163b4fd282 100644
--- a/device/wake_lock/wake_lock_service_impl.h
+++ b/device/wake_lock/wake_lock_service_impl.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/single_thread_task_runner.h"
#include "device/power_save_blocker/power_save_blocker.h"
+#include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
#include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h"
#include "device/wake_lock/wake_lock_service_context.h"
#include "mojo/public/cpp/bindings/binding_set.h"
@@ -22,8 +23,8 @@ class WakeLockServiceImpl : public mojom::WakeLockService {
public:
WakeLockServiceImpl(
mojom::WakeLockServiceRequest request,
- device::PowerSaveBlocker::PowerSaveBlockerType type,
- device::PowerSaveBlocker::Reason reason,
+ mojom::WakeLockType type,
+ mojom::WakeLockReason reason,
const std::string& description,
int context_id,
WakeLockContextCallback native_view_getter,
@@ -43,8 +44,8 @@ class WakeLockServiceImpl : public mojom::WakeLockService {
void RemoveWakeLock();
void OnConnectionError();
- device::PowerSaveBlocker::PowerSaveBlockerType type_;
- device::PowerSaveBlocker::Reason reason_;
+ mojom::WakeLockType type_;
+ mojom::WakeLockReason reason_;
std::unique_ptr<std::string> description_;
int num_lock_requests_;
« no previous file with comments | « device/wake_lock/wake_lock_service_context.cc ('k') | device/wake_lock/wake_lock_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698