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

Unified Diff: ppapi/c/private/ppb_nacl_private.h

Issue 224803002: Enable mmap and identity-based validation caching on pnacl-{llc,ld}.nexe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix token handover for main nexe Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/api/private/ppb_nacl_private.idl ('k') | ppapi/native_client/src/trusted/plugin/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppb_nacl_private.h
diff --git a/ppapi/c/private/ppb_nacl_private.h b/ppapi/c/private/ppb_nacl_private.h
index f42de0b9f224fc6e00d3be49d4c0f128c31267e9..b96b84c8299ea1db3afe5a0742993e54382045df 100644
--- a/ppapi/c/private/ppb_nacl_private.h
+++ b/ppapi/c/private/ppb_nacl_private.h
@@ -227,8 +227,12 @@ struct PPB_NaCl_Private_1_0 {
uint32_t options);
/* Returns a read-only file descriptor of a file rooted in the Pnacl
* component directory, or an invalid handle on failure.
+ * The metadata |file_token_*| are 0 on failure.
*/
- PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename);
+ PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename,
+ PP_Bool is_executable,
+ uint64_t* file_token_lo,
+ uint64_t* file_token_hi);
/* This creates a temporary file that will be deleted by the time
* the last handle is closed (or earlier on POSIX systems), and
* returns a posix handle to that temporary file.
@@ -271,7 +275,7 @@ struct PPB_NaCl_Private_1_0 {
void (*ReportTranslationFinished)(PP_Instance instance, PP_Bool success);
/* Opens a NaCl executable file in the application's extension directory
* corresponding to the file URL and returns a file descriptor, or an invalid
- * handle on failure. |metadata| is left unchanged on failure.
+ * handle on failure. The metadata |file_token*| are 0 on failure.
*/
PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance,
const char* file_url,
« no previous file with comments | « ppapi/api/private/ppb_nacl_private.idl ('k') | ppapi/native_client/src/trusted/plugin/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698