Home | History | Annotate | Download | only in common
      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 // Enables debugging via RSP over a socket.
     10 const char kEnableNaClDebug[]               = "enable-nacl-debug";
     11 
     12 // Causes the process to run as a NativeClient broker
     13 // (used for launching NaCl loader processes on 64-bit Windows).
     14 const char kNaClBrokerProcess[]             = "nacl-broker";
     15 
     16 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
     17 // debug stub.
     18 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
     19 // the same syntax as patterns in Chrome extension manifest. The only difference
     20 // is that * scheme matches all schemes instead of matching only http and https.
     21 // If the value doesn't start with !, a program will be debugged if manifest URL
     22 // matches any pattern. If the value starts with !, a program will be debugged
     23 // if manifest URL does not match any pattern.
     24 const char kNaClDebugMask[]                 = "nacl-debug-mask";
     25 
     26 // Native Client GDB debugger that will be launched automatically when needed.
     27 const char kNaClGdb[]                       = "nacl-gdb";
     28 
     29 // GDB script to pass to the nacl-gdb debugger at startup.
     30 const char kNaClGdbScript[]                 = "nacl-gdb-script";
     31 
     32 // On POSIX only: the contents of this flag are prepended to the nacl-loader
     33 // command line. Useful values might be "valgrind" or "xterm -e gdb --args".
     34 const char kNaClLoaderCmdPrefix[]           = "nacl-loader-cmd-prefix";
     35 
     36 // Causes the process to run as a NativeClient loader.
     37 const char kNaClLoaderProcess[]             = "nacl-loader";
     38 
     39 // Runs the security test for the NaCl loader sandbox.
     40 const char kTestNaClSandbox[]               = "test-nacl-sandbox";
     41 
     42 }  // namespace switches
     43