• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Chromium Authors
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 // Enables debugging via RSP over a socket.
13 const char kEnableNaClDebug[]               = "enable-nacl-debug";
14 
15 // Force use of the Subzero as the PNaCl translator instead of LLC.
16 const char kForcePNaClSubzero[] = "force-pnacl-subzero";
17 
18 // Value for --type that causes the process to run as a NativeClient broker
19 // (used for launching NaCl loader processes on 64-bit Windows).
20 const char kNaClBrokerProcess[]             = "nacl-broker";
21 
22 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
23 // debug stub.
24 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
25 // the same syntax as patterns in Chrome extension manifest. The only difference
26 // is that * scheme matches all schemes instead of matching only http and https.
27 // If the value doesn't start with !, a program will be debugged if manifest URL
28 // matches any pattern. If the value starts with !, a program will be debugged
29 // if manifest URL does not match any pattern.
30 const char kNaClDebugMask[]                 = "nacl-debug-mask";
31 
32 // GDB script to pass to the nacl-gdb debugger at startup.
33 const char kNaClGdbScript[]                 = "nacl-gdb-script";
34 
35 // Native Client GDB debugger that will be launched automatically when needed.
36 const char kNaClGdb[]                       = "nacl-gdb";
37 
38 // Value for --type that causes the process to run as a NativeClient loader
39 // for SFI mode.
40 const char kNaClLoaderProcess[]             = "nacl-loader";
41 
42 // Sets NACLVERBOSITY to enable verbose logging.
43 // This should match the string used in chrome/browser/about_flags.cc
44 const char kVerboseLoggingInNacl[] = "verbose-logging-in-nacl";
45 
46 const char kVerboseLoggingInNaclChoiceLow[] = "1";
47 const char kVerboseLoggingInNaclChoiceMedium[] = "2";
48 const char kVerboseLoggingInNaclChoiceHigh[] = "4";
49 const char kVerboseLoggingInNaclChoiceHighest[] = "7";
50 const char kVerboseLoggingInNaclChoiceDisabled[] = "0";
51 }  // namespace switches
52