summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager_resource_providers.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 08:59:39 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 08:59:39 +0000
commit5d438dbad8819250385df8c0c67ff26a8586db90 (patch)
treee92c79a19a64264e7c0bede469eaa6d91af120af /chrome/browser/task_manager_resource_providers.h
parent264e3cd23191c41de8310c60d981be159f65038a (diff)
downloadchromium_src-5d438dbad8819250385df8c0c67ff26a8586db90.zip
chromium_src-5d438dbad8819250385df8c0c67ff26a8586db90.tar.gz
chromium_src-5d438dbad8819250385df8c0c67ff26a8586db90.tar.bz2
Make task_manager_resource_providers.cc compile on POSIX.
TEST=Make sure that the task manager isn't obviously broken on Windows. Review URL: http://codereview.chromium.org/93067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager_resource_providers.h')
-rw-r--r--chrome/browser/task_manager_resource_providers.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/task_manager_resource_providers.h b/chrome/browser/task_manager_resource_providers.h
index fe1c233..9181543 100644
--- a/chrome/browser/task_manager_resource_providers.h
+++ b/chrome/browser/task_manager_resource_providers.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_TASK_MANAGER_RESOURCE_PROVIDERS_H_
#include "base/basictypes.h"
+#include "base/process_util.h"
#include "chrome/browser/task_manager.h"
#include "chrome/common/child_process_info.h"
#include "chrome/common/notification_observer.h"
@@ -22,7 +23,7 @@ class TaskManagerWebContentsResource : public TaskManager::Resource {
// TaskManagerResource methods:
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
- HANDLE GetProcess() const;
+ base::ProcessHandle GetProcess() const;
TabContents* GetTabContents() const;
// WebContents always provide the network usage.
@@ -31,7 +32,7 @@ class TaskManagerWebContentsResource : public TaskManager::Resource {
private:
WebContents* web_contents_;
- HANDLE process_;
+ base::ProcessHandle process_;
int pid_;
DISALLOW_COPY_AND_ASSIGN(TaskManagerWebContentsResource);
@@ -85,7 +86,7 @@ class TaskManagerChildProcessResource : public TaskManager::Resource {
// TaskManagerResource methods:
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
- HANDLE GetProcess() const;
+ base::ProcessHandle GetProcess() const;
bool SupportNetworkUsage() const {
return network_usage_support_;
@@ -175,7 +176,7 @@ class TaskManagerBrowserProcessResource : public TaskManager::Resource {
// TaskManagerResource methods:
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
- HANDLE GetProcess() const;
+ base::ProcessHandle GetProcess() const;
bool SupportNetworkUsage() const {
return network_usage_support_;
@@ -189,7 +190,7 @@ class TaskManagerBrowserProcessResource : public TaskManager::Resource {
int process_id() const { return pid_; }
private:
- HANDLE process_;
+ base::ProcessHandle process_;
int pid_;
bool network_usage_support_;
mutable std::wstring title_;