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

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

Issue 469423002: NaCl: Send fatal log messages via shared memory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove commented out line Created 6 years, 4 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 3329 matching lines...) Expand 10 before | Expand all | Expand 10 after
3340 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_ NaClError error, const char* error_message) { 3340 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_ NaClError error, const char* error_message) {
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->ReportLoadError(instance, error, error_message); 3342 iface->ReportLoadError(instance, error, error_message);
3343 } 3343 }
3344 3344
3345 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadAbort(PP_Instance instance) { 3345 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadAbort(PP_Instance instance) {
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->ReportLoadAbort(instance); 3347 iface->ReportLoadAbort(instance);
3348 } 3348 }
3349 3349
3350 static void Pnacl_M25_PPB_NaCl_Private_NexeDidCrash(PP_Instance instance, const char* crash_log) { 3350 static void Pnacl_M25_PPB_NaCl_Private_NexeDidCrash(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->NexeDidCrash(instance, crash_log); 3352 iface->NexeDidCrash(instance);
3353 } 3353 }
3354 3354
3355 static void Pnacl_M25_PPB_NaCl_Private_InstanceCreated(PP_Instance instance) { 3355 static void Pnacl_M25_PPB_NaCl_Private_InstanceCreated(PP_Instance instance) {
3356 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3356 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3357 iface->InstanceCreated(instance); 3357 iface->InstanceCreated(instance);
3358 } 3358 }
3359 3359
3360 static void Pnacl_M25_PPB_NaCl_Private_InstanceDestroyed(PP_Instance instance) { 3360 static void Pnacl_M25_PPB_NaCl_Private_InstanceDestroyed(PP_Instance instance) {
3361 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3361 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3362 iface->InstanceDestroyed(instance); 3362 iface->InstanceDestroyed(instance);
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
5233 .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, 5233 .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,
5234 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd, 5234 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd,
5235 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5235 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5236 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5236 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5237 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5237 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5238 .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, 5238 .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,
5239 .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, 5239 .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,
5240 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess, 5240 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess,
5241 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, 5241 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError,
5242 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort, 5242 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort,
5243 .NexeDidCrash = (void (*)(PP_Instance instance, const char* crash_log))&Pnac l_M25_PPB_NaCl_Private_NexeDidCrash, 5243 .NexeDidCrash = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Private_ NexeDidCrash,
5244 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated, 5244 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated,
5245 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed, 5245 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed,
5246 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL, 5246 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL,
5247 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch, 5247 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch,
5248 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole, 5248 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole,
5249 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState, 5249 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState,
5250 .GetExitStatus = (int32_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priv ate_GetExitStatus, 5250 .GetExitStatus = (int32_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priv ate_GetExitStatus,
5251 .SetExitStatus = (void (*)(PP_Instance instance, int32_t exit_status))&Pnacl _M25_PPB_NaCl_Private_SetExitStatus, 5251 .SetExitStatus = (void (*)(PP_Instance instance, int32_t exit_status))&Pnacl _M25_PPB_NaCl_Private_SetExitStatus,
5252 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog, 5252 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog,
5253 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin, 5253 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin,
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
6302 6302
6303 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6303 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6304 if (wrapper->real_iface == NULL) { 6304 if (wrapper->real_iface == NULL) {
6305 const void *iface = (*__real_PPPGetInterface)(name); 6305 const void *iface = (*__real_PPPGetInterface)(name);
6306 if (NULL == iface) return NULL; 6306 if (NULL == iface) return NULL;
6307 wrapper->real_iface = iface; 6307 wrapper->real_iface = iface;
6308 } 6308 }
6309 6309
6310 return wrapper->wrapped_iface; 6310 return wrapper->wrapped_iface;
6311 } 6311 }
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