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

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

Issue 212103002: Check NaCl debug mask (not just flag) before choosing PNaCl debug URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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/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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 3158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3169 static void Pnacl_M25_PPB_NaCl_Private_InstanceCreated(PP_Instance instance) { 3169 static void Pnacl_M25_PPB_NaCl_Private_InstanceCreated(PP_Instance instance) {
3170 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3170 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3171 iface->InstanceCreated(instance); 3171 iface->InstanceCreated(instance);
3172 } 3172 }
3173 3173
3174 static void Pnacl_M25_PPB_NaCl_Private_InstanceDestroyed(PP_Instance instance) { 3174 static void Pnacl_M25_PPB_NaCl_Private_InstanceDestroyed(PP_Instance instance) {
3175 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3175 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3176 iface->InstanceDestroyed(instance); 3176 iface->InstanceDestroyed(instance);
3177 } 3177 }
3178 3178
3179 static PP_Bool Pnacl_M25_PPB_NaCl_Private_NaClDebugStubEnabled(void) { 3179 static PP_Bool Pnacl_M25_PPB_NaCl_Private_NaClDebugEnabledForURL(const char* all eged_nmf_url) {
3180 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3180 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3181 return iface->NaClDebugStubEnabled(); 3181 return iface->NaClDebugEnabledForURL(alleged_nmf_url);
3182 } 3182 }
3183 3183
3184 static const char* Pnacl_M25_PPB_NaCl_Private_GetSandboxArch(void) { 3184 static const char* Pnacl_M25_PPB_NaCl_Private_GetSandboxArch(void) {
3185 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3185 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3186 return iface->GetSandboxArch(); 3186 return iface->GetSandboxArch();
3187 } 3187 }
3188 3188
3189 static PP_UrlSchemeType Pnacl_M25_PPB_NaCl_Private_GetUrlScheme(struct PP_Var* u rl) { 3189 static PP_UrlSchemeType Pnacl_M25_PPB_NaCl_Private_GetUrlScheme(struct PP_Var* u rl) {
3190 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 3190 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
3191 return iface->GetUrlScheme(*url); 3191 return iface->GetUrlScheme(*url);
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
5114 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors, 5114 .GetNumberOfProcessors = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetN umberOfProcessors,
5115 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled, 5115 .IsNonSFIModeEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsNonS FIModeEnabled,
5116 .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, const char* sandbox_isa, const char* extra_flags, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callba ck))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, 5116 .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, const char* sandbox_isa, const char* extra_flags, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callba ck))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd,
5117 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 5117 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
5118 .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, 5118 .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,
5119 .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, 5119 .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,
5120 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty, 5120 .SetReadOnlyProperty = (void (*)(PP_Instance instance, struct PP_Var key, st ruct PP_Var value))&Pnacl_M25_PPB_NaCl_Private_SetReadOnlyProperty,
5121 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message, const char* console_message))&Pnacl_M25_PPB_NaCl_Private_R eportLoadError, 5121 .ReportLoadError = (void (*)(PP_Instance instance, PP_NaClError error, const char* error_message, const char* console_message))&Pnacl_M25_PPB_NaCl_Private_R eportLoadError,
5122 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated, 5122 .InstanceCreated = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Priva te_InstanceCreated,
5123 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed, 5123 .InstanceDestroyed = (void (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_InstanceDestroyed,
5124 .NaClDebugStubEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_NaClD ebugStubEnabled, 5124 .NaClDebugEnabledForURL = (PP_Bool (*)(const char* alleged_nmf_url))&Pnacl_M 25_PPB_NaCl_Private_NaClDebugEnabledForURL,
5125 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch, 5125 .GetSandboxArch = (const char* (*)(void))&Pnacl_M25_PPB_NaCl_Private_GetSand boxArch,
5126 .GetUrlScheme = (PP_UrlSchemeType (*)(struct PP_Var url))&Pnacl_M25_PPB_NaCl _Private_GetUrlScheme, 5126 .GetUrlScheme = (PP_UrlSchemeType (*)(struct PP_Var url))&Pnacl_M25_PPB_NaCl _Private_GetUrlScheme,
5127 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole, 5127 .LogToConsole = (void (*)(PP_Instance instance, const char* message))&Pnacl_ M25_PPB_NaCl_Private_LogToConsole,
5128 .GetNexeErrorReported = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_GetNexeErrorReported, 5128 .GetNexeErrorReported = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_Na Cl_Private_GetNexeErrorReported,
5129 .SetNexeErrorReported = (void (*)(PP_Instance instance, PP_Bool error_report ed))&Pnacl_M25_PPB_NaCl_Private_SetNexeErrorReported, 5129 .SetNexeErrorReported = (void (*)(PP_Instance instance, PP_Bool error_report ed))&Pnacl_M25_PPB_NaCl_Private_SetNexeErrorReported,
5130 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState, 5130 .GetNaClReadyState = (PP_NaClReadyState (*)(PP_Instance instance))&Pnacl_M25 _PPB_NaCl_Private_GetNaClReadyState,
5131 .SetNaClReadyState = (void (*)(PP_Instance instance, PP_NaClReadyState ready _state))&Pnacl_M25_PPB_NaCl_Private_SetNaClReadyState, 5131 .SetNaClReadyState = (void (*)(PP_Instance instance, PP_NaClReadyState ready _state))&Pnacl_M25_PPB_NaCl_Private_SetNaClReadyState,
5132 .GetIsInstalled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_GetIsInstalled, 5132 .GetIsInstalled = (PP_Bool (*)(PP_Instance instance))&Pnacl_M25_PPB_NaCl_Pri vate_GetIsInstalled,
5133 .SetIsInstalled = (void (*)(PP_Instance instance, PP_Bool is_installed))&Pna cl_M25_PPB_NaCl_Private_SetIsInstalled 5133 .SetIsInstalled = (void (*)(PP_Instance instance, PP_Bool is_installed))&Pna cl_M25_PPB_NaCl_Private_SetIsInstalled
5134 }; 5134 };
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
6191 6191
6192 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6192 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6193 if (wrapper->real_iface == NULL) { 6193 if (wrapper->real_iface == NULL) {
6194 const void *iface = (*__real_PPPGetInterface)(name); 6194 const void *iface = (*__real_PPPGetInterface)(name);
6195 if (NULL == iface) return NULL; 6195 if (NULL == iface) return NULL;
6196 wrapper->real_iface = iface; 6196 wrapper->real_iface = iface;
6197 } 6197 }
6198 6198
6199 return wrapper->wrapped_iface; 6199 return wrapper->wrapped_iface;
6200 } 6200 }
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