| Index: ppapi/api/private/ppb_nacl_private.idl
|
| diff --git a/ppapi/api/private/ppb_nacl_private.idl b/ppapi/api/private/ppb_nacl_private.idl
|
| index d38f5c51eaa53629b4220cfad3a02a890289cb0a..36faf5a24916c62935de66aa1ec4eceac3a9dd53 100644
|
| --- a/ppapi/api/private/ppb_nacl_private.idl
|
| +++ b/ppapi/api/private/ppb_nacl_private.idl
|
| @@ -139,6 +139,10 @@ struct PP_PNaClOptions {
|
| int32_t opt_level;
|
| };
|
|
|
| +/* Callback invoked upon completion of PPP_ManifestService::OpenResource(). */
|
| +typedef void PP_OpenResourceCompletionCallback([inout] mem_t user_data,
|
| + [in] PP_FileHandle file_handle);
|
| +
|
| /* ManifestService to support irt_open_resource() function.
|
| * All functions of the service should have PP_Bool return value. It represents
|
| * whether the service is still alive or not. Trivially Quit() should always
|
| @@ -146,12 +150,20 @@ struct PP_PNaClOptions {
|
| * Once false is called, as the service has been destructed, all functions
|
| * should never be called afterwords.
|
| */
|
| -interface PP_ManifestService {
|
| +interface PPP_ManifestService {
|
| /* Called when ManifestService should be destructed. */
|
| PP_Bool Quit([inout] mem_t user_data);
|
|
|
| /* Called when PPAPI initialization in the NaCl plugin is finished. */
|
| PP_Bool StartupInitializationComplete([inout] mem_t user_data);
|
| +
|
| + /* Called when irt_open_resource() is invoked in the NaCl plugin.
|
| + * Upon completion, callback will be invoked with given callback_user_data
|
| + * and the result file handle (or PP_kInvalidFileHandle on error). */
|
| + PP_Bool OpenResource([inout] mem_t user_data,
|
| + [in] str_t entry_key,
|
| + [in] PP_OpenResourceCompletionCallback callback,
|
| + [inout] mem_t callback_user_data);
|
| };
|
|
|
| /* PPB_NaCl_Private */
|
| @@ -184,7 +196,7 @@ interface PPB_NaCl_Private {
|
| [in] PP_Bool enable_dyncode_syscalls,
|
| [in] PP_Bool enable_exception_handling,
|
| [in] PP_Bool enable_crash_throttling,
|
| - [in] PP_ManifestService manifest_service_interface,
|
| + [in] PPP_ManifestService manifest_service_interface,
|
| [inout] mem_t manifest_service_user_data,
|
| [out] mem_t imc_handle,
|
| [out] PP_Var error_message,
|
|
|