OLD | NEW |
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_CHILD_PROCESS_INFO_H_ | 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_INFO_H_ |
6 #define CONTENT_COMMON_CHILD_PROCESS_INFO_H_ | 6 #define CONTENT_COMMON_CHILD_PROCESS_INFO_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 | 14 |
15 // Holds information about a child process. | 15 // Holds information about a child process. |
16 class CONTENT_EXPORT ChildProcessInfo { | 16 class CONTENT_EXPORT ChildProcessInfo { |
17 public: | 17 public: |
18 // NOTE: Do not remove or reorder the elements in this enum, and only add new | 18 // NOTE: Do not remove or reorder the elements in this enum, and only add new |
19 // items at the end. We depend on these specific values in a histogram. | 19 // items at the end, right before MAX_PROCESS. We depend on these specific |
| 20 // values in histograms. |
20 enum ProcessType { | 21 enum ProcessType { |
21 UNKNOWN_PROCESS = 1, | 22 UNKNOWN_PROCESS = 1, |
22 BROWSER_PROCESS, | 23 BROWSER_PROCESS, |
23 RENDER_PROCESS, | 24 RENDER_PROCESS, |
24 PLUGIN_PROCESS, | 25 PLUGIN_PROCESS, |
25 WORKER_PROCESS, | 26 WORKER_PROCESS, |
26 NACL_LOADER_PROCESS, | 27 NACL_LOADER_PROCESS, |
27 UTILITY_PROCESS, | 28 UTILITY_PROCESS, |
28 PROFILE_IMPORT_PROCESS, | 29 PROFILE_IMPORT_PROCESS, |
29 ZYGOTE_PROCESS, | 30 ZYGOTE_PROCESS, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 RendererProcessType renderer_type_; | 132 RendererProcessType renderer_type_; |
132 string16 name_; | 133 string16 name_; |
133 string16 version_; | 134 string16 version_; |
134 int id_; | 135 int id_; |
135 | 136 |
136 // The handle to the process. | 137 // The handle to the process. |
137 mutable base::Process process_; | 138 mutable base::Process process_; |
138 }; | 139 }; |
139 | 140 |
140 #endif // CONTENT_COMMON_CHILD_PROCESS_INFO_H_ | 141 #endif // CONTENT_COMMON_CHILD_PROCESS_INFO_H_ |
OLD | NEW |