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

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

Issue 512323002: NaCl: Detect plugin crashes via EOF on Chromium IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« 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 3474 matching lines...) Expand 10 before | Expand all | Expand 10 after
3485 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_ NaClError error, const char* error_message) { 3485 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadError(PP_Instance instance, PP_ NaClError error, const char* error_message) {
3486 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;
3487 iface->ReportLoadError(instance, error, error_message); 3487 iface->ReportLoadError(instance, error, error_message);
3488 } 3488 }
3489 3489
3490 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadAbort(PP_Instance instance) { 3490 static void Pnacl_M25_PPB_NaCl_Private_ReportLoadAbort(PP_Instance instance) {
3491 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;
3492 iface->ReportLoadAbort(instance); 3492 iface->ReportLoadAbort(instance);
3493 } 3493 }
3494 3494
3495 static void Pnacl_M25_PPB_NaCl_Private_NexeDidCrash(PP_Instance instance) {
3496 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3497 iface->NexeDidCrash(instance);
3498 }
3499
3500 static void Pnacl_M25_PPB_NaCl_Private_InstanceCreated(PP_Instance instance) { 3495 static void Pnacl_M25_PPB_NaCl_Private_InstanceCreated(PP_Instance instance) {
3501 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3496 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3502 iface->InstanceCreated(instance); 3497 iface->InstanceCreated(instance);
3503 } 3498 }
3504 3499
3505 static void Pnacl_M25_PPB_NaCl_Private_InstanceDestroyed(PP_Instance instance) { 3500 static void Pnacl_M25_PPB_NaCl_Private_InstanceDestroyed(PP_Instance instance) {
3506 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3501 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3507 iface->InstanceDestroyed(instance); 3502 iface->InstanceDestroyed(instance);
3508 } 3503 }
3509 3504
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
5401 .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, 5396 .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,
5402 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd, 5397 .GetReadExecPnaclFd = (void (*)(const char* url, struct PP_NaClFileInfo* out _file_info))&Pnacl_M25_PPB_NaCl_Private_GetReadExecPnaclFd,
5403 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 5398 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
5404 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5399 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5405 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5400 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5406 .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, 5401 .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,
5407 .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, 5402 .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,
5408 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess, 5403 .ReportLoadSuccess = (void (*)(PP_Instance instance, uint64_t loaded_bytes, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_ReportLoadSuccess,
5409 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError, 5404 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message))&Pnacl_M25_PPB_NaCl_Private_ReportLoadError,
5410 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort, 5405 .ReportLoadAbort = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_ReportLoadAbort,
5411 .NexeDidCrash = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Private_ NexeDidCrash,
5412 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated, 5406 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated,
5413 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed, 5407 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed,
5414 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL, 5408 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL,
5415 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch, 5409 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch,
5416 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole, 5410 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole,
5417 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState, 5411 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState,
5418 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog, 5412 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog,
5419 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin, 5413 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin,
5420 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize, 5414 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize,
5421 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest, 5415 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest,
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
6488 6482
6489 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6483 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6490 if (wrapper->real_iface == NULL) { 6484 if (wrapper->real_iface == NULL) {
6491 const void *iface = (*__real_PPPGetInterface)(name); 6485 const void *iface = (*__real_PPPGetInterface)(name);
6492 if (NULL == iface) return NULL; 6486 if (NULL == iface) return NULL;
6493 wrapper->real_iface = iface; 6487 wrapper->real_iface = iface;
6494 } 6488 }
6495 6489
6496 return wrapper->wrapped_iface; 6490 return wrapper->wrapped_iface;
6497 } 6491 }
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