diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 20:32:51 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 20:32:51 +0000 |
commit | a754453c13d397bb9b49a0bbb61e276fa0190365 (patch) | |
tree | 33bc812a6389710d9f5ca68b95bfdb149609b838 /chrome/browser/task_manager.h | |
parent | 30729c347ccfc3773a7e0bece475632cbe59ad60 (diff) | |
download | chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.zip chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.tar.gz chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.tar.bz2 |
Add more browser tests for Task Manager.
TEST=Covered by browser_tests.
http://crbug.com/12127
Review URL: http://codereview.chromium.org/155433
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/task_manager.h')
-rw-r--r-- | chrome/browser/task_manager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/task_manager.h b/chrome/browser/task_manager.h index c574b4a..3ca3774 100644 --- a/chrome/browser/task_manager.h +++ b/chrome/browser/task_manager.h @@ -12,6 +12,7 @@ #include "base/basictypes.h" #include "base/lock.h" +#include "base/observer_list.h" #include "base/process_util.h" #include "base/ref_counted.h" #include "base/singleton.h" @@ -156,8 +157,8 @@ class TaskManagerModel : public URLRequestJobTracker::JobObserver, explicit TaskManagerModel(TaskManager* task_manager); ~TaskManagerModel(); - // Set object to be notified on model changes. - void SetObserver(TaskManagerModelObserver* observer); + void AddObserver(TaskManagerModelObserver* observer); + void RemoveObserver(TaskManagerModelObserver* observer); // Returns number of registered resources. int ResourceCount() const; @@ -322,7 +323,7 @@ class TaskManagerModel : public URLRequestJobTracker::JobObserver, // A map that contains the CPU usage (in %) for a process since last refresh. CPUUsageMap cpu_usage_map_; - TaskManagerModelObserver* observer_; + ObserverList<TaskManagerModelObserver> observer_list_; MessageLoop* ui_loop_; |