OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "components/nacl/common/nacl_switches.h" | 5 #include "components/nacl/common/nacl_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // Disables crash throttling for Portable Native Client. | 9 // Disables crash throttling for Portable Native Client. |
10 const char kDisablePnaclCrashThrottling[] = "disable-pnacl-crash-throttling"; | 10 const char kDisablePnaclCrashThrottling[] = "disable-pnacl-crash-throttling"; |
11 | 11 |
12 // Disables the installation of Portable Native Client. | 12 // Disables the installation of Portable Native Client. |
13 const char kDisablePnaclInstall[] = "disable-pnacl-install"; | 13 const char kDisablePnaclInstall[] = "disable-pnacl-install"; |
14 | 14 |
15 // Enables debugging via RSP over a socket. | 15 // Enables debugging via RSP over a socket. |
16 const char kEnableNaClDebug[] = "enable-nacl-debug"; | 16 const char kEnableNaClDebug[] = "enable-nacl-debug"; |
17 | 17 |
18 // Enables Non-SFI mode, in which programs can be run without NaCl's SFI | 18 // Enables Non-SFI mode, in which programs can be run without NaCl's SFI |
19 // sandbox. | 19 // sandbox. |
20 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode"; | 20 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode"; |
21 | 21 |
22 // Causes the process to run as a NativeClient broker | 22 // Option for --type that causes the process to run as a NativeClient broker |
Mark Seaborn
2014/03/07 00:34:55
Nit: maybe "Option" -> "Value"?
bradn
2014/03/07 01:29:36
Done.
| |
23 // (used for launching NaCl loader processes on 64-bit Windows). | 23 // (used for launching NaCl loader processes on 64-bit Windows). |
24 const char kNaClBrokerProcess[] = "nacl-broker"; | 24 const char kNaClBrokerProcess[] = "nacl-broker"; |
25 | 25 |
26 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by | 26 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by |
27 // debug stub. | 27 // debug stub. |
28 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses | 28 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses |
29 // the same syntax as patterns in Chrome extension manifest. The only difference | 29 // the same syntax as patterns in Chrome extension manifest. The only difference |
30 // is that * scheme matches all schemes instead of matching only http and https. | 30 // is that * scheme matches all schemes instead of matching only http and https. |
31 // If the value doesn't start with !, a program will be debugged if manifest URL | 31 // If the value doesn't start with !, a program will be debugged if manifest URL |
32 // matches any pattern. If the value starts with !, a program will be debugged | 32 // matches any pattern. If the value starts with !, a program will be debugged |
33 // if manifest URL does not match any pattern. | 33 // if manifest URL does not match any pattern. |
34 const char kNaClDebugMask[] = "nacl-debug-mask"; | 34 const char kNaClDebugMask[] = "nacl-debug-mask"; |
35 | 35 |
36 // Native Client GDB debugger that will be launched automatically when needed. | 36 // Native Client GDB debugger that will be launched automatically when needed. |
37 const char kNaClGdb[] = "nacl-gdb"; | 37 const char kNaClGdb[] = "nacl-gdb"; |
38 | 38 |
39 // GDB script to pass to the nacl-gdb debugger at startup. | 39 // GDB script to pass to the nacl-gdb debugger at startup. |
40 const char kNaClGdbScript[] = "nacl-gdb-script"; | 40 const char kNaClGdbScript[] = "nacl-gdb-script"; |
41 | 41 |
42 // On POSIX only: the contents of this flag are prepended to the nacl-loader | 42 // Option for --type that causes the process to run as a NativeClient loader. |
Mark Seaborn
2014/03/07 00:34:55
ditto
bradn
2014/03/07 01:29:36
Done.
| |
43 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | |
44 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | |
45 | |
46 // Causes the process to run as a NativeClient loader. | |
47 const char kNaClLoaderProcess[] = "nacl-loader"; | 43 const char kNaClLoaderProcess[] = "nacl-loader"; |
48 | 44 |
49 } // namespace switches | 45 } // namespace switches |
OLD | NEW |