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

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

Issue 177024: Linux: about:memory (Closed)
Patch Set: ... Created 11 years, 3 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/chrome.gyp ('k') | chrome/common/child_process_info.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_CHILD_PROCESS_INFO_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_INFO_H_
6 #define CHROME_COMMON_CHILD_PROCESS_INFO_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/process.h" 10 #include "base/process.h"
11 11
12 // Holds information about a child process. 12 // Holds information about a child process.
13 class ChildProcessInfo { 13 class ChildProcessInfo {
14 public: 14 public:
15 enum ProcessType { 15 enum ProcessType {
16 BROWSER_PROCESS, 16 BROWSER_PROCESS,
17 RENDER_PROCESS, 17 RENDER_PROCESS,
18 PLUGIN_PROCESS, 18 PLUGIN_PROCESS,
19 WORKER_PROCESS, 19 WORKER_PROCESS,
20 UTILITY_PROCESS, 20 UTILITY_PROCESS,
21 ZYGOTE_PROCESS,
22 SANDBOX_HELPER_PROCESS,
21 UNKNOWN_PROCESS, 23 UNKNOWN_PROCESS,
22 }; 24 };
23 25
24 // Returns the type of the process. 26 // Returns the type of the process.
25 ProcessType type() const { return type_; } 27 ProcessType type() const { return type_; }
26 28
27 // Returns the name of the process. i.e. for plugins it might be Flash, while 29 // Returns the name of the process. i.e. for plugins it might be Flash, while
28 // for workers it might be the domain that it's from. 30 // for workers it might be the domain that it's from.
29 std::wstring name() const { return name_; } 31 std::wstring name() const { return name_; }
30 32
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 private: 100 private:
99 ProcessType type_; 101 ProcessType type_;
100 std::wstring name_; 102 std::wstring name_;
101 mutable int pid_; // Cache of the process id. 103 mutable int pid_; // Cache of the process id.
102 104
103 // The handle to the process. 105 // The handle to the process.
104 mutable base::Process process_; 106 mutable base::Process process_;
105 }; 107 };
106 108
107 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_ 109 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/child_process_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698