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_TASK_MANAGER_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // On Windows, gets the current and peak number of GDI and USER handles in | 74 // On Windows, gets the current and peak number of GDI and USER handles in |
75 // use. A value of -1 means no valid value is currently available. | 75 // use. A value of -1 means no valid value is currently available. |
76 virtual void GetGDIHandles(TaskId task_id, | 76 virtual void GetGDIHandles(TaskId task_id, |
77 int64* current, | 77 int64* current, |
78 int64* peak) const = 0; | 78 int64* peak) const = 0; |
79 virtual void GetUSERHandles(TaskId task_id, | 79 virtual void GetUSERHandles(TaskId task_id, |
80 int64* current, | 80 int64* current, |
81 int64* peak) const = 0; | 81 int64* peak) const = 0; |
82 | 82 |
| 83 // Returns whether the task with |task_id| is running on a backgrounded |
| 84 // process. |
| 85 virtual bool IsTaskOnBackgroundedProcess(TaskId task_id) const = 0; |
| 86 |
83 // Returns the title of the task with |task_id|. | 87 // Returns the title of the task with |task_id|. |
84 virtual const base::string16& GetTitle(TaskId task_id) const = 0; | 88 virtual const base::string16& GetTitle(TaskId task_id) const = 0; |
85 | 89 |
| 90 // Returns the canonicalized name of the task with |task_id| that can be used |
| 91 // to represent this task in a Rappor sample via RapporService. |
| 92 virtual const std::string& GetTaskNameForRappor(TaskId task_id) const = 0; |
| 93 |
86 // Returns the name of the profile associated with the browser context of the | 94 // Returns the name of the profile associated with the browser context of the |
87 // render view host that the task with |task_id| represents (if that task | 95 // render view host that the task with |task_id| represents (if that task |
88 // represents a renderer). | 96 // represents a renderer). |
89 virtual base::string16 GetProfileName(TaskId task_id) const = 0; | 97 virtual base::string16 GetProfileName(TaskId task_id) const = 0; |
90 | 98 |
91 // Returns the favicon of the task with |task_id|. | 99 // Returns the favicon of the task with |task_id|. |
92 virtual const gfx::ImageSkia& GetIcon(TaskId task_id) const = 0; | 100 virtual const gfx::ImageSkia& GetIcon(TaskId task_id) const = 0; |
93 | 101 |
94 // Returns the ID and handle of the process on which the task with |task_id| | 102 // Returns the ID and handle of the process on which the task with |task_id| |
95 // is running. | 103 // is running. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 204 |
197 // The flags containing the enabled resources types calculations. | 205 // The flags containing the enabled resources types calculations. |
198 int64 enabled_resources_flags_; | 206 int64 enabled_resources_flags_; |
199 | 207 |
200 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); | 208 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); |
201 }; | 209 }; |
202 | 210 |
203 } // namespace task_management | 211 } // namespace task_management |
204 | 212 |
205 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ | 213 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TASK_MANAGER_INTERFACE_H_ |
OLD | NEW |