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_PROVIDERS_TASK_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Check for whether the task reports it or not first. | 128 // Check for whether the task reports it or not first. |
129 bool ReportsV8Memory() const; | 129 bool ReportsV8Memory() const; |
130 virtual int64_t GetV8MemoryAllocated() const; | 130 virtual int64_t GetV8MemoryAllocated() const; |
131 virtual int64_t GetV8MemoryUsed() const; | 131 virtual int64_t GetV8MemoryUsed() const; |
132 | 132 |
133 // Checking if the task reports Webkit resource cache statistics and getting | 133 // Checking if the task reports Webkit resource cache statistics and getting |
134 // them if it does. | 134 // them if it does. |
135 virtual bool ReportsWebCacheStats() const; | 135 virtual bool ReportsWebCacheStats() const; |
136 virtual blink::WebCache::ResourceTypeStats GetWebCacheStats() const; | 136 virtual blink::WebCache::ResourceTypeStats GetWebCacheStats() const; |
137 | 137 |
| 138 // Returns the keep-alive counter if the Task is an event page, -1 otherwise. |
| 139 virtual int GetKeepaliveCount() const; |
| 140 |
138 // Checking whether the task reports network usage. | 141 // Checking whether the task reports network usage. |
139 bool ReportsNetworkUsage() const; | 142 bool ReportsNetworkUsage() const; |
140 | 143 |
141 int64_t task_id() const { return task_id_; } | 144 int64_t task_id() const { return task_id_; } |
142 int64_t network_usage() const { return network_usage_; } | 145 int64_t network_usage() const { return network_usage_; } |
143 const base::string16& title() const { return title_; } | 146 const base::string16& title() const { return title_; } |
144 const std::string& rappor_sample_name() const { return rappor_sample_name_; } | 147 const std::string& rappor_sample_name() const { return rappor_sample_name_; } |
145 const gfx::ImageSkia& icon() const { return icon_; } | 148 const gfx::ImageSkia& icon() const { return icon_; } |
146 const base::ProcessHandle& process_handle() const { return process_handle_; } | 149 const base::ProcessHandle& process_handle() const { return process_handle_; } |
147 const base::ProcessId& process_id() const { return process_id_; } | 150 const base::ProcessId& process_id() const { return process_id_; } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 184 |
182 // The PID of the process on which this task is running. | 185 // The PID of the process on which this task is running. |
183 const base::ProcessId process_id_; | 186 const base::ProcessId process_id_; |
184 | 187 |
185 DISALLOW_COPY_AND_ASSIGN(Task); | 188 DISALLOW_COPY_AND_ASSIGN(Task); |
186 }; | 189 }; |
187 | 190 |
188 } // namespace task_manager | 191 } // namespace task_manager |
189 | 192 |
190 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ | 193 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ |
OLD | NEW |