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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 649603004: Non-SFI NaCl: Batch-open resource files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after
3448 3448
3449 static int32_t Pnacl_M33_PPB_IsolatedFileSystem_Private_Open(PP_Instance instanc e, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_C ompletionCallback* callback) { 3449 static int32_t Pnacl_M33_PPB_IsolatedFileSystem_Private_Open(PP_Instance instanc e, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_C ompletionCallback* callback) {
3450 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface; 3450 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface;
3451 return iface->Open(instance, type, file_system, *callback); 3451 return iface->Open(instance, type, file_system, *callback);
3452 } 3452 }
3453 3453
3454 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ 3454 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */
3455 3455
3456 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ 3456 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */
3457 3457
3458 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, PP_Boo l main_service_runtime, const char* alleged_url, const struct PP_NaClFileInfo* n exe_file_info, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_dev, PP_NaClAppPro cessType process_type, void* imc_handle, struct PP_CompletionCallback* callback) { 3458 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, PP_Boo l main_service_runtime, const char* alleged_url, const struct PP_NaClFileInfo* n exe_file_info, const struct PP_NaClResourceFileHandle resource_file_handles[], P P_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_dev, PP_NaClAppProcessType process _type, void* imc_handle, struct PP_CompletionCallback* callback) {
3459 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3459 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3460 iface->LaunchSelLdr(instance, main_service_runtime, alleged_url, nexe_file_inf o, uses_nonsfi_mode, enable_ppapi_dev, process_type, imc_handle, *callback); 3460 iface->LaunchSelLdr(instance, main_service_runtime, alleged_url, nexe_file_inf o, resource_file_handles, uses_nonsfi_mode, enable_ppapi_dev, process_type, imc_ handle, *callback);
3461 } 3461 }
3462 3462
3463 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) { 3463 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) {
3464 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3464 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3465 return iface->StartPpapiProxy(instance); 3465 return iface->StartPpapiProxy(instance);
3466 } 3466 }
3467 3467
3468 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { 3468 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) {
3469 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3469 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3470 return iface->UrandomFD(); 3470 return iface->UrandomFD();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
3598 static PP_Bool Pnacl_M25_PPB_NaCl_Private_GetPnaclResourceInfo(PP_Instance insta nce, struct PP_Var* llc_tool_name, struct PP_Var* ld_tool_name) { 3598 static PP_Bool Pnacl_M25_PPB_NaCl_Private_GetPnaclResourceInfo(PP_Instance insta nce, struct PP_Var* llc_tool_name, struct PP_Var* ld_tool_name) {
3599 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3599 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3600 return iface->GetPnaclResourceInfo(instance, llc_tool_name, ld_tool_name); 3600 return iface->GetPnaclResourceInfo(instance, llc_tool_name, ld_tool_name);
3601 } 3601 }
3602 3602
3603 static void Pnacl_M25_PPB_NaCl_Private_GetCpuFeatureAttrs(struct PP_Var* _struct _result) { 3603 static void Pnacl_M25_PPB_NaCl_Private_GetCpuFeatureAttrs(struct PP_Var* _struct _result) {
3604 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3604 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3605 *_struct_result = iface->GetCpuFeatureAttrs(); 3605 *_struct_result = iface->GetCpuFeatureAttrs();
3606 } 3606 }
3607 3607
3608 static void Pnacl_M25_PPB_NaCl_Private_DownloadNexe(PP_Instance instance, const char* url, struct PP_NaClFileInfo* file_info, struct PP_CompletionCallback* call back) { 3608 static void Pnacl_M25_PPB_NaCl_Private_DownloadNexe(PP_Instance instance, const char* url, PP_Bool download_resource_files, struct PP_NaClFileInfo* file_info, s truct PP_NaClResourceFileHandle** resource_file_handles, struct PP_CompletionCal lback* callback) {
3609 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3609 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3610 iface->DownloadNexe(instance, url, file_info, *callback); 3610 iface->DownloadNexe(instance, url, download_resource_files, file_info, resourc e_file_handles, *callback);
3611 } 3611 }
3612 3612
3613 static void Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus(PP_Instance instance, int32_t load_status, int32_t max_status) { 3613 static void Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus(PP_Instance instance, int32_t load_status, int32_t max_status) {
3614 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3614 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3615 iface->ReportSelLdrStatus(instance, load_status, max_status); 3615 iface->ReportSelLdrStatus(instance, load_status, max_status);
3616 } 3616 }
3617 3617
3618 static void Pnacl_M25_PPB_NaCl_Private_LogTranslateTime(const char* histogram_na me, int64_t time_us) { 3618 static void Pnacl_M25_PPB_NaCl_Private_LogTranslateTime(const char* histogram_na me, int64_t time_us) {
3619 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3619 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3620 iface->LogTranslateTime(histogram_name, time_us); 3620 iface->LogTranslateTime(histogram_name, time_us);
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
5457 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I nstance_Private_GetWindowObject, 5457 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I nstance_Private_GetWindowObject,
5458 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13 _PPB_Instance_Private_GetOwnerElementObject, 5458 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13 _PPB_Instance_Private_GetOwnerElementObject,
5459 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript 5459 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript
5460 }; 5460 };
5461 5461
5462 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = { 5462 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = {
5463 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M 33_PPB_IsolatedFileSystem_Private_Open 5463 .Open = (int32_t (*)(PP_Instance instance, PP_IsolatedFileSystemType_Private type, PP_Resource* file_system, struct PP_CompletionCallback callback))&Pnacl_M 33_PPB_IsolatedFileSystem_Private_Open
5464 }; 5464 };
5465 5465
5466 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 5466 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
5467 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime , const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_dev, PP_NaClAppProcessType process_type, void* imc_handle, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Pr ivate_LaunchSelLdr, 5467 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime , const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, const s truct PP_NaClResourceFileHandle resource_file_handles[], PP_Bool uses_nonsfi_mod e, PP_Bool enable_ppapi_dev, PP_NaClAppProcessType process_type, void* imc_handl e, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelL dr,
5468 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy, 5468 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy,
5469 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 5469 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
5470 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 5470 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
5471 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, 5471 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle,
5472 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd, 5472 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd,
5473 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5473 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5474 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5474 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5475 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5475 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5476 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_ NaCl_Private_ReportTranslationFinished, 5476 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_ NaCl_Private_ReportTranslationFinished,
5477 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type , const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent, 5477 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type , const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent,
5478 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess, 5478 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess,
5479 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, 5479 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError,
5480 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort, 5480 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort,
5481 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated, 5481 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated,
5482 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed, 5482 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed,
5483 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL, 5483 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL,
5484 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch, 5484 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch,
5485 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole, 5485 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole,
5486 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState, 5486 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState,
5487 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog, 5487 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog,
5488 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin, 5488 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin,
5489 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize, 5489 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize,
5490 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest, 5490 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest,
5491 .GetManifestBaseURL = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M25_PP B_NaCl_Private_GetManifestBaseURL, 5491 .GetManifestBaseURL = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M25_PP B_NaCl_Private_GetManifestBaseURL,
5492 .ProcessNaClManifest = (void (*)(PP_Instance instance, const char* program_u rl))&Pnacl_M25_PPB_NaCl_Private_ProcessNaClManifest, 5492 .ProcessNaClManifest = (void (*)(PP_Instance instance, const char* program_u rl))&Pnacl_M25_PPB_NaCl_Private_ProcessNaClManifest,
5493 .DevInterfacesEnabled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_DevInterfacesEnabled, 5493 .DevInterfacesEnabled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_DevInterfacesEnabled,
5494 .GetManifestProgramURL = (PP_Bool (*)(PP_Instance instance, struct PP_Var* f ull_url, struct PP_PNaClOptions* pnacl_options, PP_Bool* uses_nonsfi_mode))&Pnac l_M25_PPB_NaCl_Private_GetManifestProgramURL, 5494 .GetManifestProgramURL = (PP_Bool (*)(PP_Instance instance, struct PP_Var* f ull_url, struct PP_PNaClOptions* pnacl_options, PP_Bool* uses_nonsfi_mode))&Pnac l_M25_PPB_NaCl_Private_GetManifestProgramURL,
5495 .GetPnaclResourceInfo = (PP_Bool (*)(PP_Instance instance, struct PP_Var* ll c_tool_name, struct PP_Var* ld_tool_name))&Pnacl_M25_PPB_NaCl_Private_GetPnaclRe sourceInfo, 5495 .GetPnaclResourceInfo = (PP_Bool (*)(PP_Instance instance, struct PP_Var* ll c_tool_name, struct PP_Var* ld_tool_name))&Pnacl_M25_PPB_NaCl_Private_GetPnaclRe sourceInfo,
5496 .GetCpuFeatureAttrs = (struct PP_Var (*)(void))&Pnacl_M25_PPB_NaCl_Private_G etCpuFeatureAttrs, 5496 .GetCpuFeatureAttrs = (struct PP_Var (*)(void))&Pnacl_M25_PPB_NaCl_Private_G etCpuFeatureAttrs,
5497 .DownloadNexe = (void (*)(PP_Instance instance, const char* url, struct PP_N aClFileInfo* file_info, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_Na Cl_Private_DownloadNexe, 5497 .DownloadNexe = (void (*)(PP_Instance instance, const char* url, PP_Bool dow nload_resource_files, struct PP_NaClFileInfo* file_info, struct PP_NaClResourceF ileHandle** resource_file_handles, struct PP_CompletionCallback callback))&Pnacl _M25_PPB_NaCl_Private_DownloadNexe,
5498 .ReportSelLdrStatus = (void (*)(PP_Instance instance, int32_t load_status, i nt32_t max_status))&Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus, 5498 .ReportSelLdrStatus = (void (*)(PP_Instance instance, int32_t load_status, i nt32_t max_status))&Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus,
5499 .LogTranslateTime = (void (*)(const char* histogram_name, int64_t time_us))& Pnacl_M25_PPB_NaCl_Private_LogTranslateTime, 5499 .LogTranslateTime = (void (*)(const char* histogram_name, int64_t time_us))& Pnacl_M25_PPB_NaCl_Private_LogTranslateTime,
5500 .OpenManifestEntry = (void (*)(PP_Instance instance, PP_Bool is_helper_proce ss, const char* key, struct PP_NaClFileInfo* file_info, struct PP_CompletionCall back callback))&Pnacl_M25_PPB_NaCl_Private_OpenManifestEntry, 5500 .OpenManifestEntry = (void (*)(PP_Instance instance, PP_Bool is_helper_proce ss, const char* key, struct PP_NaClFileInfo* file_info, struct PP_CompletionCall back callback))&Pnacl_M25_PPB_NaCl_Private_OpenManifestEntry,
5501 .SetPNaClStartTime = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_SetPNaClStartTime, 5501 .SetPNaClStartTime = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_SetPNaClStartTime,
5502 .StreamPexe = (void (*)(PP_Instance instance, const char* pexe_url, int32_t opt_level, const struct PPP_PexeStreamHandler_1_0* stream_handler, void* stream_ handler_user_data))&Pnacl_M25_PPB_NaCl_Private_StreamPexe 5502 .StreamPexe = (void (*)(PP_Instance instance, const char* pexe_url, int32_t opt_level, const struct PPP_PexeStreamHandler_1_0* stream_handler, void* stream_ handler_user_data))&Pnacl_M25_PPB_NaCl_Private_StreamPexe
5503 }; 5503 };
5504 5504
5505 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri vate_0_1 = { 5505 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri vate_0_1 = {
5506 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, 5506 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual,
5507 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual, 5507 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual,
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
6560 6560
6561 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6561 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6562 if (wrapper->real_iface == NULL) { 6562 if (wrapper->real_iface == NULL) {
6563 const void *iface = (*__real_PPPGetInterface)(name); 6563 const void *iface = (*__real_PPPGetInterface)(name);
6564 if (NULL == iface) return NULL; 6564 if (NULL == iface) return NULL;
6565 wrapper->real_iface = iface; 6565 wrapper->real_iface = iface;
6566 } 6566 }
6567 6567
6568 return wrapper->wrapped_iface; 6568 return wrapper->wrapped_iface;
6569 } 6569 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698