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

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

Issue 231243002: PPAPI: Move some of NexeFileDidOpen to NexeLoadManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix crash Created 6 years, 8 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/api/private/ppb_nacl_private.idl ('k') | ppapi/generators/idl_c_proto.py » ('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 c259cbebe95f87e2ffbe650ef8100437d3def795..d5abbf5ed51caaddd487adedbf1ab098c9d5bab1 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 Mon Apr 7 13:43:24 2014. */
+/* From private/ppb_nacl_private.idl modified Wed Apr 9 10:26:49 2014. */
#ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
@@ -278,6 +278,17 @@ 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);
/* Report that the nexe loaded successfully. */
void (*ReportLoadSuccess)(PP_Instance instance,
const char* url,
« no previous file with comments | « ppapi/api/private/ppb_nacl_private.idl ('k') | ppapi/generators/idl_c_proto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698