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_TEST_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ |
6 #define CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 TestTaskManager(); | 21 TestTaskManager(); |
22 ~TestTaskManager() override; | 22 ~TestTaskManager() override; |
23 | 23 |
24 // task_management::TaskManagerInterface: | 24 // task_management::TaskManagerInterface: |
25 void ActivateTask(TaskId task_id) override; | 25 void ActivateTask(TaskId task_id) override; |
26 void KillTask(TaskId task_id) override; | 26 void KillTask(TaskId task_id) override; |
27 double GetCpuUsage(TaskId task_id) const override; | 27 double GetCpuUsage(TaskId task_id) const override; |
28 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; | 28 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; |
29 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; | 29 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; |
30 int64_t GetSharedMemoryUsage(TaskId task_id) const override; | 30 int64_t GetSharedMemoryUsage(TaskId task_id) const override; |
| 31 int64_t GetSwappedMemoryUsage(TaskId task_id) const override; |
31 int64_t GetGpuMemoryUsage(TaskId task_id, | 32 int64_t GetGpuMemoryUsage(TaskId task_id, |
32 bool* has_duplicates) const override; | 33 bool* has_duplicates) const override; |
33 int GetIdleWakeupsPerSecond(TaskId task_id) const override; | 34 int GetIdleWakeupsPerSecond(TaskId task_id) const override; |
34 int GetNaClDebugStubPort(TaskId task_id) const override; | 35 int GetNaClDebugStubPort(TaskId task_id) const override; |
35 void GetGDIHandles(TaskId task_id, | 36 void GetGDIHandles(TaskId task_id, |
36 int64_t* current, | 37 int64_t* current, |
37 int64_t* peak) const override; | 38 int64_t* peak) const override; |
38 void GetUSERHandles(TaskId task_id, | 39 void GetUSERHandles(TaskId task_id, |
39 int64_t* current, | 40 int64_t* current, |
40 int64_t* peak) const override; | 41 int64_t* peak) const override; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 gfx::ImageSkia icon_; | 82 gfx::ImageSkia icon_; |
82 TaskIdList ids_; | 83 TaskIdList ids_; |
83 | 84 |
84 private: | 85 private: |
85 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); | 86 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace task_management | 89 } // namespace task_management |
89 | 90 |
90 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ | 91 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ |
OLD | NEW |