| 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 GetProcessTotalNetworkUsage(TaskId task_id) const override; | 56 int64 GetProcessTotalNetworkUsage(TaskId task_id) const override; |
| 55 int64 GetSqliteMemoryUsed(TaskId task_id) const override; | 57 int64 GetSqliteMemoryUsed(TaskId task_id) const override; |
| 56 bool GetV8Memory(TaskId task_id, | 58 bool GetV8Memory(TaskId task_id, |
| 57 int64* allocated, | 59 int64* allocated, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // This will be set to true while there are observers and the task manager is | 128 // This will be set to true while there are observers and the task manager is |
| 127 // running. | 129 // running. |
| 128 bool is_running_; | 130 bool is_running_; |
| 129 | 131 |
| 130 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 132 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 } // namespace task_management | 135 } // namespace task_management |
| 134 | 136 |
| 135 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 137 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
| OLD | NEW |