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

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

Issue 276423003: Pepper: Nexe downloading out of the trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 7 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: 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 881c554364c6556590c53500ff2cfe55beac7b2a..61e9787a20157285be5543071f4d2fde9c648af0 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 Tue May 13 11:00:06 2014. */
+/* From private/ppb_nacl_private.idl modified Wed May 14 09:54:36 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,
@@ -437,6 +425,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 populates
+ * |handle| with 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;

Powered by Google App Engine
This is Rietveld 408576698