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

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

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert buildbot hack Created 8 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
« no previous file with comments | « ppapi/c/private/pp_file_handle.h ('k') | ppapi/native_client/src/trusted/plugin/build.scons » ('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 3972a9eeb4e32e0c8900e0fa8ff4b4a4ea8b862e..8f58f2dbb58b79a6203632c8adabb8dd4f528fa8 100644
--- a/ppapi/c/private/ppb_nacl_private.h
+++ b/ppapi/c/private/ppb_nacl_private.h
@@ -9,8 +9,9 @@
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/private/pp_file_handle.h"
-#define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.6"
+#define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.7"
struct PPB_NaCl_Private {
// This function launches NaCl's sel_ldr process. On success, the function
@@ -59,7 +60,12 @@ struct PPB_NaCl_Private {
// component directory, or -1 on error.
// Do we want this to take a completion callback and be async, or
// or could we make this happen on another thread?
- int (*GetReadonlyPnaclFd)(const char* filename);
+ PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename);
+
+ // 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.
+ PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance);
};
#endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
« no previous file with comments | « ppapi/c/private/pp_file_handle.h ('k') | ppapi/native_client/src/trusted/plugin/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698