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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual int GetOpenFdCount(TaskId task_id) const = 0; | 110 virtual int GetOpenFdCount(TaskId task_id) const = 0; |
111 | 111 |
112 // Returns whether the task with |task_id| is running on a backgrounded | 112 // Returns whether the task with |task_id| is running on a backgrounded |
113 // process. | 113 // process. |
114 virtual bool IsTaskOnBackgroundedProcess(TaskId task_id) const = 0; | 114 virtual bool IsTaskOnBackgroundedProcess(TaskId task_id) const = 0; |
115 | 115 |
116 // Returns the title of the task with |task_id|. | 116 // Returns the title of the task with |task_id|. |
117 virtual const base::string16& GetTitle(TaskId task_id) const = 0; | 117 virtual const base::string16& GetTitle(TaskId task_id) const = 0; |
118 | 118 |
119 // Returns the canonicalized name of the task with |task_id| that can be used | 119 // Returns the canonicalized name of the task with |task_id| that can be used |
120 // to represent this task in a Rappor sample via RapporService. | 120 // to represent this task in a Rappor sample via RapporServiceImpl. |
121 virtual const std::string& GetTaskNameForRappor(TaskId task_id) const = 0; | 121 virtual const std::string& GetTaskNameForRappor(TaskId task_id) const = 0; |
122 | 122 |
123 // Returns the name of the profile associated with the browser context of the | 123 // Returns the name of the profile associated with the browser context of the |
124 // render view host that the task with |task_id| represents (if that task | 124 // render view host that the task with |task_id| represents (if that task |
125 // represents a renderer). | 125 // represents a renderer). |
126 virtual base::string16 GetProfileName(TaskId task_id) const = 0; | 126 virtual base::string16 GetProfileName(TaskId task_id) const = 0; |
127 | 127 |
128 // Returns the favicon of the task with |task_id|. | 128 // Returns the favicon of the task with |task_id|. |
129 virtual const gfx::ImageSkia& GetIcon(TaskId task_id) const = 0; | 129 virtual const gfx::ImageSkia& GetIcon(TaskId task_id) const = 0; |
130 | 130 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 // The flags containing the enabled resources types calculations. | 271 // The flags containing the enabled resources types calculations. |
272 int64_t enabled_resources_flags_; | 272 int64_t enabled_resources_flags_; |
273 | 273 |
274 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); | 274 DISALLOW_COPY_AND_ASSIGN(TaskManagerInterface); |
275 }; | 275 }; |
276 | 276 |
277 } // namespace task_manager | 277 } // namespace task_manager |
278 | 278 |
279 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ | 279 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_INTERFACE_H_ |
OLD | NEW |