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_SAMPLING_TASK_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int* out_error_code) const override; | 78 int* out_error_code) const override; |
79 int64_t GetNetworkUsage(TaskId task_id) const override; | 79 int64_t GetNetworkUsage(TaskId task_id) const override; |
80 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; | 80 int64_t GetProcessTotalNetworkUsage(TaskId task_id) const override; |
81 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; | 81 int64_t GetSqliteMemoryUsed(TaskId task_id) const override; |
82 bool GetV8Memory(TaskId task_id, | 82 bool GetV8Memory(TaskId task_id, |
83 int64_t* allocated, | 83 int64_t* allocated, |
84 int64_t* used) const override; | 84 int64_t* used) const override; |
85 bool GetWebCacheStats( | 85 bool GetWebCacheStats( |
86 TaskId task_id, | 86 TaskId task_id, |
87 blink::WebCache::ResourceTypeStats* stats) const override; | 87 blink::WebCache::ResourceTypeStats* stats) const override; |
| 88 int GetKeepaliveCount(TaskId task_id) const override; |
88 const TaskIdList& GetTaskIdsList() const override; | 89 const TaskIdList& GetTaskIdsList() const override; |
89 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; | 90 TaskIdList GetIdsOfTasksSharingSameProcess(TaskId task_id) const override; |
90 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; | 91 size_t GetNumberOfTasksOnSameProcess(TaskId task_id) const override; |
91 TaskId GetTaskIdForWebContents( | 92 TaskId GetTaskIdForWebContents( |
92 content::WebContents* web_contents) const override; | 93 content::WebContents* web_contents) const override; |
93 | 94 |
94 // task_manager::TaskProviderObserver: | 95 // task_manager::TaskProviderObserver: |
95 void TaskAdded(Task* task) override; | 96 void TaskAdded(Task* task) override; |
96 void TaskRemoved(Task* task) override; | 97 void TaskRemoved(Task* task) override; |
97 void TaskUnresponsive(Task* task) override; | 98 void TaskUnresponsive(Task* task) override; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // This will be set to true while there are observers and the task manager is | 169 // This will be set to true while there are observers and the task manager is |
169 // running. | 170 // running. |
170 bool is_running_; | 171 bool is_running_; |
171 | 172 |
172 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); | 173 DISALLOW_COPY_AND_ASSIGN(TaskManagerImpl); |
173 }; | 174 }; |
174 | 175 |
175 } // namespace task_manager | 176 } // namespace task_manager |
176 | 177 |
177 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ | 178 #endif // CHROME_BROWSER_TASK_MANAGER_SAMPLING_TASK_MANAGER_IMPL_H_ |
OLD | NEW |