security/sandbox/chromium/base/base_switches.cc

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #include "base/base_switches.h"
michael@0 6
michael@0 7 namespace switches {
michael@0 8
michael@0 9 // If the program includes base/debug/debug_on_start_win.h, the process will
michael@0 10 // (on Windows only) start the JIT system-registered debugger on itself and
michael@0 11 // will wait for 60 seconds for the debugger to attach to itself. Then a break
michael@0 12 // point will be hit.
michael@0 13 const char kDebugOnStart[] = "debug-on-start";
michael@0 14
michael@0 15 // Disables the crash reporting.
michael@0 16 const char kDisableBreakpad[] = "disable-breakpad";
michael@0 17
michael@0 18 // Enable DCHECKs in release mode.
michael@0 19 const char kEnableDCHECK[] = "enable-dcheck";
michael@0 20
michael@0 21 // Generates full memory crash dump.
michael@0 22 const char kFullMemoryCrashReport[] = "full-memory-crash-report";
michael@0 23
michael@0 24 // Suppresses all error dialogs when present.
michael@0 25 const char kNoErrorDialogs[] = "noerrdialogs";
michael@0 26
michael@0 27 // When running certain tests that spawn child processes, this switch indicates
michael@0 28 // to the test framework that the current process is a child process.
michael@0 29 const char kTestChildProcess[] = "test-child-process";
michael@0 30
michael@0 31 // Gives the default maximal active V-logging level; 0 is the default.
michael@0 32 // Normally positive values are used for V-logging levels.
michael@0 33 const char kV[] = "v";
michael@0 34
michael@0 35 // Gives the per-module maximal V-logging levels to override the value
michael@0 36 // given by --v. E.g. "my_module=2,foo*=3" would change the logging
michael@0 37 // level for all code in source files "my_module.*" and "foo*.*"
michael@0 38 // ("-inl" suffixes are also disregarded for this matching).
michael@0 39 //
michael@0 40 // Any pattern containing a forward or backward slash will be tested
michael@0 41 // against the whole pathname and not just the module. E.g.,
michael@0 42 // "*/foo/bar/*=2" would change the logging level for all code in
michael@0 43 // source files under a "foo/bar" directory.
michael@0 44 const char kVModule[] = "vmodule";
michael@0 45
michael@0 46 // Will wait for 60 seconds for a debugger to come to attach to the process.
michael@0 47 const char kWaitForDebugger[] = "wait-for-debugger";
michael@0 48
michael@0 49 // Sends a pretty-printed version of tracing info to the console.
michael@0 50 const char kTraceToConsole[] = "trace-to-console";
michael@0 51
michael@0 52 #if defined(OS_POSIX)
michael@0 53 // A flag, generated internally for renderer and other helper process command
michael@0 54 // lines on Linux and Mac. It tells the helper process to enable crash dumping
michael@0 55 // and reporting, because helpers cannot access the files needed to make this
michael@0 56 // decision.
michael@0 57 const char kEnableCrashReporter[] = "enable-crash-reporter";
michael@0 58 #endif
michael@0 59
michael@0 60 } // namespace switches

mercurial