| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_DEBUG_FLAGS_H_ | 5 #ifndef CONTENT_COMMON_DEBUG_FLAGS_H_ |
| 6 #define CONTENT_COMMON_DEBUG_FLAGS_H_ | 6 #define CONTENT_COMMON_DEBUG_FLAGS_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | |
| 9 #include "content/public/common/process_type.h" | 8 #include "content/public/common/process_type.h" |
| 10 | 9 |
| 11 class CommandLine; | 10 class CommandLine; |
| 12 | 11 |
| 13 class CONTENT_EXPORT DebugFlags { | 12 namespace content { |
| 14 public: | |
| 15 | 13 |
| 16 // Updates the command line arguments with debug-related flags. If | 14 // Updates the command line arguments with debug-related flags. If |
| 17 // debug flags have been used with this process, they will be | 15 // debug flags have been used with this process, they will be |
| 18 // filtered and added to command_line as needed. is_in_sandbox must | 16 // filtered and added to command_line as needed. is_in_sandbox must |
| 19 // be true if the child process will be in a sandbox. | 17 // be true if the child process will be in a sandbox. |
| 20 // | 18 // |
| 21 // Returns true if the caller should "help" the child process by | 19 // Returns true if the caller should "help" the child process by |
| 22 // calling the JIT debugger on it. It may only happen if | 20 // calling the JIT debugger on it. It may only happen if |
| 23 // is_in_sandbox is true. | 21 // is_in_sandbox is true. |
| 24 static bool ProcessDebugFlags(CommandLine* command_line, | 22 bool ProcessDebugFlags(CommandLine* command_line, |
| 25 content::ProcessType type, | 23 ProcessType type, |
| 26 bool is_in_sandbox); | 24 bool is_in_sandbox); |
| 27 }; | 25 |
| 26 }; // namespace content |
| 28 | 27 |
| 29 #endif // CONTENT_COMMON_DEBUG_FLAGS_H_ | 28 #endif // CONTENT_COMMON_DEBUG_FLAGS_H_ |
| OLD | NEW |