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

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

Issue 406323003: Revert 284684 "Pepper: Delete FileDownloader in trusted plugin." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/ppapi/api/private/ppb_nacl_private.idl
===================================================================
--- trunk/src/ppapi/api/private/ppb_nacl_private.idl (revision 284790)
+++ trunk/src/ppapi/api/private/ppb_nacl_private.idl (working copy)
@@ -237,6 +237,28 @@
/* Return whether the non-SFI mode is enabled. */
PP_Bool IsNonSFIModeEnabled();
+ /* Create a temporary file, which will be deleted by the time the
+ * last handle is closed (or earlier on POSIX systems), to use for
+ * the nexe with the cache information given by |pexe_url|,
+ * |abi_version|, |opt_level|, and |headers|. If the nexe is already present
+ * in the cache, |is_hit| is set to PP_TRUE and the contents of the nexe will
+ * be copied into the temporary file. Otherwise |is_hit| is set to PP_FALSE
+ * and the temporary file will be writeable. Currently the implementation is
+ * a stub, which always sets is_hit to false and calls the implementation of
+ * CreateTemporaryFile. In a subsequent CL it will call into the browser
+ * which will remember the association between the cache key and the fd, and
+ * copy the nexe into the cache after the translation finishes.
+ */
+ int32_t GetNexeFd([in] PP_Instance instance,
+ [in] str_t pexe_url,
+ [in] uint32_t abi_version,
+ [in] uint32_t opt_level,
+ [in] str_t headers,
+ [in] str_t extra_flags,
+ [out] PP_Bool is_hit,
+ [out] PP_FileHandle nexe_handle,
+ [in] PP_CompletionCallback callback);
+
/* Report to the browser that translation of the pexe for |instance|
* has finished, or aborted with an error. If |success| is true, the
* browser may then store the translation in the cache. The renderer
@@ -397,18 +419,4 @@
* time.
*/
void SetPNaClStartTime([in] PP_Instance instance);
-
- /* Downloads and streams a pexe file for PNaCl translation.
- * Fetches the content at |pexe_url| for the given instance and opt_level.
- * If a translated cached nexe is already available, |cache_hit_handle|
- * is set and |cache_hit_callback| is called.
- * Otherwise, |stream_callback| is called repeatedly with blocks of data
- * as they are received. |stream_finished_callback| is called after all
- * data has been received and dispatched to |stream_callback|.
- */
- void StreamPexe([in] PP_Instance instance,
- [in] str_t pexe_url,
- [in] int32_t opt_level,
- [in] PPP_PexeStreamHandler stream_handler,
- [inout] mem_t stream_handler_user_data);
};
« no previous file with comments | « trunk/src/components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | trunk/src/ppapi/api/private/ppp_pexe_stream_handler.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698