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