1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/chromium/src/chrome/common/debug_flags.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +// Copyright (c) 2006-2008 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 +#ifndef CHROME_COMMON_DEBUG_FLAGS_H__ 1.9 +#define CHROME_COMMON_DEBUG_FLAGS_H__ 1.10 + 1.11 +#include "chrome/common/child_process_info.h" 1.12 + 1.13 +class CommandLine; 1.14 + 1.15 +class DebugFlags { 1.16 + public: 1.17 + 1.18 + // Updates the command line arguments with debug-related flags. If 1.19 + // debug flags have been used with this process, they will be 1.20 + // filtered and added to command_line as needed. is_in_sandbox must 1.21 + // be true if the child process will be in a sandbox. 1.22 + // 1.23 + // Returns true if the caller should "help" the child process by 1.24 + // calling the JIT debugger on it. It may only happen if 1.25 + // is_in_sandbox is true. 1.26 + static bool ProcessDebugFlags(CommandLine* command_line, 1.27 + ChildProcessInfo::ProcessType type, 1.28 + bool is_in_sandbox); 1.29 +}; 1.30 + 1.31 +#endif // CHROME_COMMON_DEBUG_FLAGS_H__