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 | 14 |
14 // Holds information about a child process. | 15 // Holds information about a child process. |
15 class ChildProcessInfo { | 16 class CONTENT_EXPORT ChildProcessInfo { |
16 public: | 17 public: |
17 // 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 |
18 // items at the end. We depend on these specific values in a histogram. | 19 // items at the end. We depend on these specific values in a histogram. |
19 enum ProcessType { | 20 enum ProcessType { |
20 UNKNOWN_PROCESS = 1, | 21 UNKNOWN_PROCESS = 1, |
21 BROWSER_PROCESS, | 22 BROWSER_PROCESS, |
22 RENDER_PROCESS, | 23 RENDER_PROCESS, |
23 PLUGIN_PROCESS, | 24 PLUGIN_PROCESS, |
24 WORKER_PROCESS, | 25 WORKER_PROCESS, |
25 NACL_LOADER_PROCESS, | 26 NACL_LOADER_PROCESS, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 RendererProcessType renderer_type_; | 130 RendererProcessType renderer_type_; |
130 string16 name_; | 131 string16 name_; |
131 string16 version_; | 132 string16 version_; |
132 int id_; | 133 int id_; |
133 | 134 |
134 // The handle to the process. | 135 // The handle to the process. |
135 mutable base::Process process_; | 136 mutable base::Process process_; |
136 }; | 137 }; |
137 | 138 |
138 #endif // CONTENT_COMMON_CHILD_PROCESS_INFO_H_ | 139 #endif // CONTENT_COMMON_CHILD_PROCESS_INFO_H_ |
OLD | NEW |