| 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 virtual int GetKeepaliveCount() const; |
| 139 |
| 138 // Checking whether the task reports network usage. | 140 // Checking whether the task reports network usage. |
| 139 bool ReportsNetworkUsage() const; | 141 bool ReportsNetworkUsage() const; |
| 140 | 142 |
| 141 int64_t task_id() const { return task_id_; } | 143 int64_t task_id() const { return task_id_; } |
| 142 int64_t network_usage() const { return network_usage_; } | 144 int64_t network_usage() const { return network_usage_; } |
| 143 const base::string16& title() const { return title_; } | 145 const base::string16& title() const { return title_; } |
| 144 const std::string& rappor_sample_name() const { return rappor_sample_name_; } | 146 const std::string& rappor_sample_name() const { return rappor_sample_name_; } |
| 145 const gfx::ImageSkia& icon() const { return icon_; } | 147 const gfx::ImageSkia& icon() const { return icon_; } |
| 146 const base::ProcessHandle& process_handle() const { return process_handle_; } | 148 const base::ProcessHandle& process_handle() const { return process_handle_; } |
| 147 const base::ProcessId& process_id() const { return process_id_; } | 149 const base::ProcessId& process_id() const { return process_id_; } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 183 |
| 182 // The PID of the process on which this task is running. | 184 // The PID of the process on which this task is running. |
| 183 const base::ProcessId process_id_; | 185 const base::ProcessId process_id_; |
| 184 | 186 |
| 185 DISALLOW_COPY_AND_ASSIGN(Task); | 187 DISALLOW_COPY_AND_ASSIGN(Task); |
| 186 }; | 188 }; |
| 187 | 189 |
| 188 } // namespace task_manager | 190 } // namespace task_manager |
| 189 | 191 |
| 190 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ | 192 #endif // CHROME_BROWSER_TASK_MANAGER_PROVIDERS_TASK_H_ |
| OLD | NEW |