| 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_TEST_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 int* out_error_code) const override; | 60 int* out_error_code) const override; |
| 61 int64_t GetNetworkUsage(TaskId task_id) const override; | 61 int64_t GetNetworkUsage(TaskId task_id) const override; |
| 62 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; | 62 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; |
| 63 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; | 63 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; |
| 64 bool GetV8Memory(TaskId task_id, | 64 bool GetV8Memory(TaskId task_id, |
| 65 int64_t* allocated, | 65 int64_t* allocated, |
| 66 int64_t* used) const override; | 66 int64_t* used) const override; |
| 67 bool GetWebCacheStats( | 67 bool GetWebCacheStats( |
| 68 TaskId task_id, | 68 TaskId task_id, |
| 69 blink::WebCache::ResourceTypeStats* stats) const override; | 69 blink::WebCache::ResourceTypeStats* stats) const override; |
| 70 int GetKeepaliveCount(TaskId task_id) const override; |
| 70 const TaskIdList& GetTaskIdsList() const override; | 71 const TaskIdList& GetTaskIdsList() const override; |
| 71 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; | 72 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; |
| 72 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; | 73 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; |
| 73 TaskId GetTaskIdForWebContents( | 74 TaskId GetTaskIdForWebContents( |
| 74 content::WebContents* web_contents) const override; | 75 content::WebContents* web_contents) const override; |
| 75 | 76 |
| 76 base::TimeDelta GetRefreshTime(); | 77 base::TimeDelta GetRefreshTime(); |
| 77 int64_t GetEnabledFlags(); | 78 int64_t GetEnabledFlags(); |
| 78 | 79 |
| 79 protected: | 80 protected: |
| 80 // task_manager::TaskManager: | 81 // task_manager::TaskManager: |
| 81 void Refresh() override {} | 82 void Refresh() override {} |
| 82 void StartUpdating() override {} | 83 void StartUpdating() override {} |
| 83 void StopUpdating() override {} | 84 void StopUpdating() override {} |
| 84 | 85 |
| 85 base::ProcessHandle handle_; | 86 base::ProcessHandle handle_; |
| 86 base::ProcessId pid_; | 87 base::ProcessId pid_; |
| 87 base::string16 title_; | 88 base::string16 title_; |
| 88 std::string rappor_sample_; | 89 std::string rappor_sample_; |
| 89 gfx::ImageSkia icon_; | 90 gfx::ImageSkia icon_; |
| 90 TaskIdList ids_; | 91 TaskIdList ids_; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); | 94 DISALLOW_COPY_AND_ASSIGN(TestTaskManager); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace task_manager | 97 } // namespace task_manager |
| 97 | 98 |
| 98 #endif // CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_ | 99 #endif // CHROME_BROWSER_TASK_MANAGER_TEST_TASK_MANAGER_H_ |
| OLD | NEW |