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