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. 4 5 #include "components/nacl/common/nacl_switches.h" 6 7 namespace switches { 8 9 // Disables crash throttling for Portable Native Client. 10 const char kDisablePnaclCrashThrottling[] = "disable-pnacl-crash-throttling"; 11 12 // Disables the installation of Portable Native Client. 13 const char kDisablePnaclInstall[] = "disable-pnacl-install"; 14 15 // Enables debugging via RSP over a socket. 16 const char kEnableNaClDebug[] = "enable-nacl-debug"; 17 18 // Enables Non-SFI mode, in which programs can be run without NaCl's SFI 19 // sandbox. 20 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode"; 21 22 // Value for --type that causes the process to run as a NativeClient broker 23 // (used for launching NaCl loader processes on 64-bit Windows). 24 const char kNaClBrokerProcess[] = "nacl-broker"; 25 26 // Disable sandbox even for non SFI mode. This is particularly unsafe 27 // as non SFI NaCl heavily relies on the seccomp sandbox. 28 const char kNaClDangerousNoSandboxNonSfi[] = 29 "nacl-dangerous-no-sandbox-nonsfi"; 30 31 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by 32 // debug stub. 33 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses 34 // the same syntax as patterns in Chrome extension manifest. The only difference 35 // is that * scheme matches all schemes instead of matching only http and https. 36 // If the value doesn't start with !, a program will be debugged if manifest URL 37 // matches any pattern. If the value starts with !, a program will be debugged 38 // if manifest URL does not match any pattern. 39 const char kNaClDebugMask[] = "nacl-debug-mask"; 40 41 // GDB script to pass to the nacl-gdb debugger at startup. 42 const char kNaClGdbScript[] = "nacl-gdb-script"; 43 44 // Native Client GDB debugger that will be launched automatically when needed. 45 const char kNaClGdb[] = "nacl-gdb"; 46 47 // Value for --type that causes the process to run as a NativeClient loader 48 // for non SFI mode. 49 const char kNaClLoaderNonSfiProcess[] = "nacl-loader-nonsfi"; 50 51 // Value for --type that causes the process to run as a NativeClient loader 52 // for SFI mode. 53 const char kNaClLoaderProcess[] = "nacl-loader"; 54 55 } // namespace switches 56