OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_TASK_MANAGEMENT_PROVIDERS_CHILD_PROCESS_TASK_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_CHILD_PROCESS_TASK_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_CHILD_PROCESS_TASK_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_CHILD_PROCESS_TASK_H_ |
7 | 7 |
8 #include "chrome/browser/task_management/providers/task.h" | 8 #include "chrome/browser/task_management/providers/task.h" |
9 | 9 |
10 class ProcessResourceUsage; | 10 class ProcessResourceUsage; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 int64 v8_memory_used_; | 44 int64 v8_memory_used_; |
45 | 45 |
46 // The unique ID of the child process. It is not the PID of the process. | 46 // The unique ID of the child process. It is not the PID of the process. |
47 // See |content::ChildProcessData::id|. | 47 // See |content::ChildProcessData::id|. |
48 const int unique_child_process_id_; | 48 const int unique_child_process_id_; |
49 | 49 |
50 // The type of the child process. See |content::ProcessType| and | 50 // The type of the child process. See |content::ProcessType| and |
51 // |NaClTrustedProcessType|. | 51 // |NaClTrustedProcessType|. |
52 const int process_type_; | 52 const int process_type_; |
53 | 53 |
| 54 // Depending on the |process_type_|, determines whether this task uses V8 |
| 55 // memory or not. |
| 56 const bool uses_v8_memory_; |
| 57 |
54 DISALLOW_COPY_AND_ASSIGN(ChildProcessTask); | 58 DISALLOW_COPY_AND_ASSIGN(ChildProcessTask); |
55 }; | 59 }; |
56 | 60 |
57 } // namespace task_management | 61 } // namespace task_management |
58 | 62 |
59 | 63 |
60 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_CHILD_PROCESS_TASK_H_ | 64 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_CHILD_PROCESS_TASK_H_ |
OLD | NEW |