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

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

Issue 8760011: Move the ProcessType enum out to its own file. This is in preparation for getting rid of ChildPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/common/child_process_info.cc ('k') | content/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "content/common/child_process_info.h"
10 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/process_type.h"
11 11
12 class CommandLine; 12 class CommandLine;
13 13
14 class CONTENT_EXPORT DebugFlags { 14 class CONTENT_EXPORT DebugFlags {
15 public: 15 public:
16 16
17 // Updates the command line arguments with debug-related flags. If 17 // Updates the command line arguments with debug-related flags. If
18 // debug flags have been used with this process, they will be 18 // debug flags have been used with this process, they will be
19 // filtered and added to command_line as needed. is_in_sandbox must 19 // filtered and added to command_line as needed. is_in_sandbox must
20 // be true if the child process will be in a sandbox. 20 // be true if the child process will be in a sandbox.
21 // 21 //
22 // Returns true if the caller should "help" the child process by 22 // Returns true if the caller should "help" the child process by
23 // calling the JIT debugger on it. It may only happen if 23 // calling the JIT debugger on it. It may only happen if
24 // is_in_sandbox is true. 24 // is_in_sandbox is true.
25 static bool ProcessDebugFlags(CommandLine* command_line, 25 static bool ProcessDebugFlags(CommandLine* command_line,
26 ChildProcessInfo::ProcessType type, 26 content::ProcessType type,
27 bool is_in_sandbox); 27 bool is_in_sandbox);
28 }; 28 };
29 29
30 #endif // CONTENT_COMMON_DEBUG_FLAGS_H_ 30 #endif // CONTENT_COMMON_DEBUG_FLAGS_H_
OLDNEW
« no previous file with comments | « content/common/child_process_info.cc ('k') | content/common/debug_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698