OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/common/process_type.h" | |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 // Holds information about a child process. | 14 // Holds information about a child process. |
16 struct ChildProcessData { | 15 struct ChildProcessData { |
17 // The type of the process. | 16 // The type of the process. |
18 content::ProcessType type; | 17 int process_type; |
19 | 18 |
20 // The name of the process. i.e. for plugins it might be Flash, while for | 19 // The name of the process. i.e. for plugins it might be Flash, while for |
21 // for workers it might be the domain that it's from. | 20 // for workers it might be the domain that it's from. |
22 string16 name; | 21 string16 name; |
23 | 22 |
24 // The unique identifier for this child process. This identifier is NOT a | 23 // The unique identifier for this child process. This identifier is NOT a |
25 // process ID, and will be unique for all types of child process for | 24 // process ID, and will be unique for all types of child process for |
26 // one run of the browser. | 25 // one run of the browser. |
27 int id; | 26 int id; |
28 | 27 |
29 // The handle to the process. | 28 // The handle to the process. |
30 base::ProcessHandle handle; | 29 base::ProcessHandle handle; |
31 | 30 |
32 explicit ChildProcessData(content::ProcessType type) | 31 explicit ChildProcessData(int process_type) |
33 : type(type), id(0), handle(base::kNullProcessHandle) { | 32 : process_type(process_type), id(0), handle(base::kNullProcessHandle) { |
34 } | 33 } |
35 }; | 34 }; |
36 | 35 |
37 } // namespace content | 36 } // namespace content |
38 | 37 |
39 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ | 38 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ |
OLD | NEW |