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

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

Issue 337463002: Remove LoadModule SRPC for non-SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/service_runtime.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
3272 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface; 3272 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface;
3273 return iface->Open(instance, type, file_system, *callback); 3273 return iface->Open(instance, type, file_system, *callback);
3274 } 3274 }
3275 3275
3276 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ 3276 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */
3277 3277
3278 /* Not generating wrapper methods for PPP_ManifestService_1_0 */ 3278 /* Not generating wrapper methods for PPP_ManifestService_1_0 */
3279 3279
3280 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ 3280 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */
3281 3281
3282 static void Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr(PP_Instance instance, PP_Boo l main_service_runtime, const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncod e_syscalls, PP_Bool enable_exception_handling, PP_Bool enable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_service_interface, void* manifest _service_user_data, void* imc_handle, struct PP_CompletionCallback* callback) { 3282 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_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, P P_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_excepti on_handling, PP_Bool enable_crash_throttling, const struct PPP_ManifestService_1 _0* manifest_service_interface, void* manifest_service_user_data, void* imc_hand le, struct PP_CompletionCallback* callback) {
3283 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3283 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3284 iface->LaunchSelLdr(instance, main_service_runtime, alleged_url, uses_irt, use s_ppapi, uses_nonsfi_mode, enable_ppapi_dev, enable_dyncode_syscalls, enable_exc eption_handling, enable_crash_throttling, manifest_service_interface, manifest_s ervice_user_data, imc_handle, *callback); 3284 iface->LaunchSelLdr(instance, main_service_runtime, alleged_url, nexe_file_inf o, uses_irt, uses_ppapi, uses_nonsfi_mode, enable_ppapi_dev, enable_dyncode_sysc alls, enable_exception_handling, enable_crash_throttling, manifest_service_inter face, manifest_service_user_data, imc_handle, *callback);
3285 } 3285 }
3286 3286
3287 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) { 3287 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) {
3288 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3288 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3289 return iface->StartPpapiProxy(instance); 3289 return iface->StartPpapiProxy(instance);
3290 } 3290 }
3291 3291
3292 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { 3292 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) {
3293 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3293 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3294 return iface->UrandomFD(); 3294 return iface->UrandomFD();
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
5216 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript 5216 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript
5217 }; 5217 };
5218 5218
5219 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = { 5219 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = {
5220 .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 5220 .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
5221 }; 5221 };
5222 5222
5223 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ 5223 /* Not generating wrapper interface for PPP_ManifestService_1_0 */
5224 5224
5225 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 5225 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
5226 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime , const char* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_no nsfi_mode, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool en able_exception_handling, PP_Bool enable_crash_throttling, const struct PPP_Manif estService_1_0* manifest_service_interface, void* manifest_service_user_data, vo id* imc_handle, struct PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Priva te_LaunchSelLdr, 5226 .LaunchSelLdr = (void (*)(PP_Instance instance, PP_Bool main_service_runtime , const char* alleged_url, const struct PP_NaClFileInfo* nexe_file_info, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool uses_nonsfi_mode, PP_Bool enable_ppapi_de v, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool e nable_crash_throttling, const struct PPP_ManifestService_1_0* manifest_service_i nterface, void* manifest_service_user_data, void* imc_handle, struct PP_Completi onCallback callback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr,
5227 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy, 5227 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy,
5228 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 5228 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
5229 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 5229 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
5230 .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, 5230 .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,
5231 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC l_Private_GetReadonlyPnaclFd, 5231 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* url))&Pnacl_M25_PPB_NaC l_Private_GetReadonlyPnaclFd,
5232 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5232 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5233 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5233 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5234 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5234 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5235 .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, 5235 .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,
5236 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us, int64_t total_t ime_us))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 5236 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us, int64_t total_t ime_us))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
6296 6296
6297 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6297 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6298 if (wrapper->real_iface == NULL) { 6298 if (wrapper->real_iface == NULL) {
6299 const void *iface = (*__real_PPPGetInterface)(name); 6299 const void *iface = (*__real_PPPGetInterface)(name);
6300 if (NULL == iface) return NULL; 6300 if (NULL == iface) return NULL;
6301 wrapper->real_iface = iface; 6301 wrapper->real_iface = iface;
6302 } 6302 }
6303 6303
6304 return wrapper->wrapped_iface; 6304 return wrapper->wrapped_iface;
6305 } 6305 }
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/service_runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698