nacl_switches.cc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include "components/nacl/common/nacl_switches.h"
  5. namespace switches {
  6. // Disables crash throttling for Portable Native Client.
  7. const char kDisablePnaclCrashThrottling[] = "disable-pnacl-crash-throttling";
  8. // Enables debugging via RSP over a socket.
  9. const char kEnableNaClDebug[] = "enable-nacl-debug";
  10. // Force use of the Subzero as the PNaCl translator instead of LLC.
  11. const char kForcePNaClSubzero[] = "force-pnacl-subzero";
  12. // Value for --type that 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. // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
  16. // debug stub.
  17. // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
  18. // the same syntax as patterns in Chrome extension manifest. The only difference
  19. // is that * scheme matches all schemes instead of matching only http and https.
  20. // If the value doesn't start with !, a program will be debugged if manifest URL
  21. // matches any pattern. If the value starts with !, a program will be debugged
  22. // if manifest URL does not match any pattern.
  23. const char kNaClDebugMask[] = "nacl-debug-mask";
  24. // GDB script to pass to the nacl-gdb debugger at startup.
  25. const char kNaClGdbScript[] = "nacl-gdb-script";
  26. // Native Client GDB debugger that will be launched automatically when needed.
  27. const char kNaClGdb[] = "nacl-gdb";
  28. // Value for --type that causes the process to run as a NativeClient loader
  29. // for SFI mode.
  30. const char kNaClLoaderProcess[] = "nacl-loader";
  31. // Sets NACLVERBOSITY to enable verbose logging.
  32. // This should match the string used in chrome/browser/about_flags.cc
  33. const char kVerboseLoggingInNacl[] = "verbose-logging-in-nacl";
  34. const char kVerboseLoggingInNaclChoiceLow[] = "1";
  35. const char kVerboseLoggingInNaclChoiceMedium[] = "2";
  36. const char kVerboseLoggingInNaclChoiceHigh[] = "4";
  37. const char kVerboseLoggingInNaclChoiceHighest[] = "7";
  38. const char kVerboseLoggingInNaclChoiceDisabled[] = "0";
  39. } // namespace switches