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

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

Issue 728113002: obsolete: SFI NaCl: Batch-open resource files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 1 month 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/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 3632 matching lines...) Expand 10 before | Expand all | Expand 10 after
3643 static PP_Bool Pnacl_M25_PPB_NaCl_Private_GetPnaclResourceInfo(PP_Instance insta nce, struct PP_Var* llc_tool_name, struct PP_Var* ld_tool_name) { 3643 static PP_Bool Pnacl_M25_PPB_NaCl_Private_GetPnaclResourceInfo(PP_Instance insta nce, struct PP_Var* llc_tool_name, struct PP_Var* ld_tool_name) {
3644 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3644 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3645 return iface->GetPnaclResourceInfo(instance, llc_tool_name, ld_tool_name); 3645 return iface->GetPnaclResourceInfo(instance, llc_tool_name, ld_tool_name);
3646 } 3646 }
3647 3647
3648 static void Pnacl_M25_PPB_NaCl_Private_GetCpuFeatureAttrs(struct PP_Var* _struct _result) { 3648 static void Pnacl_M25_PPB_NaCl_Private_GetCpuFeatureAttrs(struct PP_Var* _struct _result) {
3649 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3649 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3650 *_struct_result = iface->GetCpuFeatureAttrs(); 3650 *_struct_result = iface->GetCpuFeatureAttrs();
3651 } 3651 }
3652 3652
3653 static void Pnacl_M25_PPB_NaCl_Private_DownloadNexe(PP_Instance instance, const char* url, PP_Bool download_resource_files, struct PP_NaClFileInfo* file_info, s truct PP_NaClResourceFileHandle** resource_file_handles, uint32_t* resource_file _handles_len, struct PP_CompletionCallback* callback) { 3653 static void Pnacl_M25_PPB_NaCl_Private_DownloadNexe(PP_Instance instance, const char* url, struct PP_NaClFileInfo* file_info, struct PP_NaClResourceFileHandle** resource_file_handles, uint32_t* resource_file_handles_len, struct PP_Completio nCallback* callback) {
3654 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3654 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3655 iface->DownloadNexe(instance, url, download_resource_files, file_info, resourc e_file_handles, resource_file_handles_len, *callback); 3655 iface->DownloadNexe(instance, url, file_info, resource_file_handles, resource_ file_handles_len, *callback);
3656 } 3656 }
3657 3657
3658 static void Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus(PP_Instance instance, int32_t load_status, int32_t max_status) { 3658 static void Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus(PP_Instance instance, int32_t load_status, int32_t max_status) {
3659 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3659 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3660 iface->ReportSelLdrStatus(instance, load_status, max_status); 3660 iface->ReportSelLdrStatus(instance, load_status, max_status);
3661 } 3661 }
3662 3662
3663 static void Pnacl_M25_PPB_NaCl_Private_LogTranslateTime(const char* histogram_na me, int64_t time_us) { 3663 static void Pnacl_M25_PPB_NaCl_Private_LogTranslateTime(const char* histogram_na me, int64_t time_us) {
3664 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3664 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3665 iface->LogTranslateTime(histogram_name, time_us); 3665 iface->LogTranslateTime(histogram_name, time_us);
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
5543 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog, 5543 .Vlog = (void (*)(const char* message))&Pnacl_M25_PPB_NaCl_Private_Vlog,
5544 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin, 5544 .InitializePlugin = (void (*)(PP_Instance instance, uint32_t argc, const cha r* argn[], const char* argv[]))&Pnacl_M25_PPB_NaCl_Private_InitializePlugin,
5545 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize, 5545 .GetNexeSize = (int64_t (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Privat e_GetNexeSize,
5546 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest, 5546 .RequestNaClManifest = (void (*)(PP_Instance instance, struct PP_CompletionC allback callback))&Pnacl_M25_PPB_NaCl_Private_RequestNaClManifest,
5547 .GetManifestBaseURL = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M25_PP B_NaCl_Private_GetManifestBaseURL, 5547 .GetManifestBaseURL = (struct PP_Var (*)(PP_Instance instance))&Pnacl_M25_PP B_NaCl_Private_GetManifestBaseURL,
5548 .ProcessNaClManifest = (void (*)(PP_Instance instance, const char* program_u rl))&Pnacl_M25_PPB_NaCl_Private_ProcessNaClManifest, 5548 .ProcessNaClManifest = (void (*)(PP_Instance instance, const char* program_u rl))&Pnacl_M25_PPB_NaCl_Private_ProcessNaClManifest,
5549 .DevInterfacesEnabled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_DevInterfacesEnabled, 5549 .DevInterfacesEnabled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_DevInterfacesEnabled,
5550 .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, 5550 .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,
5551 .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, 5551 .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,
5552 .GetCpuFeatureAttrs = (struct PP_Var (*)(void))&Pnacl_M25_PPB_NaCl_Private_G etCpuFeatureAttrs, 5552 .GetCpuFeatureAttrs = (struct PP_Var (*)(void))&Pnacl_M25_PPB_NaCl_Private_G etCpuFeatureAttrs,
5553 .DownloadNexe = (void (*)(PP_Instance instance, const char* url, PP_Bool dow nload_resource_files, struct PP_NaClFileInfo* file_info, struct PP_NaClResourceF ileHandle** resource_file_handles, uint32_t* resource_file_handles_len, struct P P_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Private_DownloadNexe, 5553 .DownloadNexe = (void (*)(PP_Instance instance, const char* url, struct PP_N aClFileInfo* file_info, struct PP_NaClResourceFileHandle** resource_file_handles , uint32_t* resource_file_handles_len, struct PP_CompletionCallback callback))&P nacl_M25_PPB_NaCl_Private_DownloadNexe,
5554 .ReportSelLdrStatus = (void (*)(PP_Instance instance, int32_t load_status, i nt32_t max_status))&Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus, 5554 .ReportSelLdrStatus = (void (*)(PP_Instance instance, int32_t load_status, i nt32_t max_status))&Pnacl_M25_PPB_NaCl_Private_ReportSelLdrStatus,
5555 .LogTranslateTime = (void (*)(const char* histogram_name, int64_t time_us))& Pnacl_M25_PPB_NaCl_Private_LogTranslateTime, 5555 .LogTranslateTime = (void (*)(const char* histogram_name, int64_t time_us))& Pnacl_M25_PPB_NaCl_Private_LogTranslateTime,
5556 .OpenManifestEntry = (void (*)(PP_Instance instance, PP_Bool is_helper_proce ss, const char* key, struct PP_NaClFileInfo* file_info, struct PP_CompletionCall back callback))&Pnacl_M25_PPB_NaCl_Private_OpenManifestEntry, 5556 .OpenManifestEntry = (void (*)(PP_Instance instance, PP_Bool is_helper_proce ss, const char* key, struct PP_NaClFileInfo* file_info, struct PP_CompletionCall back callback))&Pnacl_M25_PPB_NaCl_Private_OpenManifestEntry,
5557 .SetPNaClStartTime = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_SetPNaClStartTime, 5557 .SetPNaClStartTime = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_SetPNaClStartTime,
5558 .StreamPexe = (void (*)(PP_Instance instance, const char* pexe_url, int32_t opt_level, const struct PPP_PexeStreamHandler_1_0* stream_handler, void* stream_ handler_user_data))&Pnacl_M25_PPB_NaCl_Private_StreamPexe 5558 .StreamPexe = (void (*)(PP_Instance instance, const char* pexe_url, int32_t opt_level, const struct PPP_PexeStreamHandler_1_0* stream_handler, void* stream_ handler_user_data))&Pnacl_M25_PPB_NaCl_Private_StreamPexe
5559 }; 5559 };
5560 5560
5561 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri vate_0_1 = { 5561 static const struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Pri vate_0_1 = {
5562 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, 5562 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual,
5563 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual, 5563 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual,
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
6623 6623
6624 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6624 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6625 if (wrapper->real_iface == NULL) { 6625 if (wrapper->real_iface == NULL) {
6626 const void *iface = (*__real_PPPGetInterface)(name); 6626 const void *iface = (*__real_PPPGetInterface)(name);
6627 if (NULL == iface) return NULL; 6627 if (NULL == iface) return NULL;
6628 wrapper->real_iface = iface; 6628 wrapper->real_iface = iface;
6629 } 6629 }
6630 6630
6631 return wrapper->wrapped_iface; 6631 return wrapper->wrapped_iface;
6632 } 6632 }
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