OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 "chrome/nacl/nacl_switches.h" |
| 6 |
| 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" |
| 9 |
| 10 namespace switches { |
| 11 |
| 12 // Runs the Native Client inside the renderer process and enables GPU plugin |
| 13 // (internally adds lEnableGpuPlugin to the command line). |
| 14 const char kEnableNaCl[] = "enable-nacl"; |
| 15 |
| 16 // Enables debugging via RSP over a socket. |
| 17 const char kEnableNaClDebug[] = "enable-nacl-debug"; |
| 18 |
| 19 // Enables the installation and usage of Portable Native Client. |
| 20 const char kEnablePnacl[] = "enable-pnacl"; |
| 21 |
| 22 // 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 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by |
| 27 // debug stub. |
| 28 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses |
| 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. |
| 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 |
| 33 // if manifest URL does not match any pattern. |
| 34 const char kNaClDebugMask[] = "nacl-debug-mask"; |
| 35 |
| 36 // Native Client GDB debugger for loader. It needs switches calculated |
| 37 // at run time in order to work correctly. That's why NaClLoadCmdPrefix |
| 38 // flag can't be used. |
| 39 const char kNaClGdb[] = "nacl-gdb"; |
| 40 |
| 41 // GDB script to pass to the nacl-gdb debugger at startup. |
| 42 const char kNaClGdbScript[] = "nacl-gdb-script"; |
| 43 |
| 44 // Causes the process to run as a NativeClient loader. |
| 45 const char kNaClLoaderProcess[] = "nacl-loader"; |
| 46 |
| 47 // On POSIX only: the contents of this flag are prepended to the nacl-loader |
| 48 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". |
| 49 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix"; |
| 50 |
| 51 // Overrides the path to the location that PNaCl is installed. |
| 52 const char kPnaclDir[] = "pnacl-dir"; |
| 53 |
| 54 // Runs the security test for the NaCl loader sandbox. |
| 55 const char kTestNaClSandbox[] = "test-nacl-sandbox"; |
| 56 |
| 57 } // namespace switches |
OLD | NEW |