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

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

Issue 282683002: Pepper: Simplify LaunchSelLdr error reporting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« 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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 3174 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface; 3185 const struct PPB_IsolatedFileSystem_Private_0_2 *iface = Pnacl_WrapperInfo_PPB _IsolatedFileSystem_Private_0_2.real_iface;
3186 return iface->Open(instance, type, file_system, *callback); 3186 return iface->Open(instance, type, file_system, *callback);
3187 } 3187 }
3188 3188
3189 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */ 3189 /* End wrapper methods for PPB_IsolatedFileSystem_Private_0_2 */
3190 3190
3191 /* Not generating wrapper methods for PPP_ManifestService_1_0 */ 3191 /* Not generating wrapper methods for PPP_ManifestService_1_0 */
3192 3192
3193 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */ 3193 /* Begin wrapper methods for PPB_NaCl_Private_1_0 */
3194 3194
3195 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) { 3195 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) {
3196 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3196 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3197 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); 3197 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);
3198 } 3198 }
3199 3199
3200 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) { 3200 static PP_Bool Pnacl_M25_PPB_NaCl_Private_StartPpapiProxy(PP_Instance instance) {
3201 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3201 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3202 return iface->StartPpapiProxy(instance); 3202 return iface->StartPpapiProxy(instance);
3203 } 3203 }
3204 3204
3205 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) { 3205 static int32_t Pnacl_M25_PPB_NaCl_Private_UrandomFD(void) {
3206 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3206 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3207 return iface->UrandomFD(); 3207 return iface->UrandomFD();
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
5133 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript 5133 .ExecuteScript = (struct PP_Var (*)(PP_Instance instance, struct PP_Var scri pt, struct PP_Var* exception))&Pnacl_M13_PPB_Instance_Private_ExecuteScript
5134 }; 5134 };
5135 5135
5136 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = { 5136 static const struct PPB_IsolatedFileSystem_Private_0_2 Pnacl_Wrappers_PPB_Isolat edFileSystem_Private_0_2 = {
5137 .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 5137 .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
5138 }; 5138 };
5139 5139
5140 /* Not generating wrapper interface for PPP_ManifestService_1_0 */ 5140 /* Not generating wrapper interface for PPP_ManifestService_1_0 */
5141 5141
5142 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 5142 static const struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
5143 .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, 5143 .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,
5144 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy, 5144 .StartPpapiProxy = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pr ivate_StartPpapiProxy,
5145 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 5145 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
5146 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 5146 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
5147 .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, 5147 .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,
5148 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd, 5148 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd,
5149 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5149 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5150 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5150 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5151 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5151 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5152 .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, 5152 .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,
5153 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 5153 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
6205 6205
6206 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6206 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6207 if (wrapper->real_iface == NULL) { 6207 if (wrapper->real_iface == NULL) {
6208 const void *iface = (*__real_PPPGetInterface)(name); 6208 const void *iface = (*__real_PPPGetInterface)(name);
6209 if (NULL == iface) return NULL; 6209 if (NULL == iface) return NULL;
6210 wrapper->real_iface = iface; 6210 wrapper->real_iface = iface;
6211 } 6211 }
6212 6212
6213 return wrapper->wrapped_iface; 6213 return wrapper->wrapped_iface;
6214 } 6214 }
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