Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: chrome/common/debug_flags.h

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/common_glue.cc ('k') | chrome/common/debug_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_DEBUG_FLAGS_H__ 5 #ifndef CHROME_COMMON_DEBUG_FLAGS_H__
6 #define CHROME_COMMON_DEBUG_FLAGS_H__ 6 #define CHROME_COMMON_DEBUG_FLAGS_H__
7 7
8 #include <string> 8 class CommandLine;
9 9
10 class DebugFlags { 10 class DebugFlags {
11 public: 11 public:
12 enum ChildProcessType { 12 enum ChildProcessType {
13 RENDERER, 13 RENDERER,
14 PLUGIN, 14 PLUGIN,
15 UNKNOWN 15 UNKNOWN
16 }; 16 };
17 17
18 // Updates the command line arguments with debug-related flags. If debug flags 18 // Updates the command line arguments with debug-related flags. If
19 // have been used with this process, they will be filtered and added to 19 // debug flags have been used with this process, they will be
20 // command_line as needed. is_in_sandbox must be true if the child process wil l 20 // filtered and added to command_line as needed. is_in_sandbox must
21 // be in a sandbox. 21 // be true if the child process will be in a sandbox.
22 // Returns true if the caller should "help" the child process by calling the J IT 22 //
23 // debugger on it. It may only happen if is_in_sandbox is true. 23 // Returns true if the caller should "help" the child process by
24 static bool ProcessDebugFlags(std::wstring* command_line, 24 // calling the JIT debugger on it. It may only happen if
25 // is_in_sandbox is true.
26 static bool ProcessDebugFlags(CommandLine* command_line,
25 ChildProcessType type, 27 ChildProcessType type,
26 bool is_in_sandbox); 28 bool is_in_sandbox);
27 }; 29 };
28 30
29 #endif // CHROME_COMMON_DEBUG_FLAGS_H__ 31 #endif // CHROME_COMMON_DEBUG_FLAGS_H__
30 32
OLDNEW
« no previous file with comments | « chrome/common/common_glue.cc ('k') | chrome/common/debug_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698