summaryrefslogtreecommitdiffstats
path: root/chrome/browser/task_manager/task_manager_resource_providers.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-11-01 12:19:54 +0000
committerIain Merrick <husky@google.com>2010-11-03 10:21:10 +0000
commit731df977c0511bca2206b5f333555b1205ff1f43 (patch)
tree0e750b949b3f00a1ac11fda25d3c2de512f2b465 /chrome/browser/task_manager/task_manager_resource_providers.h
parent5add15e10e7bb80512f2c597ca57221314abe577 (diff)
downloadexternal_chromium-731df977c0511bca2206b5f333555b1205ff1f43.zip
external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.gz
external_chromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.bz2
Merge Chromium at r63472 : Initial merge by git.
Change-Id: Ifb9ee821af006a5f2211e81471be93ae440a1f5a
Diffstat (limited to 'chrome/browser/task_manager/task_manager_resource_providers.h')
-rw-r--r--chrome/browser/task_manager/task_manager_resource_providers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/task_manager/task_manager_resource_providers.h b/chrome/browser/task_manager/task_manager_resource_providers.h
index d794111..44e24b6 100644
--- a/chrome/browser/task_manager/task_manager_resource_providers.h
+++ b/chrome/browser/task_manager/task_manager_resource_providers.h
@@ -33,6 +33,7 @@ class TaskManagerTabContentsResource : public TaskManager::Resource {
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
base::ProcessHandle GetProcess() const;
+ Type GetType() const { return RENDERER; }
TabContents* GetTabContents() const;
virtual bool ReportsCacheStats() const { return true; }
@@ -122,6 +123,7 @@ class TaskManagerChildProcessResource : public TaskManager::Resource {
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
base::ProcessHandle GetProcess() const;
+ Type GetType() const;
bool SupportNetworkUsage() const {
return network_usage_support_;
@@ -211,6 +213,7 @@ class TaskManagerExtensionProcessResource : public TaskManager::Resource {
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
base::ProcessHandle GetProcess() const;
+ Type GetType() const { return EXTENSION; }
bool SupportNetworkUsage() const { return true; }
void SetSupportNetworkUsage() { NOTREACHED(); }
const Extension* GetExtension() const;
@@ -282,6 +285,7 @@ class TaskManagerNotificationResource : public TaskManager::Resource {
std::wstring GetTitle() const { return title_; }
SkBitmap GetIcon() const;
base::ProcessHandle GetProcess() const;
+ Type GetType() const { return NOTIFICATION; }
virtual bool SupportNetworkUsage() const { return false; }
virtual void SetSupportNetworkUsage() { }
@@ -346,6 +350,7 @@ class TaskManagerBrowserProcessResource : public TaskManager::Resource {
std::wstring GetTitle() const;
SkBitmap GetIcon() const;
base::ProcessHandle GetProcess() const;
+ Type GetType() const { return BROWSER; }
bool SupportNetworkUsage() const { return true; }
void SetSupportNetworkUsage() { NOTREACHED(); }