diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 18:30:45 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 18:30:45 +0000 |
commit | d043c2cccc2705908f2a3d39d404c8bf1a51c0de (patch) | |
tree | 6c2d946dc5fcbd111fab9c3662ea98af433c702b /chrome/browser/task_manager.h | |
parent | 4b576875ad1b570c3f34f549df27b9e98941dac7 (diff) | |
download | chromium_src-d043c2cccc2705908f2a3d39d404c8bf1a51c0de.zip chromium_src-d043c2cccc2705908f2a3d39d404c8bf1a51c0de.tar.gz chromium_src-d043c2cccc2705908f2a3d39d404c8bf1a51c0de.tar.bz2 |
Cleanup in chrome/browser
- make more things const
- remove unreferenced declaration of GetGoButton
- fix indentation in one place
Review URL: http://codereview.chromium.org/53053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index 8f67eb8..717dcf2 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -238,7 +238,7 @@ class TaskManagerTableModel : public views::GroupTableModel, // Returns the network usage (in bytes per seconds) for the specified // resource. That's the value retrieved at the last timer's tick. - int64 GetNetworkUsageForResource(TaskManager::Resource* resource); + int64 GetNetworkUsageForResource(TaskManager::Resource* resource) const; // Called on the UI thread when some bytes are read. void BytesRead(BytesReadParam param); @@ -246,27 +246,27 @@ class TaskManagerTableModel : public views::GroupTableModel, // Returns the network usage (in byte per second) that should be displayed for // the passed |resource|. -1 means the information is not available for that // resource. - int64 GetNetworkUsage(TaskManager::Resource* resource); + int64 GetNetworkUsage(TaskManager::Resource* resource) const; // Returns the CPU usage (in %) that should be displayed for the passed // |resource|. - int GetCPUUsage(TaskManager::Resource* resource); + int GetCPUUsage(TaskManager::Resource* resource) const; // Retrieves the private memory (in KB) that should be displayed from the // passed |process_metrics|. - size_t GetPrivateMemory(base::ProcessMetrics* process_metrics); + size_t GetPrivateMemory(const base::ProcessMetrics* process_metrics) const; // Returns the shared memory (in KB) that should be displayed from the passed // |process_metrics|. - size_t GetSharedMemory(base::ProcessMetrics* process_metrics); + size_t GetSharedMemory(const base::ProcessMetrics* process_metrics) const; // Returns the pysical memory (in KB) that should be displayed from the passed // |process_metrics|. - size_t GetPhysicalMemory(base::ProcessMetrics* process_metrics); + size_t GetPhysicalMemory(const base::ProcessMetrics* process_metrics) const; // Returns the stat value at the column |col_id| that should be displayed from // the passed |process_metrics|. - int GetStatsValue(TaskManager::Resource* resource, int col_id); + int GetStatsValue(const TaskManager::Resource* resource, int col_id) const; // Retrieves the ProcessMetrics for the resources at the specified rows. // Returns true if there was a ProcessMetrics available for both rows. |