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

Side by Side Diff: device/wake_lock/public/interfaces/wake_lock_param_traits.h

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: error fix, non-frame client. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_WAKE_LOCK_PUBLIC_INTERFACES_WAKE_LOCK_PARAM_TRAITS_H_
6 #define DEVICE_WAKE_LOCK_PUBLIC_INTERFACES_WAKE_LOCK_PARAM_TRAITS_H_
7
8 #include <stddef.h>
9
10 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
11
12 namespace mojo {
13
14 template <>
15 struct EnumTraits<device::mojom::WakeLockType,
16 device::PowerSaveBlocker::PowerSaveBlockerType> {
17 static device::mojom::WakeLockType ToMojom(
18 device::PowerSaveBlocker::PowerSaveBlockerType input);
19 static bool FromMojom(device::mojom::WakeLockType input,
20 device::PowerSaveBlocker::PowerSaveBlockerType* output);
21 };
22
23 template <>
24 struct EnumTraits<device::mojom::WakeLockReason,
25 device::PowerSaveBlocker::Reason> {
26 static device::mojom::WakeLockReason ToMojom(
27 device::PowerSaveBlocker::Reason input);
28 static bool FromMojom(device::mojom::WakeLockReason input,
29 device::PowerSaveBlocker::Reason* output);
30 };
31
32 } // namespace mojo
33
34 #endif // DEVICE_WAKE_LOCK_PUBLIC_INTERFACES_WAKE_LOCK_PARAM_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698