| 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_SAMPLING_TASK_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void ActivateTask(TaskId task_id) override; | 43 void ActivateTask(TaskId task_id) override; |
| 44 bool IsTaskKillable(TaskId task_id) override; | 44 bool IsTaskKillable(TaskId task_id) override; |
| 45 void KillTask(TaskId task_id) override; | 45 void KillTask(TaskId task_id) override; |
| 46 double GetCpuUsage(TaskId task_id) const override; | 46 double GetCpuUsage(TaskId task_id) const override; |
| 47 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; | 47 int64_t GetPhysicalMemoryUsage(TaskId task_id) const override; |
| 48 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; | 48 int64_t GetPrivateMemoryUsage(TaskId task_id) const override; |
| 49 int64_t GetSharedMemoryUsage(TaskId task_id) const override; | 49 int64_t GetSharedMemoryUsage(TaskId task_id) const override; |
| 50 int64_t GetSwappedMemoryUsage(TaskId task_id) const override; | 50 int64_t GetSwappedMemoryUsage(TaskId task_id) const override; |
| 51 int64_t GetGpuMemoryUsage(TaskId task_id, | 51 int64_t GetGpuMemoryUsage(TaskId task_id, |
| 52 bool* has_duplicates) const override; | 52 bool* has_duplicates) const override; |
| 53 base::MemoryState GetMemoryState(TaskId task_id) const override; |
| 53 int GetIdleWakeupsPerSecond(TaskId task_id) const override; | 54 int GetIdleWakeupsPerSecond(TaskId task_id) const override; |
| 54 int GetNaClDebugStubPort(TaskId task_id) const override; | 55 int GetNaClDebugStubPort(TaskId task_id) const override; |
| 55 void GetGDIHandles(TaskId task_id, | 56 void GetGDIHandles(TaskId task_id, |
| 56 int64_t* current, | 57 int64_t* current, |
| 57 int64_t* peak) const override; | 58 int64_t* peak) const override; |
| 58 void GetUSERHandles(TaskId task_id, | 59 void GetUSERHandles(TaskId task_id, |
| 59 int64_t* current, | 60 int64_t* current, |
| 60 int64_t* peak) const override; | 61 int64_t* peak) const override; |
| 61 int GetOpenFdCount(TaskId task_id) const override; | 62 int GetOpenFdCount(TaskId task_id) const override; |
| 62 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; | 63 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // This will be set to true while there are observers and the task manager is | 165 // This will be set to true while there are observers and the task manager is |
| 165 // running. | 166 // running. |
| 166 bool is_running_; | 167 bool is_running_; |
| 167 | 168 |
| 168 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 169 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace task_manager | 172 } // namespace task_manager |
| 172 | 173 |
| 173 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ | 174 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ |
| OLD | NEW |