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

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

Issue 14588009: PPAPI/NaCl: Move event dispatching from the plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 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 | 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 3080 matching lines...) Expand 10 before | Expand all | Expand 10 after
3091 static PP_ExternalPluginResult Pnacl_M25_PPB_NaCl_Private_ReportNaClError(PP_Ins tance instance, PP_NaClError message_id) { 3091 static PP_ExternalPluginResult Pnacl_M25_PPB_NaCl_Private_ReportNaClError(PP_Ins tance instance, PP_NaClError message_id) {
3092 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3092 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3093 return iface->ReportNaClError(instance, message_id); 3093 return iface->ReportNaClError(instance, message_id);
3094 } 3094 }
3095 3095
3096 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_OpenNaClExecutable(PP_Instance i nstance, const char* file_url, uint64_t* file_token_lo, uint64_t* file_token_hi) { 3096 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_OpenNaClExecutable(PP_Instance i nstance, const char* file_url, uint64_t* file_token_lo, uint64_t* file_token_hi) {
3097 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3097 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3098 return iface->OpenNaClExecutable(instance, file_url, file_token_lo, file_token _hi); 3098 return iface->OpenNaClExecutable(instance, file_url, file_token_lo, file_token _hi);
3099 } 3099 }
3100 3100
3101 static void Pnacl_M25_PPB_NaCl_Private_DispatchEvent(PP_Instance instance, PP_Na ClEventType event_type, struct PP_Var* resource_url, PP_Bool length_is_computabl e, uint64_t loaded_bytes, uint64_t total_bytes) {
3102 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3103 iface->DispatchEvent(instance, event_type, *resource_url, length_is_computable , loaded_bytes, total_bytes);
3104 }
3105
3101 /* End wrapper methods for PPB_NaCl_Private_1_0 */ 3106 /* End wrapper methods for PPB_NaCl_Private_1_0 */
3102 3107
3103 /* Begin wrapper methods for PPB_NetAddress_Private_0_1 */ 3108 /* Begin wrapper methods for PPB_NetAddress_Private_0_1 */
3104 3109
3105 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreEqual(const struct PP_NetAddr ess_Private* addr1, const struct PP_NetAddress_Private* addr2) { 3110 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreEqual(const struct PP_NetAddr ess_Private* addr1, const struct PP_NetAddress_Private* addr2) {
3106 const struct PPB_NetAddress_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr ess_Private_0_1.real_iface; 3111 const struct PPB_NetAddress_Private_0_1 *iface = Pnacl_WrapperInfo_PPB_NetAddr ess_Private_0_1.real_iface;
3107 return iface->AreEqual(addr1, addr2); 3112 return iface->AreEqual(addr1, addr2);
3108 } 3113 }
3109 3114
3110 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreHostsEqual(const struct PP_Ne tAddress_Private* addr1, const struct PP_NetAddress_Private* addr2) { 3115 static PP_Bool Pnacl_M17_PPB_NetAddress_Private_AreHostsEqual(const struct PP_Ne tAddress_Private* addr1, const struct PP_NetAddress_Private* addr2) {
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
4938 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M25_PPB_NaCl_Private_StartPpapiProxy, 4943 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M25_PPB_NaCl_Private_StartPpapiProxy,
4939 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 4944 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
4940 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 4945 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
4941 .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, 4946 .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,
4942 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd, 4947 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd,
4943 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 4948 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
4944 .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 has_no_store_header, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struc t PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, 4949 .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 has_no_store_header, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struc t PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd,
4945 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 4950 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
4946 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsOffTheRec ord, 4951 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsOffTheRec ord,
4947 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M25_PPB_NaCl_Private_ReportNaClError, 4952 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M25_PPB_NaCl_Private_ReportNaClError,
4948 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P rivate_OpenNaClExecutable 4953 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P rivate_OpenNaClExecutable,
4954 .DispatchEvent = (void (*)(PP_Instance instance, PP_NaClEventType event_type , struct PP_Var resource_url, PP_Bool length_is_computable, uint64_t loaded_byte s, uint64_t total_bytes))&Pnacl_M25_PPB_NaCl_Private_DispatchEvent
4949 }; 4955 };
4950 4956
4951 struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0_1 = { 4957 struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0_1 = {
4952 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, 4958 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual,
4953 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual, 4959 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual,
4954 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_ Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe, 4960 .Describe = (struct PP_Var (*)(PP_Module module, const struct PP_NetAddress_ Private* addr, PP_Bool include_port))&Pnacl_M17_PPB_NetAddress_Private_Describe,
4955 .ReplacePort = (PP_Bool (*)(const struct PP_NetAddress_Private* src_addr, ui nt16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M17_PPB_NetAddress_P rivate_ReplacePort, 4961 .ReplacePort = (PP_Bool (*)(const struct PP_NetAddress_Private* src_addr, ui nt16_t port, struct PP_NetAddress_Private* addr_out))&Pnacl_M17_PPB_NetAddress_P rivate_ReplacePort,
4956 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad dr))&Pnacl_M17_PPB_NetAddress_Private_GetAnyAddress 4962 .GetAnyAddress = (void (*)(PP_Bool is_ipv6, struct PP_NetAddress_Private* ad dr))&Pnacl_M17_PPB_NetAddress_Private_GetAnyAddress
4957 }; 4963 };
4958 4964
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
5997 if (NULL == iface) return NULL; 6003 if (NULL == iface) return NULL;
5998 wrapper->real_iface = iface; 6004 wrapper->real_iface = iface;
5999 } 6005 }
6000 6006
6001 if (wrapper->wrapped_iface) { 6007 if (wrapper->wrapped_iface) {
6002 return wrapper->wrapped_iface; 6008 return wrapper->wrapped_iface;
6003 } else { 6009 } else {
6004 return wrapper->real_iface; 6010 return wrapper->real_iface;
6005 } 6011 }
6006 } 6012 }
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