1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/sandbox/chromium/base/base_switches.cc Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,60 @@ 1.4 +// Copyright (c) 2012 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#include "base/base_switches.h" 1.9 + 1.10 +namespace switches { 1.11 + 1.12 +// If the program includes base/debug/debug_on_start_win.h, the process will 1.13 +// (on Windows only) start the JIT system-registered debugger on itself and 1.14 +// will wait for 60 seconds for the debugger to attach to itself. Then a break 1.15 +// point will be hit. 1.16 +const char kDebugOnStart[] = "debug-on-start"; 1.17 + 1.18 +// Disables the crash reporting. 1.19 +const char kDisableBreakpad[] = "disable-breakpad"; 1.20 + 1.21 +// Enable DCHECKs in release mode. 1.22 +const char kEnableDCHECK[] = "enable-dcheck"; 1.23 + 1.24 +// Generates full memory crash dump. 1.25 +const char kFullMemoryCrashReport[] = "full-memory-crash-report"; 1.26 + 1.27 +// Suppresses all error dialogs when present. 1.28 +const char kNoErrorDialogs[] = "noerrdialogs"; 1.29 + 1.30 +// When running certain tests that spawn child processes, this switch indicates 1.31 +// to the test framework that the current process is a child process. 1.32 +const char kTestChildProcess[] = "test-child-process"; 1.33 + 1.34 +// Gives the default maximal active V-logging level; 0 is the default. 1.35 +// Normally positive values are used for V-logging levels. 1.36 +const char kV[] = "v"; 1.37 + 1.38 +// Gives the per-module maximal V-logging levels to override the value 1.39 +// given by --v. E.g. "my_module=2,foo*=3" would change the logging 1.40 +// level for all code in source files "my_module.*" and "foo*.*" 1.41 +// ("-inl" suffixes are also disregarded for this matching). 1.42 +// 1.43 +// Any pattern containing a forward or backward slash will be tested 1.44 +// against the whole pathname and not just the module. E.g., 1.45 +// "*/foo/bar/*=2" would change the logging level for all code in 1.46 +// source files under a "foo/bar" directory. 1.47 +const char kVModule[] = "vmodule"; 1.48 + 1.49 +// Will wait for 60 seconds for a debugger to come to attach to the process. 1.50 +const char kWaitForDebugger[] = "wait-for-debugger"; 1.51 + 1.52 +// Sends a pretty-printed version of tracing info to the console. 1.53 +const char kTraceToConsole[] = "trace-to-console"; 1.54 + 1.55 +#if defined(OS_POSIX) 1.56 +// A flag, generated internally for renderer and other helper process command 1.57 +// lines on Linux and Mac. It tells the helper process to enable crash dumping 1.58 +// and reporting, because helpers cannot access the files needed to make this 1.59 +// decision. 1.60 +const char kEnableCrashReporter[] = "enable-crash-reporter"; 1.61 +#endif 1.62 + 1.63 +} // namespace switches