Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 // Methods to return raw resource information. | 298 // Methods to return raw resource information. |
| 299 int64 GetNetworkUsage(int index) const; | 299 int64 GetNetworkUsage(int index) const; |
| 300 double GetCPUUsage(int index) const; | 300 double GetCPUUsage(int index) const; |
| 301 int GetProcessId(int index) const; | 301 int GetProcessId(int index) const; |
| 302 base::ProcessHandle GetProcess(int index) const; | 302 base::ProcessHandle GetProcess(int index) const; |
| 303 int GetResourceUniqueId(int index) const; | 303 int GetResourceUniqueId(int index) const; |
| 304 // Returns the index of resource that has the given |unique_id|. Returns -1 if | 304 // Returns the index of resource that has the given |unique_id|. Returns -1 if |
| 305 // no resouce has the |unique_id|. | 305 // no resouce has the |unique_id|. |
| 306 int GetResourceIndexByUniqueId(const int unique_id) const; | 306 int GetResourceIndexByUniqueId(const int unique_id) const; |
| 307 | 307 |
| 308 // Catch all method that calls off to the appropriate GetResourceXXX method | |
|
Evan Stade
2013/01/11 22:07:45
nit: Garden path sentence. "Catchall" or "Catch-al
| |
| 309 // based on |col_id|. |col_id| is an IDS_ value used to identify the column. | |
| 310 string16 GetResourceById(int index, int col_id) const; | |
| 311 | |
| 308 // Methods to return formatted resource information. | 312 // Methods to return formatted resource information. |
| 309 string16 GetResourceTitle(int index) const; | 313 string16 GetResourceTitle(int index) const; |
| 310 string16 GetResourceProfileName(int index) const; | 314 string16 GetResourceProfileName(int index) const; |
| 311 string16 GetResourceNetworkUsage(int index) const; | 315 string16 GetResourceNetworkUsage(int index) const; |
| 312 string16 GetResourceCPUUsage(int index) const; | 316 string16 GetResourceCPUUsage(int index) const; |
| 313 string16 GetResourcePrivateMemory(int index) const; | 317 string16 GetResourcePrivateMemory(int index) const; |
| 314 string16 GetResourceSharedMemory(int index) const; | 318 string16 GetResourceSharedMemory(int index) const; |
| 315 string16 GetResourcePhysicalMemory(int index) const; | 319 string16 GetResourcePhysicalMemory(int index) const; |
| 316 string16 GetResourceProcessId(int index) const; | 320 string16 GetResourceProcessId(int index) const; |
| 317 string16 GetResourceWebCoreImageCacheSize(int index) const; | 321 string16 GetResourceWebCoreImageCacheSize(int index) const; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 615 int last_unique_id_; | 619 int last_unique_id_; |
| 616 | 620 |
| 617 // Buffer for coalescing BytesReadParam so we don't have to post a task on | 621 // Buffer for coalescing BytesReadParam so we don't have to post a task on |
| 618 // each NotifyBytesRead() call. | 622 // each NotifyBytesRead() call. |
| 619 std::vector<BytesReadParam> bytes_read_buffer_; | 623 std::vector<BytesReadParam> bytes_read_buffer_; |
| 620 | 624 |
| 621 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 625 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
| 622 }; | 626 }; |
| 623 | 627 |
| 624 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 628 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
| OLD | NEW |