diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 03:25:15 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 03:25:15 +0000 |
commit | 176aa48371da91eb98d675d87b4e70c7b26d696f (patch) | |
tree | 4c972de6ecd5a54650ab1dc7d421187f5d25834f /chrome/browser/task_manager.h | |
parent | 9a3f0ac2899139ace97e399015259d028b4d5704 (diff) | |
download | chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.zip chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.gz chromium_src-176aa48371da91eb98d675d87b4e70c7b26d696f.tar.bz2 |
Add Terminate() to the Process object, have RenderProcessHost use this to avoid some more Windows specific code.
Move Process and SharedMemory into the base namespace (most changes).
Review URL: http://codereview.chromium.org/10895
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5446 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 26fc67e..3c872fb 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -36,7 +36,7 @@ class View; class Window; } -namespace process_util { +namespace base { class ProcessMetrics; } @@ -215,7 +215,7 @@ class TaskManagerTableModel : public views::GroupTableModel, }; typedef std::map<HANDLE, std::vector<TaskManager::Resource*>*> GroupMap; - typedef std::map<HANDLE, process_util::ProcessMetrics*> MetricsMap; + typedef std::map<HANDLE, base::ProcessMetrics*> MetricsMap; typedef std::map<HANDLE, int> CPUUsageMap; typedef std::map<TaskManager::Resource*, int64> ResourceValueMap; typedef std::vector<TaskManager::Resource*> ResourceList; @@ -254,15 +254,15 @@ class TaskManagerTableModel : public views::GroupTableModel, // Retrieves the private memory (in KB) that should be displayed from the // passed |process_metrics|. - size_t GetPrivateMemory(process_util::ProcessMetrics* process_metrics); + size_t GetPrivateMemory(base::ProcessMetrics* process_metrics); // Returns the shared memory (in KB) that should be displayed from the passed // |process_metrics|. - size_t GetSharedMemory(process_util::ProcessMetrics* process_metrics); + size_t GetSharedMemory(base::ProcessMetrics* process_metrics); // Returns the pysical memory (in KB) that should be displayed from the passed // |process_metrics|. - size_t GetPhysicalMemory(process_util::ProcessMetrics* process_metrics); + size_t GetPhysicalMemory(base::ProcessMetrics* process_metrics); // Returns the stat value at the column |col_id| that should be displayed from // the passed |process_metrics|. @@ -272,8 +272,8 @@ class TaskManagerTableModel : public views::GroupTableModel, // Returns true if there was a ProcessMetrics available for both rows. bool GetProcessMetricsForRows(int row1, int row2, - process_util::ProcessMetrics** proc_metrics1, - process_util::ProcessMetrics** proc_metrics2); + base::ProcessMetrics** proc_metrics1, + base::ProcessMetrics** proc_metrics2); // The list of providers to the task manager. They are ref counted. ResourceProviderList providers_; |