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. | |
Mark Seaborn
2013/12/10 19:56:44
Can you add a little more explanation, e.g. "Enabl
hidehiko
2013/12/11 07:56:14
Done.
| |
19 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode"; | |
20 | |
18 // Causes the process to run as a NativeClient broker | 21 // Causes the process to run as a NativeClient broker |
19 // (used for launching NaCl loader processes on 64-bit Windows). | 22 // (used for launching NaCl loader processes on 64-bit Windows). |
20 const char kNaClBrokerProcess[] = "nacl-broker"; | 23 const char kNaClBrokerProcess[] = "nacl-broker"; |
21 | 24 |
22 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by | 25 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by |
23 // debug stub. | 26 // debug stub. |
24 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses | 27 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses |
25 // the same syntax as patterns in Chrome extension manifest. The only difference | 28 // 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. | 29 // 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 | 30 // 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 | 31 // matches any pattern. If the value starts with !, a program will be debugged |
29 // if manifest URL does not match any pattern. | 32 // if manifest URL does not match any pattern. |
30 const char kNaClDebugMask[] = "nacl-debug-mask"; | 33 const char kNaClDebugMask[] = "nacl-debug-mask"; |
31 | 34 |
32 // Native Client GDB debugger that will be launched automatically when needed. | 35 // Native Client GDB debugger that will be launched automatically when needed. |
33 const char kNaClGdb[] = "nacl-gdb"; | 36 const char kNaClGdb[] = "nacl-gdb"; |
34 | 37 |
35 // GDB script to pass to the nacl-gdb debugger at startup. | 38 // GDB script to pass to the nacl-gdb debugger at startup. |
36 const char kNaClGdbScript[] = "nacl-gdb-script"; | 39 const char kNaClGdbScript[] = "nacl-gdb-script"; |
37 | 40 |
38 // On POSIX only: the contents of this flag are prepended to the nacl-loader | 41 // On POSIX only: the contents of this flag are prepended to the nacl-loader |
39 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | 42 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". |
40 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; | 43 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; |
41 | 44 |
42 // Causes the process to run as a NativeClient loader. | 45 // Causes the process to run as a NativeClient loader. |
43 const char kNaClLoaderProcess[] = "nacl-loader"; | 46 const char kNaClLoaderProcess[] = "nacl-loader"; |
44 | 47 |
45 } // namespace switches | 48 } // namespace switches |
OLD | NEW |