Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 int64_t* peak) const override; | 52 int64_t* peak) const override; |
| 53 int GetOpenFdCount(TaskId task_id) const override; | 53 int GetOpenFdCount(TaskId task_id) const override; |
| 54 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; | 54 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; |
| 55 const base::string16& GetTitle(TaskId task_id) const override; | 55 const base::string16& GetTitle(TaskId task_id) const override; |
| 56 const std::string& GetTaskNameForRappor(TaskId task_id) const override; | 56 const std::string& GetTaskNameForRappor(TaskId task_id) const override; |
| 57 base::string16 GetProfileName(TaskId task_id) const override; | 57 base::string16 GetProfileName(TaskId task_id) const override; |
| 58 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; | 58 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; |
| 59 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; | 59 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; |
| 60 const base::ProcessId& GetProcessId(TaskId task_id) const override; | 60 const base::ProcessId& GetProcessId(TaskId task_id) const override; |
| 61 Task::Type GetType(TaskId task_id) const override; | 61 Task::Type GetType(TaskId task_id) const override; |
| 62 int GetTabId(TaskId task_id) const override; | |
| 63 int GetChildProcessUniqueID(TaskId task_id) const override; | |
|
ncarter (slow)
2016/02/02 22:16:53
"ID" -> "Id"
afakhry
2016/02/05 19:51:14
Done.
| |
| 64 void GetTerminationStatus(TaskId task_id, | |
| 65 base::TerminationStatus* out_status, | |
| 66 int* out_error_code) const override; | |
| 62 int64_t GetNetworkUsage(TaskId task_id) const override; | 67 int64_t GetNetworkUsage(TaskId task_id) const override; |
| 63 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; | 68 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; |
| 64 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; | 69 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; |
| 65 bool GetV8Memory(TaskId task_id, | 70 bool GetV8Memory(TaskId task_id, |
| 66 int64_t* allocated, | 71 int64_t* allocated, |
| 67 int64_t* used) const override; | 72 int64_t* used) const override; |
| 68 bool GetWebCacheStats( | 73 bool GetWebCacheStats( |
| 69 TaskId task_id, | 74 TaskId task_id, |
| 70 blink::WebCache::ResourceTypeStats* stats) const override; | 75 blink::WebCache::ResourceTypeStats* stats) const override; |
| 71 const TaskIdList& GetTaskIdsList() const override; | 76 const TaskIdList& GetTaskIdsList() const override; |
| 77 const TaskIdList GetIdsOfTasksSharingSameProcess( | |
|
ncarter (slow)
2016/02/02 22:16:53
no need for const on the return value.
afakhry
2016/02/05 19:51:14
Done.
| |
| 78 TaskId task_id) const override; | |
| 72 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; | 79 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; |
| 73 | 80 |
| 74 // task_management::TaskProviderObserver: | 81 // task_management::TaskProviderObserver: |
| 75 void TaskAdded(Task* task) override; | 82 void TaskAdded(Task* task) override; |
| 76 void TaskRemoved(Task* task) override; | 83 void TaskRemoved(Task* task) override; |
| 84 void TaskUnresponsive(Task* task) override; | |
| 77 | 85 |
| 78 // content::GpuDataManagerObserver: | 86 // content::GpuDataManagerObserver: |
| 79 void OnVideoMemoryUsageStatsUpdate( | 87 void OnVideoMemoryUsageStatsUpdate( |
| 80 const content::GPUVideoMemoryUsageStats& gpu_memory_stats) override; | 88 const content::GPUVideoMemoryUsageStats& gpu_memory_stats) override; |
| 81 | 89 |
| 82 // The notification method on the UI thread when multiple bytes are read | 90 // The notification method on the UI thread when multiple bytes are read |
| 83 // from URLRequests. This will be called by the |io_thread_helper_| | 91 // from URLRequests. This will be called by the |io_thread_helper_| |
| 84 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params); | 92 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params); |
| 85 | 93 |
| 86 private: | 94 private: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 // This will be set to true while there are observers and the task manager is | 143 // This will be set to true while there are observers and the task manager is |
| 136 // running. | 144 // running. |
| 137 bool is_running_; | 145 bool is_running_; |
| 138 | 146 |
| 139 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 147 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
| 140 }; | 148 }; |
| 141 | 149 |
| 142 } // namespace task_management | 150 } // namespace task_management |
| 143 | 151 |
| 144 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 152 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
| OLD | NEW |