summaryrefslogtreecommitdiffstats
path: root/ppapi/c
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 20:18:20 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-16 20:18:20 +0000
commit728a9636111902640218668342429dbde31cb240 (patch)
treedcce09a31cd1e1027d1611cd7fdef59303138f75 /ppapi/c
parentc11c4acab39d71af3df4b7b6a7f589665bc5babe (diff)
downloadchromium_src-728a9636111902640218668342429dbde31cb240.zip
chromium_src-728a9636111902640218668342429dbde31cb240.tar.gz
chromium_src-728a9636111902640218668342429dbde31cb240.tar.bz2
Pepper: Nexe downloading out of the trusted plugin.
This moves the logic for nexe downloading outside the trusted plugin. This is part of a series of changes to remove FileDownloader and its associated logic. I've tried to make this change small so it will be easy to review. A followup change will clean up some of the accounting logic post-download to make this path simpler and easier to follow. BUG=370556 R=bbudge@chromium.org Review URL: https://codereview.chromium.org/276423003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271090 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r--ppapi/c/private/ppb_nacl_private.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/ppapi/c/private/ppb_nacl_private.h b/ppapi/c/private/ppb_nacl_private.h
index 34c125f..67df0ff 100644
--- a/ppapi/c/private/ppb_nacl_private.h
+++ b/ppapi/c/private/ppb_nacl_private.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_nacl_private.idl modified Wed May 14 11:49:42 2014. */
+/* From private/ppb_nacl_private.idl modified Fri May 16 11:43:13 2014. */
#ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
@@ -326,18 +326,6 @@ struct PPB_NaCl_Private_1_0 {
PP_Bool length_is_computable,
uint64_t loaded_bytes,
uint64_t total_bytes);
- /* Report that the attempt to open the nexe has finished. Opening the file
- * may have failed, as indicated by a pp_error value that is not PP_OK or an
- * fd of -1. Failure to stat the file to determine its length results in
- * nexe_bytes_read being -1.
- */
- void (*NexeFileDidOpen)(PP_Instance instance,
- int32_t pp_error,
- int32_t fd,
- int32_t http_status,
- int64_t nexe_bytes_read,
- const char* url,
- int64_t time_since_open);
/* Report that the nexe loaded successfully. */
void (*ReportLoadSuccess)(PP_Instance instance,
const char* url,
@@ -430,6 +418,12 @@ struct PPB_NaCl_Private_1_0 {
* This method may be called on any thread.
*/
void (*PostMessageToJavaScript)(PP_Instance instance, const char* message);
+ /* Downloads the .nexe file at the given URL to a file, and sets |handle|
+ * to a handle to a file containing its contents. */
+ void (*DownloadNexe)(PP_Instance instance,
+ const char* url,
+ PP_FileHandle* handle,
+ struct PP_CompletionCallback callback);
};
typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private;