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

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

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 | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/pp_file_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/finish_writing_these/ppb_nacl_private.idl
diff --git a/ppapi/api/private/finish_writing_these/ppb_nacl_private.idl b/ppapi/api/private/finish_writing_these/ppb_nacl_private.idl
index eb324d1f57e149e36b40dc1ff3bb5bf973e6e156..c49039880af0cb2a819efade52b871c25e7c7cca 100644
--- a/ppapi/api/private/finish_writing_these/ppb_nacl_private.idl
+++ b/ppapi/api/private/finish_writing_these/ppb_nacl_private.idl
@@ -5,8 +5,10 @@
/* This file contains NaCl private interfaces. */
+#include "ppapi/c/private/pp_file_handle.h"
+
/* PPB_NaCl_Private */
-interface PPB_NaCl_Private_0_6 {
+interface PPB_NaCl_Private_0_7 {
/* This function launches NaCl's sel_ldr process. On success, the function
* returns true, otherwise it returns false. When it returns true, it will
* write |socket_count| nacl::Handles to imc_handles.
@@ -37,5 +39,11 @@ interface PPB_NaCl_Private_0_6 {
* Do we want this to take a completion callback and be async, or
* could we make this happen on another thread?
*/
- int32_t GetReadonlyPnaclFd([in] str_t filename);
+ PP_FileHandle GetReadonlyPnaclFd([in] str_t 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([in] PP_Instance instance);
};
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | ppapi/c/private/pp_file_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698