| OLD | NEW |
| 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 NACL_PROCESS, | |
| 21 UTILITY_PROCESS, | 20 UTILITY_PROCESS, |
| 22 ZYGOTE_PROCESS, | 21 ZYGOTE_PROCESS, |
| 23 SANDBOX_HELPER_PROCESS, | 22 SANDBOX_HELPER_PROCESS, |
| 24 UNKNOWN_PROCESS, | 23 UNKNOWN_PROCESS, |
| 25 }; | 24 }; |
| 26 | 25 |
| 27 ChildProcessInfo(const ChildProcessInfo& original); | 26 ChildProcessInfo(const ChildProcessInfo& original); |
| 28 virtual ~ChildProcessInfo(); | 27 virtual ~ChildProcessInfo(); |
| 29 | 28 |
| 30 ChildProcessInfo& operator=(const ChildProcessInfo& original); | 29 ChildProcessInfo& operator=(const ChildProcessInfo& original); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 private: | 93 private: |
| 95 ProcessType type_; | 94 ProcessType type_; |
| 96 std::wstring name_; | 95 std::wstring name_; |
| 97 int id_; | 96 int id_; |
| 98 | 97 |
| 99 // The handle to the process. | 98 // The handle to the process. |
| 100 mutable base::Process process_; | 99 mutable base::Process process_; |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_ | 102 #endif // CHROME_COMMON_CHILD_PROCESS_INFO_H_ |
| OLD | NEW |