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_SAMPLING_TASK_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 int64 GetSharedMemoryUsage(TaskId task_id) const override; | 37 int64 GetSharedMemoryUsage(TaskId task_id) const override; |
38 int64 GetGpuMemoryUsage(TaskId task_id, bool* has_duplicates) const override; | 38 int64 GetGpuMemoryUsage(TaskId task_id, bool* has_duplicates) const override; |
39 int GetIdleWakeupsPerSecond(TaskId task_id) const override; | 39 int GetIdleWakeupsPerSecond(TaskId task_id) const override; |
40 int GetNaClDebugStubPort(TaskId task_id) const override; | 40 int GetNaClDebugStubPort(TaskId task_id) const override; |
41 void GetGDIHandles(TaskId task_id, | 41 void GetGDIHandles(TaskId task_id, |
42 int64* current, | 42 int64* current, |
43 int64* peak) const override; | 43 int64* peak) const override; |
44 void GetUSERHandles(TaskId task_id, | 44 void GetUSERHandles(TaskId task_id, |
45 int64* current, | 45 int64* current, |
46 int64* peak) const override; | 46 int64* peak) const override; |
| 47 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; |
47 const base::string16& GetTitle(TaskId task_id) const override; | 48 const base::string16& GetTitle(TaskId task_id) const override; |
| 49 const std::string& GetTaskNameForRappor(TaskId task_id) const override; |
48 base::string16 GetProfileName(TaskId task_id) const override; | 50 base::string16 GetProfileName(TaskId task_id) const override; |
49 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; | 51 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; |
50 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; | 52 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; |
51 const base::ProcessId& GetProcessId(TaskId task_id) const override; | 53 const base::ProcessId& GetProcessId(TaskId task_id) const override; |
52 Task::Type GetType(TaskId task_id) const override; | 54 Task::Type GetType(TaskId task_id) const override; |
53 int64 GetNetworkUsage(TaskId task_id) const override; | 55 int64 GetNetworkUsage(TaskId task_id) const override; |
54 int64 GetSqliteMemoryUsed(TaskId task_id) const override; | 56 int64 GetSqliteMemoryUsed(TaskId task_id) const override; |
55 bool GetV8Memory(TaskId task_id, | 57 bool GetV8Memory(TaskId task_id, |
56 int64* allocated, | 58 int64* allocated, |
57 int64* used) const override; | 59 int64* used) const override; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // This will be set to true while there are observers and the task manager is | 127 // This will be set to true while there are observers and the task manager is |
126 // running. | 128 // running. |
127 bool is_running_; | 129 bool is_running_; |
128 | 130 |
129 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 131 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace task_management | 134 } // namespace task_management |
133 | 135 |
134 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 136 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
OLD | NEW |