diff options
Diffstat (limited to 'chrome/common/debug_flags.h')
-rw-r--r-- | chrome/common/debug_flags.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chrome/common/debug_flags.h b/chrome/common/debug_flags.h new file mode 100644 index 0000000..231d2ca --- /dev/null +++ b/chrome/common/debug_flags.h @@ -0,0 +1,28 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_COMMON_DEBUG_FLAGS_H__ +#define CHROME_COMMON_DEBUG_FLAGS_H__ + +#include "chrome/common/child_process_info.h" + +class CommandLine; + +class DebugFlags { + public: + + // Updates the command line arguments with debug-related flags. If + // debug flags have been used with this process, they will be + // filtered and added to command_line as needed. is_in_sandbox must + // be true if the child process will be in a sandbox. + // + // Returns true if the caller should "help" the child process by + // calling the JIT debugger on it. It may only happen if + // is_in_sandbox is true. + static bool ProcessDebugFlags(CommandLine* command_line, + ChildProcessInfo::ProcessType type, + bool is_in_sandbox); +}; + +#endif // CHROME_COMMON_DEBUG_FLAGS_H__ |