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

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

Issue 484783002: Pepper: Report NaCl exit status over Chromium IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 3 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 3464 matching lines...) Expand 10 before | Expand all | Expand 10 after
3475 static void Pnacl_M25_PPB_NaCl_Private_LogToConsole(PP_Instance instance, const char* message) { 3475 static void Pnacl_M25_PPB_NaCl_Private_LogToConsole(PP_Instance instance, const char* message) {
3476 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3476 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3477 iface->LogToConsole(instance, message); 3477 iface->LogToConsole(instance, message);
3478 } 3478 }
3479 3479
3480 static PP_NaClReadyState Pnacl_M25_PPB_NaCl_Private_GetNaClReadyState(PP_Instanc e instance) { 3480 static PP_NaClReadyState Pnacl_M25_PPB_NaCl_Private_GetNaClReadyState(PP_Instanc e instance) {
3481 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3481 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3482 return iface->GetNaClReadyState(instance); 3482 return iface->GetNaClReadyState(instance);
3483 } 3483 }
3484 3484
3485 static int32_t Pnacl_M25_PPB_NaCl_Private_GetExitStatus(PP_Instance instance) {
3486 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3487 return iface->GetExitStatus(instance);
3488 }
3489
3490 static void Pnacl_M25_PPB_NaCl_Private_SetExitStatus(PP_Instance instance, int32 _t exit_status) {
3491 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3492 iface->SetExitStatus(instance, exit_status);
3493 }
3494
3495 static void Pnacl_M25_PPB_NaCl_Private_Vlog(const char* message) { 3485 static void Pnacl_M25_PPB_NaCl_Private_Vlog(const char* message) {
3496 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3486 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3497 iface->Vlog(message); 3487 iface->Vlog(message);
3498 } 3488 }
3499 3489
3500 static void Pnacl_M25_PPB_NaCl_Private_InitializePlugin(PP_Instance instance, ui nt32_t argc, const char* argn[], const char* argv[]) { 3490 static void Pnacl_M25_PPB_NaCl_Private_InitializePlugin(PP_Instance instance, ui nt32_t argc, const char* argn[], const char* argv[]) {
3501 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3491 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3502 iface->InitializePlugin(instance, argc, argn, argv); 3492 iface->InitializePlugin(instance, argc, argn, argv);
3503 } 3493 }
3504 3494
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
5367 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess, 5357 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess,
5368 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, 5358 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError,
5369 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort, 5359 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort,
5370 .NexeDidCrash = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Private_ NexeDidCrash, 5360 .NexeDidCrash = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Private_ NexeDidCrash,
5371 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated, 5361 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated,
5372 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed, 5362 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed,
5373 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL, 5363 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL,
5374 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch, 5364 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch,
5375 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole, 5365 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole,
5376 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState, 5366 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState,
5377 .GetExitStatus = (int32_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priv ate_GetExitStatus,
5378 .SetExitStatus = (void (*)(PP_Instance instance, int32_t exit_status))&Pnacl _M25_PPB_NaCl_Private_SetExitStatus,
5379 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog, 5367 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog,
5380 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin, 5368 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin,
5381 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize, 5369 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize,
5382 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest, 5370 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest,
5383 .GetManifestBaseURL = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M25_PP B_NaCl_Private_GetManifestBaseURL, 5371 .GetManifestBaseURL = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M25_PP B_NaCl_Private_GetManifestBaseURL,
5384 .ProcessNaClManifest = (void (*)(PP_Instance instance, const char* program_u rl))&Pnacl_M25_PPB_NaCl_Private_ProcessNaClManifest, 5372 .ProcessNaClManifest = (void (*)(PP_Instance instance, const char* program_u rl))&Pnacl_M25_PPB_NaCl_Private_ProcessNaClManifest,
5385 .DevInterfacesEnabled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_DevInterfacesEnabled, 5373 .DevInterfacesEnabled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_DevInterfacesEnabled,
5386 .GetManifestProgramURL = (PP_Bool (*)(PP_Instance instance, struct PP_Var* f ull_url, struct PP_PNaClOptions* pnacl_options, PP_Bool* uses_nonsfi_mode))&Pnac l_M25_PPB_NaCl_Private_GetManifestProgramURL, 5374 .GetManifestProgramURL = (PP_Bool (*)(PP_Instance instance, struct PP_Var* f ull_url, struct PP_PNaClOptions* pnacl_options, PP_Bool* uses_nonsfi_mode))&Pnac l_M25_PPB_NaCl_Private_GetManifestProgramURL,
5387 .GetPnaclResourceInfo = (PP_Bool (*)(PP_Instance instance, struct PP_Var* ll c_tool_name, struct PP_Var* ld_tool_name))&Pnacl_M25_PPB_NaCl_Private_GetPnaclRe sourceInfo, 5375 .GetPnaclResourceInfo = (PP_Bool (*)(PP_Instance instance, struct PP_Var* ll c_tool_name, struct PP_Var* ld_tool_name))&Pnacl_M25_PPB_NaCl_Private_GetPnaclRe sourceInfo,
5388 .GetCpuFeatureAttrs = (struct PP_Var (*)(void))&Pnacl_M25_PPB_NaCl_Private_G etCpuFeatureAttrs, 5376 .GetCpuFeatureAttrs = (struct PP_Var (*)(void))&Pnacl_M25_PPB_NaCl_Private_G etCpuFeatureAttrs,
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
6443 6431
6444 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6432 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6445 if (wrapper->real_iface == NULL) { 6433 if (wrapper->real_iface == NULL) {
6446 const void *iface = (*__real_PPPGetInterface)(name); 6434 const void *iface = (*__real_PPPGetInterface)(name);
6447 if (NULL == iface) return NULL; 6435 if (NULL == iface) return NULL;
6448 wrapper->real_iface = iface; 6436 wrapper->real_iface = iface;
6449 } 6437 }
6450 6438
6451 return wrapper->wrapped_iface; 6439 return wrapper->wrapped_iface;
6452 } 6440 }
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