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

Side by Side Diff: ppapi/c/private/ppb_nacl_private.h

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, 9 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 /* From private/ppb_nacl_private.idl modified Fri Mar 21 13:55:07 2014. */ 6 /* From private/ppb_nacl_private.idl modified Wed Mar 26 15:04:54 2014. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h" 12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_stdint.h" 15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_var.h" 16 #include "ppapi/c/pp_var.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 /* Report an error that occured while attempting to load a nexe. */ 281 /* Report an error that occured while attempting to load a nexe. */
282 void (*ReportLoadError)(PP_Instance instance, 282 void (*ReportLoadError)(PP_Instance instance,
283 PP_NaClError error, 283 PP_NaClError error,
284 const char* error_message, 284 const char* error_message,
285 const char* console_message, 285 const char* console_message,
286 PP_Bool is_installed); 286 PP_Bool is_installed);
287 /* Performs internal setup when an instance is created. */ 287 /* Performs internal setup when an instance is created. */
288 void (*InstanceCreated)(PP_Instance instance); 288 void (*InstanceCreated)(PP_Instance instance);
289 /* Performs internal cleanup when an instance is destroyed. */ 289 /* Performs internal cleanup when an instance is destroyed. */
290 void (*InstanceDestroyed)(PP_Instance instance); 290 void (*InstanceDestroyed)(PP_Instance instance);
291 /* Return true if the NaCl debug stub is enabled and the loaded app 291 /* Return true if the NaCl debug stub is enabled and the app loaded from
292 * will be attached to a debugger. 292 * alleged_nmf_url will be attached to a debugger.
293 */ 293 */
294 PP_Bool (*NaClDebugStubEnabled)(void); 294 PP_Bool (*NaClDebugEnabledForURL)(const char* alleged_nmf_url);
295 /* Returns the kind of SFI sandbox implemented by NaCl on this 295 /* Returns the kind of SFI sandbox implemented by NaCl on this
296 * platform. 296 * platform.
297 */ 297 */
298 const char* (*GetSandboxArch)(void); 298 const char* (*GetSandboxArch)(void);
299 /* Returns the scheme type for a given url. */ 299 /* Returns the scheme type for a given url. */
300 PP_UrlSchemeType (*GetUrlScheme)(struct PP_Var url); 300 PP_UrlSchemeType (*GetUrlScheme)(struct PP_Var url);
301 /* Logs the message to the console. */ 301 /* Logs the message to the console. */
302 void (*LogToConsole)(PP_Instance instance, const char* message); 302 void (*LogToConsole)(PP_Instance instance, const char* message);
303 }; 303 };
304 304
305 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; 305 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private;
306 /** 306 /**
307 * @} 307 * @}
308 */ 308 */
309 309
310 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ 310 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */
311 311
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698