| 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_GROUP_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 private: | 100 private: |
| 101 void RefreshGpuMemory(const gpu::VideoMemoryUsageStats& gpu_memory_stats); | 101 void RefreshGpuMemory(const gpu::VideoMemoryUsageStats& gpu_memory_stats); |
| 102 | 102 |
| 103 void RefreshWindowsHandles(); | 103 void RefreshWindowsHandles(); |
| 104 | 104 |
| 105 // |child_process_unique_id| see Task::GetChildProcessUniqueID(). | 105 // |child_process_unique_id| see Task::GetChildProcessUniqueID(). |
| 106 void RefreshNaClDebugStubPort(int child_process_unique_id); | 106 void RefreshNaClDebugStubPort(int child_process_unique_id); |
| 107 | 107 |
| 108 void OnCpuRefreshDone(double cpu_usage); | 108 void OnCpuRefreshDone(double cpu_usage); |
| 109 | 109 |
| 110 void OnPhysicalMemoryUsageRefreshDone(int64_t physical_bytes); |
| 110 void OnMemoryUsageRefreshDone(MemoryUsageStats memory_usage); | 111 void OnMemoryUsageRefreshDone(MemoryUsageStats memory_usage); |
| 111 | 112 |
| 112 void OnIdleWakeupsRefreshDone(int idle_wakeups_per_second); | 113 void OnIdleWakeupsRefreshDone(int idle_wakeups_per_second); |
| 113 | 114 |
| 114 #if defined(OS_LINUX) | 115 #if defined(OS_LINUX) |
| 115 void OnOpenFdCountRefreshDone(int open_fd_count); | 116 void OnOpenFdCountRefreshDone(int open_fd_count); |
| 116 #endif // defined(OS_LINUX) | 117 #endif // defined(OS_LINUX) |
| 117 | 118 |
| 118 void OnProcessPriorityDone(bool is_backgrounded); | 119 void OnProcessPriorityDone(bool is_backgrounded); |
| 119 | 120 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Always keep this the last member of this class so that it's the first to be | 169 // Always keep this the last member of this class so that it's the first to be |
| 169 // destroyed. | 170 // destroyed. |
| 170 base::WeakPtrFactory<TaskGroup> weak_ptr_factory_; | 171 base::WeakPtrFactory<TaskGroup> weak_ptr_factory_; |
| 171 | 172 |
| 172 DISALLOW_COPY_AND_ASSIGN(TaskGroup); | 173 DISALLOW_COPY_AND_ASSIGN(TaskGroup); |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 } // namespace task_manager | 176 } // namespace task_manager |
| 176 | 177 |
| 177 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ | 178 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_GROUP_H_ |
| OLD | NEW |