Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/browser/task_manager.h

Issue 18076: request review: fix issue 2821 and 6132 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/bookmarks/bookmark_table_model.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <vector> 10 #include <vector>
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // |process_metrics|. 260 // |process_metrics|.
261 size_t GetSharedMemory(base::ProcessMetrics* process_metrics); 261 size_t GetSharedMemory(base::ProcessMetrics* process_metrics);
262 262
263 // Returns the pysical memory (in KB) that should be displayed from the passed 263 // Returns the pysical memory (in KB) that should be displayed from the passed
264 // |process_metrics|. 264 // |process_metrics|.
265 size_t GetPhysicalMemory(base::ProcessMetrics* process_metrics); 265 size_t GetPhysicalMemory(base::ProcessMetrics* process_metrics);
266 266
267 // Returns the stat value at the column |col_id| that should be displayed from 267 // Returns the stat value at the column |col_id| that should be displayed from
268 // the passed |process_metrics|. 268 // the passed |process_metrics|.
269 int GetStatsValue(TaskManager::Resource* resource, int col_id); 269 int GetStatsValue(TaskManager::Resource* resource, int col_id);
270 270
271 // Retrieves the ProcessMetrics for the resources at the specified rows. 271 // Retrieves the ProcessMetrics for the resources at the specified rows.
272 // Returns true if there was a ProcessMetrics available for both rows. 272 // Returns true if there was a ProcessMetrics available for both rows.
273 bool GetProcessMetricsForRows(int row1, 273 bool GetProcessMetricsForRows(int row1,
274 int row2, 274 int row2,
275 base::ProcessMetrics** proc_metrics1, 275 base::ProcessMetrics** proc_metrics1,
276 base::ProcessMetrics** proc_metrics2); 276 base::ProcessMetrics** proc_metrics2);
277 277
278 // Given a string containing a number, this function returns the formatted
279 // string that should be displayed in the task manager's memory cell.
280 std::wstring GetMemCellText(std::wstring* number) const;
281
278 // The list of providers to the task manager. They are ref counted. 282 // The list of providers to the task manager. They are ref counted.
279 ResourceProviderList providers_; 283 ResourceProviderList providers_;
280 284
281 // The list of all the resources displayed in the task manager. They are owned 285 // The list of all the resources displayed in the task manager. They are owned
282 // by the ResourceProviders. 286 // by the ResourceProviders.
283 ResourceList resources_; 287 ResourceList resources_;
284 288
285 // A map to keep tracks of the grouped resources (they are grouped if they 289 // A map to keep tracks of the grouped resources (they are grouped if they
286 // share the same process). The groups (the Resources vectors) are owned by 290 // share the same process). The groups (the Resources vectors) are owned by
287 // the model (but the actual Resources are owned by the ResourceProviders). 291 // the model (but the actual Resources are owned by the ResourceProviders).
(...skipping 24 matching lines...) Expand all
312 316
313 // See design doc at http://go/at-teleporter for more information. 317 // See design doc at http://go/at-teleporter for more information.
314 static int goats_teleported_; 318 static int goats_teleported_;
315 319
316 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel); 320 DISALLOW_COPY_AND_ASSIGN(TaskManagerTableModel);
317 }; 321 };
318 322
319 #endif // CHROME_BROWSER_TASK_MANAGER_H_ 323 #endif // CHROME_BROWSER_TASK_MANAGER_H_
320 324
321 325
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_table_model.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698