michael@0: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef CHROME_COMMON_DEBUG_FLAGS_H__ michael@0: #define CHROME_COMMON_DEBUG_FLAGS_H__ michael@0: michael@0: #include "chrome/common/child_process_info.h" michael@0: michael@0: class CommandLine; michael@0: michael@0: class DebugFlags { michael@0: public: michael@0: michael@0: // Updates the command line arguments with debug-related flags. If michael@0: // debug flags have been used with this process, they will be michael@0: // filtered and added to command_line as needed. is_in_sandbox must michael@0: // be true if the child process will be in a sandbox. michael@0: // michael@0: // Returns true if the caller should "help" the child process by michael@0: // calling the JIT debugger on it. It may only happen if michael@0: // is_in_sandbox is true. michael@0: static bool ProcessDebugFlags(CommandLine* command_line, michael@0: ChildProcessInfo::ProcessType type, michael@0: bool is_in_sandbox); michael@0: }; michael@0: michael@0: #endif // CHROME_COMMON_DEBUG_FLAGS_H__