| 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_TEST_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 int64_t* peak) const override; | 40 int64_t* peak) const override; |
| 41 int GetOpenFdCount(TaskId task_id) const override; | 41 int GetOpenFdCount(TaskId task_id) const override; |
| 42 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; | 42 bool IsTaskOnBackgroundedProcess(TaskId task_id) const override; |
| 43 const base::string16& GetTitle(TaskId task_id) const override; | 43 const base::string16& GetTitle(TaskId task_id) const override; |
| 44 const std::string& GetTaskNameForRappor(TaskId task_id) const override; | 44 const std::string& GetTaskNameForRappor(TaskId task_id) const override; |
| 45 base::string16 GetProfileName(TaskId task_id) const override; | 45 base::string16 GetProfileName(TaskId task_id) const override; |
| 46 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; | 46 const gfx::ImageSkia& GetIcon(TaskId task_id) const override; |
| 47 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; | 47 const base::ProcessHandle& GetProcessHandle(TaskId task_id) const override; |
| 48 const base::ProcessId& GetProcessId(TaskId task_id) const override; | 48 const base::ProcessId& GetProcessId(TaskId task_id) const override; |
| 49 Task::Type GetType(TaskId task_id) const override; | 49 Task::Type GetType(TaskId task_id) const override; |
| 50 int GetTabId(TaskId task_id) const override; |
| 51 int GetChildProcessUniqueId(TaskId task_id) const override; |
| 52 void GetTerminationStatus(TaskId task_id, |
| 53 base::TerminationStatus* out_status, |
| 54 int* out_error_code) const override; |
| 50 int64_t GetNetworkUsage(TaskId task_id) const override; | 55 int64_t GetNetworkUsage(TaskId task_id) const override; |
| 51 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; | 56 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; |
| 52 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; | 57 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; |
| 53 bool GetV8Memory(TaskId task_id, | 58 bool GetV8Memory(TaskId task_id, |
| 54 int64_t* allocated, | 59 int64_t* allocated, |
| 55 int64_t* used) const override; | 60 int64_t* used) const override; |
| 56 bool GetWebCacheStats( | 61 bool GetWebCacheStats( |
| 57 TaskId task_id, | 62 TaskId task_id, |
| 58 blink::WebCache::ResourceTypeStats* stats) const override; | 63 blink::WebCache::ResourceTypeStats* stats) const override; |
| 59 const TaskIdList& GetTaskIdsList() const override; | 64 const TaskIdList& GetTaskIdsList() const override; |
| 65 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; |
| 60 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; | 66 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; |
| 61 | 67 |
| 62 base::TimeDelta GetRefreshTime(); | 68 base::TimeDelta GetRefreshTime(); |
| 63 int64_t GetEnabledFlags(); | 69 int64_t GetEnabledFlags(); |
| 64 | 70 |
| 65 protected: | 71 protected: |
| 66 // task_management::TaskManager: | 72 // task_management::TaskManager: |
| 67 void Refresh() override {} | 73 void Refresh() override {} |
| 68 void StartUpdating() override {} | 74 void StartUpdating() override {} |
| 69 void StopUpdating() override {} | 75 void StopUpdating() override {} |
| 70 | 76 |
| 71 base::ProcessHandle handle_; | 77 base::ProcessHandle handle_; |
| 72 base::ProcessId pid_; | 78 base::ProcessId pid_; |
| 73 base::string16 title_; | 79 base::string16 title_; |
| 74 std::string rappor_sample_; | 80 std::string rappor_sample_; |
| 75 gfx::ImageSkia icon_; | 81 gfx::ImageSkia icon_; |
| 76 TaskIdList ids_; | 82 TaskIdList ids_; |
| 77 | 83 |
| 78 private: | 84 private: |
| 79 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); | 85 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 } // namespace task_management | 88 } // namespace task_management |
| 83 | 89 |
| 84 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ | 90 #endif // CHROME_BROWSER_TASK_MANAGEMENT_TEST_TASK_MANAGER_H_ |
| OLD | NEW |