1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/nacl/common/nacl_switches.h"
9 // Disables crash throttling for Portable Native Client.
10 const char kDisablePnaclCrashThrottling
[] = "disable-pnacl-crash-throttling";
12 // Enables debugging via RSP over a socket.
13 const char kEnableNaClDebug
[] = "enable-nacl-debug";
15 // Enables Mojo support for Native Client plugins.
16 const char kEnableNaClMojo
[] = "enable-nacl-mojo";
18 // Enables Non-SFI mode, in which programs can be run without NaCl's SFI
20 const char kEnableNaClNonSfiMode
[] = "enable-nacl-nonsfi-mode";
22 // Enable use of the Subzero as the PNaCl translator instead of LLC.
23 const char kEnablePNaClSubzero
[] = "enable-pnacl-subzero";
25 // Value for --type that causes the process to run as a NativeClient broker
26 // (used for launching NaCl loader processes on 64-bit Windows).
27 const char kNaClBrokerProcess
[] = "nacl-broker";
29 // Disable sandbox even for non SFI mode. This is particularly unsafe
30 // as non SFI NaCl heavily relies on the seccomp sandbox.
31 const char kNaClDangerousNoSandboxNonSfi
[] =
32 "nacl-dangerous-no-sandbox-nonsfi";
34 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
36 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
37 // the same syntax as patterns in Chrome extension manifest. The only difference
38 // is that * scheme matches all schemes instead of matching only http and https.
39 // If the value doesn't start with !, a program will be debugged if manifest URL
40 // matches any pattern. If the value starts with !, a program will be debugged
41 // if manifest URL does not match any pattern.
42 const char kNaClDebugMask
[] = "nacl-debug-mask";
44 // GDB script to pass to the nacl-gdb debugger at startup.
45 const char kNaClGdbScript
[] = "nacl-gdb-script";
47 // Native Client GDB debugger that will be launched automatically when needed.
48 const char kNaClGdb
[] = "nacl-gdb";
50 // Value for --type that causes the process to run as a NativeClient loader
52 const char kNaClLoaderNonSfiProcess
[] = "nacl-loader-nonsfi";
54 // Value for --type that causes the process to run as a NativeClient loader
56 const char kNaClLoaderProcess
[] = "nacl-loader";
58 // Use nacl_helper_nonsfi executable (the new, newlib-based version of the
59 // Non-SFI runtime) to run Non-SFI nexe, instead of nacl_helper executable
60 // (which uses the older, glib-based runtime for Non-SFI mode).
61 // TODO(hidehiko): Make this default and then remove this flag after
62 // nacl_helper_nonsfi is supported.
63 const char kUseNaClHelperNonSfi
[] = "use-nacl-helper-nonsfi";
65 } // namespace switches