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

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

Issue 367153004: Pepper: Remove program_url in trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/plugin.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 3319 matching lines...) Expand 10 before | Expand all | Expand 10 after
3330 static void Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success, int32_t opt_level, int64_t pexe_size, int64_t compile_ti me_us) { 3330 static void Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success, int32_t opt_level, int64_t pexe_size, int64_t compile_ti me_us) {
3331 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3331 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3332 iface->ReportTranslationFinished(instance, success, opt_level, pexe_size, comp ile_time_us); 3332 iface->ReportTranslationFinished(instance, success, opt_level, pexe_size, comp ile_time_us);
3333 } 3333 }
3334 3334
3335 static void Pnacl_M25_PPB_NaCl_Private_DispatchEvent(PP_Instance instance, PP_Na ClEventType event_type, const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes, uint64_t total_bytes) { 3335 static void Pnacl_M25_PPB_NaCl_Private_DispatchEvent(PP_Instance instance, PP_Na ClEventType event_type, const char* resource_url, PP_Bool length_is_computable, uint64_t loaded_bytes, uint64_t total_bytes) {
3336 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3336 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3337 iface->DispatchEvent(instance, event_type, resource_url, length_is_computable, loaded_bytes, total_bytes); 3337 iface->DispatchEvent(instance, event_type, resource_url, length_is_computable, loaded_bytes, total_bytes);
3338 } 3338 }
3339 3339
3340 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess(PP_Instance instance, c onst char* url, uint64_t loaded_bytes, uint64_t total_bytes) { 3340 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess(PP_Instance instance, u int64_t loaded_bytes, uint64_t total_bytes) {
3341 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3341 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3342 iface->ReportLoadSuccess(instance, url, loaded_bytes, total_bytes); 3342 iface->ReportLoadSuccess(instance, loaded_bytes, total_bytes);
3343 } 3343 }
3344 3344
3345 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_ NaClError error, const char* error_message) { 3345 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_ NaClError error, const char* error_message) {
3346 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3346 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3347 iface->ReportLoadError(instance, error, error_message); 3347 iface->ReportLoadError(instance, error, error_message);
3348 } 3348 }
3349 3349
3350 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadAbort(PP_Instance instance) { 3350 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadAbort(PP_Instance instance) {
3351 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3351 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3352 iface->ReportLoadAbort(instance); 3352 iface->ReportLoadAbort(instance);
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
5224 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 5224 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
5225 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 5225 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
5226 .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, 5226 .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,
5227 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd, 5227 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd,
5228 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5228 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5229 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5229 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5230 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5230 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5231 .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, 5231 .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,
5232 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_ NaCl_Private_ReportTranslationFinished, 5232 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success , int32_t opt_level, int64_t pexe_size, int64_t compile_time_us))&Pnacl_M25_PPB_ NaCl_Private_ReportTranslationFinished,
5233 .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, 5233 .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,
5234 .ReportLoadSuccess = (void (*)(PP_Instance instance, const char* url, uint64 _t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuc cess, 5234 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess,
5235 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, 5235 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError,
5236 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort, 5236 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort,
5237 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac l_M25_PPB_NaCl_Private_NexeDidCrash, 5237 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac l_M25_PPB_NaCl_Private_NexeDidCrash,
5238 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated, 5238 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated,
5239 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed, 5239 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed,
5240 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL, 5240 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL,
5241 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch, 5241 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch,
5242 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole, 5242 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole,
5243 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState, 5243 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState,
5244 .GetExitStatus = (int32_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priv ate_GetExitStatus, 5244 .GetExitStatus = (int32_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priv ate_GetExitStatus,
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
6292 6292
6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6294 if (wrapper->real_iface == NULL) { 6294 if (wrapper->real_iface == NULL) {
6295 const void *iface = (*__real_PPPGetInterface)(name); 6295 const void *iface = (*__real_PPPGetInterface)(name);
6296 if (NULL == iface) return NULL; 6296 if (NULL == iface) return NULL;
6297 wrapper->real_iface = iface; 6297 wrapper->real_iface = iface;
6298 } 6298 }
6299 6299
6300 return wrapper->wrapped_iface; 6300 return wrapper->wrapped_iface;
6301 } 6301 }
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698