OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // the passed |process_metrics|. | 308 // the passed |process_metrics|. |
309 int GetStatsValue(const TaskManager::Resource* resource, int col_id) const; | 309 int GetStatsValue(const TaskManager::Resource* resource, int col_id) const; |
310 | 310 |
311 // Retrieves the ProcessMetrics for the resources at the specified rows. | 311 // Retrieves the ProcessMetrics for the resources at the specified rows. |
312 // Returns true if there was a ProcessMetrics available for both rows. | 312 // Returns true if there was a ProcessMetrics available for both rows. |
313 bool GetProcessMetricsForRows(int row1, | 313 bool GetProcessMetricsForRows(int row1, |
314 int row2, | 314 int row2, |
315 base::ProcessMetrics** proc_metrics1, | 315 base::ProcessMetrics** proc_metrics1, |
316 base::ProcessMetrics** proc_metrics2) const; | 316 base::ProcessMetrics** proc_metrics2) const; |
317 | 317 |
318 // Given a string containing a number, this function returns the formatted | 318 // Given a number, this function returns the formatted string that should be |
319 // string that should be displayed in the task manager's memory cell. | 319 // displayed in the task manager's memory cell. |
320 std::wstring GetMemCellText(std::wstring* number) const; | 320 std::wstring GetMemCellText(int64 number) const; |
321 | 321 |
322 // The list of providers to the task manager. They are ref counted. | 322 // The list of providers to the task manager. They are ref counted. |
323 ResourceProviderList providers_; | 323 ResourceProviderList providers_; |
324 | 324 |
325 // The list of all the resources displayed in the task manager. They are owned | 325 // The list of all the resources displayed in the task manager. They are owned |
326 // by the ResourceProviders. | 326 // by the ResourceProviders. |
327 ResourceList resources_; | 327 ResourceList resources_; |
328 | 328 |
329 // A map to keep tracks of the grouped resources (they are grouped if they | 329 // A map to keep tracks of the grouped resources (they are grouped if they |
330 // share the same process). The groups (the Resources vectors) are owned by | 330 // share the same process). The groups (the Resources vectors) are owned by |
(...skipping 23 matching lines...) Expand all Loading... |
354 // Whether we are currently in the process of updating. | 354 // Whether we are currently in the process of updating. |
355 UpdateState update_state_; | 355 UpdateState update_state_; |
356 | 356 |
357 // See design doc at http://go/at-teleporter for more information. | 357 // See design doc at http://go/at-teleporter for more information. |
358 static int goats_teleported_; | 358 static int goats_teleported_; |
359 | 359 |
360 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 360 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
361 }; | 361 }; |
362 | 362 |
363 #endif // CHROME_BROWSER_TASK_MANAGER_H_ | 363 #endif // CHROME_BROWSER_TASK_MANAGER_H_ |
OLD | NEW |