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

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

Issue 249183004: Implement open_resource in non-SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 unified diff | Download patch | Annotate | Revision Log
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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 3064 matching lines...) Expand 10 before | Expand all | Expand 10 after
3075 3075
3076 /* Begin wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ 3076 /* Begin wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */
3077 3077
3078 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) { 3078 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) {
3079 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface; 3079 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface;
3080 return iface->Open(instance, type, file_system, *callback); 3080 return iface->Open(instance, type, file_system, *callback);
3081 } 3081 }
3082 3082
3083 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ 3083 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */
3084 3084
3085 /* Not generating wrapper methods for PP_ManifestService_1_0 */ 3085 /* Not generating wrapper methods for PPP_ManifestService_1_0 */
3086 3086
3087 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ 3087 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */
3088 3088
3089 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mod e, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exc eption_handling, PP_Bool enable_crash_throttling, const struct PP_ManifestServic e_1_0* manifest_service_interface, void* manifest_service_user_data, void* imc_h andle, struct PP_Var* error_message, struct PP_CompletionCallback* callback) { 3089 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mod e, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exc eption_handling, PP_Bool enable_crash_throttling, const struct PPP_ManifestServi ce_1_0* manifest_service_interface, void* manifest_service_user_data, void* imc_ handle, struct PP_Var* error_message, struct PP_CompletionCallback* callback) {
3090 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3090 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3091 iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, uses_nonsfi_m ode, enable_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, enabl e_crash_throttling, manifest_service_interface, manifest_service_user_data, imc_ handle, error_message, *callback); 3091 iface->LaunchSelLdr(instance, alleged_url, uses_irt, uses_ppapi, uses_nonsfi_m ode, enable_ppapi_dev, enable_dyncode_syscalls, enable_exception_handling, enabl e_crash_throttling, manifest_service_interface, manifest_service_user_data, imc_ handle, error_message, *callback);
3092 } 3092 }
3093 3093
3094 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) { 3094 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) {
3095 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3095 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3096 return iface->StartPpapiProxy(instance); 3096 return iface->StartPpapiProxy(instance);
3097 } 3097 }
3098 3098
3099 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { 3099 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) {
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after
4959 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private _0_1 = { 4959 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private _0_1 = {
4960 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I nstance_Private_GetWindowObject, 4960 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I nstance_Private_GetWindowObject,
4961 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13 _PPB_Instance_Private_GetOwnerElementObject, 4961 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13 _PPB_Instance_Private_GetOwnerElementObject,
4962 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript 4962 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript
4963 }; 4963 };
4964 4964
4965 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = { 4965 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = {
4966 .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 4966 .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
4967 }; 4967 };
4968 4968
4969 /* Not generating wrapper interface for PP_ManifestService_1_0 */ 4969 /* Not generating wrapper interface for PPP_ManifestService_1_0 */
4970 4970
4971 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 4971 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
4972 .LaunchSelLdr = (void (*)(PP_Instance instance, const char* alleged_url, PP_ Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppap i_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bo ol enable_crash_throttling, const struct PP_ManifestService_1_0* manifest_servic e_interface, void* manifest_service_user_data, void* imc_handle, struct PP_Var* error_message, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Privat e_LaunchSelLdr, 4972 .LaunchSelLdr = (void (*)(PP_Instance instance, const char* alleged_url, PP_ Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppap i_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bo ol enable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_servi ce_interface, void* manifest_service_user_data, void* imc_handle, struct PP_Var* error_message, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Priva te_LaunchSelLdr,
4973 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy, 4973 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy,
4974 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 4974 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
4975 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 4975 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
4976 .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, 4976 .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,
4977 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd, 4977 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd,
4978 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 4978 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
4979 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 4979 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
4980 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 4980 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
4981 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags , PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, 4981 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* headers, const char* extra_flags , PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback call back))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd,
4982 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 4982 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
6012 6012
6013 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6013 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6014 if (wrapper->real_iface == NULL) { 6014 if (wrapper->real_iface == NULL) {
6015 const void *iface = (*__real_PPPGetInterface)(name); 6015 const void *iface = (*__real_PPPGetInterface)(name);
6016 if (NULL == iface) return NULL; 6016 if (NULL == iface) return NULL;
6017 wrapper->real_iface = iface; 6017 wrapper->real_iface = iface;
6018 } 6018 }
6019 6019
6020 return wrapper->wrapped_iface; 6020 return wrapper->wrapped_iface;
6021 } 6021 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698