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 Non-SFI mode, in which programs can be run without NaCl's SFI
17 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode";
19 // Value for --type that causes the process to run as a NativeClient broker
20 // (used for launching NaCl loader processes on 64-bit Windows).
21 const char kNaClBrokerProcess[] = "nacl-broker";
23 // Disable sandbox even for non SFI mode. This is particularly unsafe
24 // as non SFI NaCl heavily relies on the seccomp sandbox.
25 const char kNaClDangerousNoSandboxNonSfi[] =
26 "nacl-dangerous-no-sandbox-nonsfi";
28 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
30 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
31 // the same syntax as patterns in Chrome extension manifest. The only difference
32 // is that * scheme matches all schemes instead of matching only http and https.
33 // If the value doesn't start with !, a program will be debugged if manifest URL
34 // matches any pattern. If the value starts with !, a program will be debugged
35 // if manifest URL does not match any pattern.
36 const char kNaClDebugMask[] = "nacl-debug-mask";
38 // GDB script to pass to the nacl-gdb debugger at startup.
39 const char kNaClGdbScript[] = "nacl-gdb-script";
41 // Native Client GDB debugger that will be launched automatically when needed.
42 const char kNaClGdb[] = "nacl-gdb";
44 // Value for --type that causes the process to run as a NativeClient loader
46 const char kNaClLoaderNonSfiProcess[] = "nacl-loader-nonsfi";
48 // Value for --type that causes the process to run as a NativeClient loader
50 const char kNaClLoaderProcess[] = "nacl-loader";
52 } // namespace switches