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_MANAGER_TASK_MANAGER_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 virtual bool GetV8Memory(TaskId task_id, | 194 virtual bool GetV8Memory(TaskId task_id, |
195 int64_t* allocated, | 195 int64_t* allocated, |
196 int64_t* used) const = 0; | 196 int64_t* used) const = 0; |
197 | 197 |
198 // Gets the Webkit resource cache stats for the task with |task_id|. | 198 // Gets the Webkit resource cache stats for the task with |task_id|. |
199 // A return value of false means that task does NOT report WebCache stats. | 199 // A return value of false means that task does NOT report WebCache stats. |
200 virtual bool GetWebCacheStats( | 200 virtual bool GetWebCacheStats( |
201 TaskId task_id, | 201 TaskId task_id, |
202 blink::WebCache::ResourceTypeStats* stats) const = 0; | 202 blink::WebCache::ResourceTypeStats* stats) const = 0; |
203 | 203 |
| 204 virtual int GetKeepaliveCount(TaskId task_id) const = 0; |
| 205 |
204 // Gets the list of task IDs currently tracked by the task manager. Tasks that | 206 // Gets the list of task IDs currently tracked by the task manager. Tasks that |
205 // share the same process id will always be consecutive. The list will be | 207 // share the same process id will always be consecutive. The list will be |
206 // sorted in a way that reflects the process tree: the browser process will be | 208 // sorted in a way that reflects the process tree: the browser process will be |
207 // first, followed by the gpu process if it exists. Related processes (e.g., a | 209 // first, followed by the gpu process if it exists. Related processes (e.g., a |
208 // subframe process and its parent) will be kept together if possible. Callers | 210 // subframe process and its parent) will be kept together if possible. Callers |
209 // can expect this ordering to be stable when a process is added or removed. | 211 // can expect this ordering to be stable when a process is added or removed. |
210 virtual const TaskIdList& GetTaskIdsList() const = 0; | 212 virtual const TaskIdList& GetTaskIdsList() const = 0; |
211 | 213 |
212 // Gets the list of task IDs of the tasks that run on the same process as the | 214 // Gets the list of task IDs of the tasks that run on the same process as the |
213 // task with |task_id|. The returned list will at least include |task_id|. | 215 // task with |task_id|. The returned list will at least include |task_id|. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 285 |
284 // The flags containing the enabled resources types calculations. | 286 // The flags containing the enabled resources types calculations. |
285 int64_t enabled_resources_flags_; | 287 int64_t enabled_resources_flags_; |
286 | 288 |
287 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); | 289 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); |
288 }; | 290 }; |
289 | 291 |
290 } // namespace task_manager | 292 } // namespace task_manager |
291 | 293 |
292 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ | 294 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ |
OLD | NEW |