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

Side by Side Diff: device/wake_lock/public/interfaces/README.md

Issue 2734943003: Device Service: Decouple Wake Lock from //content (Closed)
Patch Set: Rebase Created 3 years, 8 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 Provides the ability to block the device / display from sleeping.
2
3 On Android, the implementation is inherently coupled to the NativeView
4 associated with the context of the requestor due to system APIs. To handle
5 this coupling, the Wake Lock usage model on Android is as follows:
6
7 (1) The embedder passes in a callback at Device Service construction that
8 enables the Wake Lock implementation to map (embedder-specific) context IDs to
9 NativeViews.
10 (2) For a given embedder-specific context, a trusted client
11 connects to the WakeLockContextProvider interface and gets a
12 WakeLockContext instance that is associated with that context.
13 (3) That trusted client then forwards requests to bind wake locks from
14 untrusted clients that are made within that context, with the Wake Lock
15 implementation using the callback from (1) as necessary to obtain the
16 NativeView associated with that context.
17
18 On other platforms, the usage model is similar but the callback is not
19 necessary/employed.
OLDNEW
« no previous file with comments | « device/wake_lock/public/interfaces/BUILD.gn ('k') | device/wake_lock/public/interfaces/wake_lock_context.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698