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

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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
4964 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private _0_1 = { 4964 static const struct PPB_Instance_Private_0_1 Pnacl_Wrappers_PPB_Instance_Private _0_1 = {
4965 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I nstance_Private_GetWindowObject, 4965 .GetWindowObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13_PPB_I nstance_Private_GetWindowObject,
4966 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13 _PPB_Instance_Private_GetOwnerElementObject, 4966 .GetOwnerElementObject = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M13 _PPB_Instance_Private_GetOwnerElementObject,
4967 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript 4967 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript
4968 }; 4968 };
4969 4969
4970 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = { 4970 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = {
4971 .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 4971 .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
4972 }; 4972 };
4973 4973
4974 /* Not generating wrapper interface for PP_ManifestService_1_0 */ 4974 /* Not generating wrapper interface for PPP_ManifestService_1_0 */
4975 4975
4976 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 4976 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
4977 .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, 4977 .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,
4978 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy, 4978 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy,
4979 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 4979 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
4980 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 4980 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
4981 .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, 4981 .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,
4982 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd, 4982 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd,
4983 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 4983 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
4984 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 4984 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
4985 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 4985 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
4986 .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, 4986 .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,
4987 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 4987 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
6018 6018
6019 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6019 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6020 if (wrapper->real_iface == NULL) { 6020 if (wrapper->real_iface == NULL) {
6021 const void *iface = (*__real_PPPGetInterface)(name); 6021 const void *iface = (*__real_PPPGetInterface)(name);
6022 if (NULL == iface) return NULL; 6022 if (NULL == iface) return NULL;
6023 wrapper->real_iface = iface; 6023 wrapper->real_iface = iface;
6024 } 6024 }
6025 6025
6026 return wrapper->wrapped_iface; 6026 return wrapper->wrapped_iface;
6027 } 6027 }
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/service_runtime.cc ('k') | ppapi/ppapi_nacl_test_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698