| 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; |
| 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 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; |
| 72 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; | 78 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; |
| 73 | 79 |
| 74 // task_management::TaskProviderObserver: | 80 // task_management::TaskProviderObserver: |
| 75 void TaskAdded(Task* task) override; | 81 void TaskAdded(Task* task) override; |
| 76 void TaskRemoved(Task* task) override; | 82 void TaskRemoved(Task* task) override; |
| 83 void TaskUnresponsive(Task* task) override; |
| 77 | 84 |
| 78 // content::GpuDataManagerObserver: | 85 // content::GpuDataManagerObserver: |
| 79 void OnVideoMemoryUsageStatsUpdate( | 86 void OnVideoMemoryUsageStatsUpdate( |
| 80 const content::GPUVideoMemoryUsageStats& gpu_memory_stats) override; | 87 const content::GPUVideoMemoryUsageStats& gpu_memory_stats) override; |
| 81 | 88 |
| 82 // The notification method on the UI thread when multiple bytes are read | 89 // The notification method on the UI thread when multiple bytes are read |
| 83 // from URLRequests. This will be called by the |io_thread_helper_| | 90 // from URLRequests. This will be called by the |io_thread_helper_| |
| 84 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params); | 91 static void OnMultipleBytesReadUI(std::vector<BytesReadParam>* params); |
| 85 | 92 |
| 86 private: | 93 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 | 142 // This will be set to true while there are observers and the task manager is |
| 136 // running. | 143 // running. |
| 137 bool is_running_; | 144 bool is_running_; |
| 138 | 145 |
| 139 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 146 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
| 140 }; | 147 }; |
| 141 | 148 |
| 142 } // namespace task_management | 149 } // namespace task_management |
| 143 | 150 |
| 144 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ | 151 #endif // CHROME_BROWSER_TASK_MANAGEMENT_SAMPLING_TASK_MANAGER_IMPL_H_ |
| OLD | NEW |