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

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

Issue 163433015: Add sandbox ISA and extra compile flag fields to PNaCl translation cache key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: retry upload again Created 6 years, 10 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/pnacl_coordinator.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/generators/pnacl_shim.h" 7 #include "ppapi/generators/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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) { 3168 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) {
3169 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3169 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3170 return iface->CreateTemporaryFile(instance); 3170 return iface->CreateTemporaryFile(instance);
3171 } 3171 }
3172 3172
3173 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) { 3173 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNumberOfProcessors(void) {
3174 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3174 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3175 return iface->GetNumberOfProcessors(); 3175 return iface->GetNumberOfProcessors();
3176 } 3176 }
3177 3177
3178 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNexeFd(PP_Instance instance, const char* pexe_url, uint32_t abi_version, uint32_t opt_level, const char* last_modif ied, const char* etag, PP_Bool has_no_store_header, PP_Bool* is_hit, PP_FileHand le* nexe_handle, struct PP_CompletionCallback* callback) { 3178 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNexeFd(PP_Instance instance, const char* pexe_url, uint32_t abi_version, uint32_t opt_level, const char* last_modif ied, const char* etag, PP_Bool has_no_store_header, const char* sandbox_isa, con st char* extra_flags, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_Com pletionCallback* callback) {
3179 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3179 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3180 return iface->GetNexeFd(instance, pexe_url, abi_version, opt_level, last_modif ied, etag, has_no_store_header, is_hit, nexe_handle, *callback); 3180 return iface->GetNexeFd(instance, pexe_url, abi_version, opt_level, last_modif ied, etag, has_no_store_header, sandbox_isa, extra_flags, is_hit, nexe_handle, * callback);
3181 } 3181 }
3182 3182
3183 static void Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success) { 3183 static void Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success) {
3184 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3184 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3185 iface->ReportTranslationFinished(instance, success); 3185 iface->ReportTranslationFinished(instance, success);
3186 } 3186 }
3187 3187
3188 static PP_ExternalPluginResult Pnacl_M25_PPB_NaCl_Private_ReportNaClError(PP_Ins tance instance, PP_NaClError message_id) { 3188 static PP_ExternalPluginResult Pnacl_M25_PPB_NaCl_Private_ReportNaClError(PP_Ins tance instance, PP_NaClError message_id) {
3189 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3189 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3190 return iface->ReportNaClError(instance, message_id); 3190 return iface->ReportNaClError(instance, message_id);
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after
5077 5077
5078 static struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 5078 static struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
5079 .LaunchSelLdr = (void (*)(PP_Instance instance, const char* alleged_url, PP_ Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool enable_dync ode_syscalls, PP_Bool enable_exception_handling, PP_Bool enable_crash_throttling , void* imc_handle, struct PP_Var* error_message, struct PP_CompletionCallback c allback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr, 5079 .LaunchSelLdr = (void (*)(PP_Instance instance, const char* alleged_url, PP_ Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool enable_dync ode_syscalls, PP_Bool enable_exception_handling, PP_Bool enable_crash_throttling , void* imc_handle, struct PP_Var* error_message, struct PP_CompletionCallback c allback))&Pnacl_M25_PPB_NaCl_Private_LaunchSelLdr,
5080 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M25_PPB_NaCl_Private_StartPpapiProxy, 5080 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M25_PPB_NaCl_Private_StartPpapiProxy,
5081 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 5081 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
5082 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 5082 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
5083 .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, 5083 .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,
5084 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd, 5084 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd,
5085 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5085 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5086 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5086 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5087 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* last_modified, const char* etag, PP_Bool has_no_store_header, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struc t PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, 5087 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* last_modified, const char* etag, PP_Bool has_no_store_header, const char* sandbox_isa, const char* extra_flags, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callba ck))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd,
5088 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 5088 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
5089 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M25_PPB_NaCl_Private_ReportNaClError, 5089 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M25_PPB_NaCl_Private_ReportNaClError,
5090 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P rivate_OpenNaClExecutable, 5090 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P rivate_OpenNaClExecutable,
5091 .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, 5091 .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,
5092 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty 5092 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty
5093 }; 5093 };
5094 5094
5095 static struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0 _1 = { 5095 static struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0 _1 = {
5096 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, 5096 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual,
5097 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual, 5097 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual,
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
6155 if (NULL == iface) return NULL; 6155 if (NULL == iface) return NULL;
6156 wrapper->real_iface = iface; 6156 wrapper->real_iface = iface;
6157 } 6157 }
6158 6158
6159 if (wrapper->wrapped_iface) { 6159 if (wrapper->wrapped_iface) {
6160 return wrapper->wrapped_iface; 6160 return wrapper->wrapped_iface;
6161 } else { 6161 } else {
6162 return wrapper->real_iface; 6162 return wrapper->real_iface;
6163 } 6163 }
6164 } 6164 }
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698