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

Unified Diff: ppapi/api/private/ppb_nacl_private.idl

Issue 19863003: PNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref Created 7 years, 5 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: ppapi/api/private/ppb_nacl_private.idl
diff --git a/ppapi/api/private/ppb_nacl_private.idl b/ppapi/api/private/ppb_nacl_private.idl
index c420e74cb3450a4bcf600f50aab0733d1810d7f1..0759b434fe4f4255305bb5dc10903a925f334ad2 100644
--- a/ppapi/api/private/ppb_nacl_private.idl
+++ b/ppapi/api/private/ppb_nacl_private.idl
@@ -92,10 +92,16 @@ interface PPB_NaCl_Private {
[in] uint32_t desired_access,
[in] uint32_t options);
+ /* Check if PNaCl is installed and attempt to install if necessary.
+ * Callback is called when the check is done and PNaCl is already installed,
+ * or after an on-demand install is attempted. Called back with PP_OK is
Derek Schuff 2013/07/23 21:39:29 is->if
jvoung (off chromium) 2013/07/31 21:41:07 Done.
+ * PNaCl is available. Called back with an error otherwise.
+ */
+ int32_t EnsurePnaclInstalled([in] PP_Instance instance,
+ [in] PP_CompletionCallback callback);
+
/* Returns a read-only file descriptor of a file rooted in the Pnacl
* component directory, or an invalid handle on failure.
- * Do we want this to take a completion callback and be async, or
- * could we make this happen on another thread?
*/
PP_FileHandle GetReadonlyPnaclFd([in] str_t filename);

Powered by Google App Engine
This is Rietveld 408576698