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

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

Issue 22309007: Add success status to ReportTranslationFinished in ppb_nacl_private and IPC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jvoung, dmichael reviews Created 7 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/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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after
2851 static PP_FileHandle Pnacl_M13_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) { 2851 static PP_FileHandle Pnacl_M13_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) {
2852 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2852 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2853 return iface->CreateTemporaryFile(instance); 2853 return iface->CreateTemporaryFile(instance);
2854 } 2854 }
2855 2855
2856 static int32_t Pnacl_M13_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* is_hit, PP_FileHandle* nexe_handle, struct PP_Co mpletionCallback* callback) { 2856 static int32_t Pnacl_M13_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* is_hit, PP_FileHandle* nexe_handle, struct PP_Co mpletionCallback* callback) {
2857 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2857 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2858 return iface->GetNexeFd(instance, pexe_url, abi_version, opt_level, last_modif ied, etag, is_hit, nexe_handle, *callback); 2858 return iface->GetNexeFd(instance, pexe_url, abi_version, opt_level, last_modif ied, etag, is_hit, nexe_handle, *callback);
2859 } 2859 }
2860 2860
2861 static void Pnacl_M13_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance) { 2861 static void Pnacl_M13_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success) {
2862 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2862 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2863 iface->ReportTranslationFinished(instance); 2863 iface->ReportTranslationFinished(instance, success);
2864 } 2864 }
2865 2865
2866 static PP_Bool Pnacl_M13_PPB_NaCl_Private_IsOffTheRecord(void) { 2866 static PP_Bool Pnacl_M13_PPB_NaCl_Private_IsOffTheRecord(void) {
2867 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2867 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2868 return iface->IsOffTheRecord(); 2868 return iface->IsOffTheRecord();
2869 } 2869 }
2870 2870
2871 static PP_Bool Pnacl_M13_PPB_NaCl_Private_IsPnaclEnabled(void) { 2871 static PP_Bool Pnacl_M13_PPB_NaCl_Private_IsPnaclEnabled(void) {
2872 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2872 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2873 return iface->IsPnaclEnabled(); 2873 return iface->IsPnaclEnabled();
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
4665 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 4665 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
4666 .LaunchSelLdr = (PP_ExternalPluginResult (*)(PP_Instance instance, const cha r* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, void* imc_ha ndle, struct PP_Var* error_message))&Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr, 4666 .LaunchSelLdr = (PP_ExternalPluginResult (*)(PP_Instance instance, const cha r* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, void* imc_ha ndle, struct PP_Var* error_message))&Pnacl_M13_PPB_NaCl_Private_LaunchSelLdr,
4667 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M13_PPB_NaCl_Private_StartPpapiProxy, 4667 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M13_PPB_NaCl_Private_StartPpapiProxy,
4668 .UrandomFD = (int32_t (*)(void))&Pnacl_M13_PPB_NaCl_Private_UrandomFD, 4668 .UrandomFD = (int32_t (*)(void))&Pnacl_M13_PPB_NaCl_Private_UrandomFD,
4669 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 4669 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
4670 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M13_PPB_NaCl_Private_BrokerDuplicateHandle, 4670 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M13_PPB_NaCl_Private_BrokerDuplicateHandle,
4671 .EnsurePnaclInstalled = (int32_t (*)(PP_Instance instance, struct PP_Complet ionCallback callback))&Pnacl_M13_PPB_NaCl_Private_EnsurePnaclInstalled, 4671 .EnsurePnaclInstalled = (int32_t (*)(PP_Instance instance, struct PP_Complet ionCallback callback))&Pnacl_M13_PPB_NaCl_Private_EnsurePnaclInstalled,
4672 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M13_PP B_NaCl_Private_GetReadonlyPnaclFd, 4672 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M13_PP B_NaCl_Private_GetReadonlyPnaclFd,
4673 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M13_P PB_NaCl_Private_CreateTemporaryFile, 4673 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M13_P PB_NaCl_Private_CreateTemporaryFile,
4674 .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* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb ack))&Pnacl_M13_PPB_NaCl_Private_GetNexeFd, 4674 .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* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb ack))&Pnacl_M13_PPB_NaCl_Private_GetNexeFd,
4675 .ReportTranslationFinished = (void (*)(PP_Instance instance))&Pnacl_M13_PPB_ NaCl_Private_ReportTranslationFinished, 4675 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M13_PPB_NaCl_Private_ReportTranslationFinished,
4676 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsOffTheRec ord, 4676 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsOffTheRec ord,
4677 .IsPnaclEnabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsPnaclEnab led, 4677 .IsPnaclEnabled = (PP_Bool (*)(void))&Pnacl_M13_PPB_NaCl_Private_IsPnaclEnab led,
4678 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M13_PPB_NaCl_Private_ReportNaClError, 4678 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M13_PPB_NaCl_Private_ReportNaClError,
4679 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M13_PPB_NaCl_P rivate_OpenNaClExecutable 4679 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M13_PPB_NaCl_P rivate_OpenNaClExecutable
4680 }; 4680 };
4681 4681
4682 struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0_1 = { 4682 struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0_1 = {
4683 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, 4683 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual,
4684 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual, 4684 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual,
4685 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_ Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe, 4685 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_ Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe,
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
5671 if (NULL == iface) return NULL; 5671 if (NULL == iface) return NULL;
5672 wrapper->real_iface = iface; 5672 wrapper->real_iface = iface;
5673 } 5673 }
5674 5674
5675 if (wrapper->wrapped_iface) { 5675 if (wrapper->wrapped_iface) {
5676 return wrapper->wrapped_iface; 5676 return wrapper->wrapped_iface;
5677 } else { 5677 } else {
5678 return wrapper->real_iface; 5678 return wrapper->real_iface;
5679 } 5679 }
5680 } 5680 }
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