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

Unified Diff: device/wake_lock/public/interfaces/README.md

Issue 2874013002: Add GetWakeLockWithoutContext() in WakeLockContextProvider mojo interface. (Closed)
Patch Set: Add GetWakeLockWithoutContext in WakeLockContextProvider 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
Index: device/wake_lock/public/interfaces/README.md
diff --git a/device/wake_lock/public/interfaces/README.md b/device/wake_lock/public/interfaces/README.md
index ee4679afd980744cd993487675179df9e3217a99..a0be7f938041ca4b683aaa00e27868b48499fc4f 100644
--- a/device/wake_lock/public/interfaces/README.md
+++ b/device/wake_lock/public/interfaces/README.md
@@ -8,7 +8,7 @@ this coupling, the Wake Lock usage model on Android is as follows:
enables the Wake Lock implementation to map (embedder-specific) context IDs to
NativeViews.
(2) For a given embedder-specific context, a trusted client
-connects to the WakeLockContextProvider interface and gets a
+connects to the WakeLockProvider interface and gets a
WakeLockContext instance that is associated with that context.
(3) That trusted client then forwards requests to bind wake locks from
untrusted clients that are made within that context, with the Wake Lock
@@ -17,3 +17,8 @@ NativeView associated with that context.
On other platforms, the usage model is similar but the callback is not
necessary/employed.
+
+If the client does not have any context available (e.g., is not within the
+context of a WebContents), it can get a WakeLock that doesn't associate to any
+context (by GetWakeLockWithoutContext() in WakeLockProvider). However, note that
+the resulting Wake Lock will not have any effect on Android.
« 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