| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 static TaskManager* GetInstance(); | 145 static TaskManager* GetInstance(); |
| 146 | 146 |
| 147 TaskManagerModel* model() const { return model_.get(); } | 147 TaskManagerModel* model() const { return model_.get(); } |
| 148 | 148 |
| 149 void OpenAboutMemory(); | 149 void OpenAboutMemory(); |
| 150 | 150 |
| 151 private: | 151 private: |
| 152 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); | 152 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); |
| 153 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); | 153 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); |
| 154 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); | 154 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); |
| 155 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); |
| 156 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); |
| 155 | 157 |
| 156 // Obtain an instance via GetInstance(). | 158 // Obtain an instance via GetInstance(). |
| 157 TaskManager(); | 159 TaskManager(); |
| 158 friend struct DefaultSingletonTraits<TaskManager>; | 160 friend struct DefaultSingletonTraits<TaskManager>; |
| 159 | 161 |
| 160 ~TaskManager(); | 162 ~TaskManager(); |
| 161 | 163 |
| 162 // The model used for gathering and processing task data. It is ref counted | 164 // The model used for gathering and processing task data. It is ref counted |
| 163 // because it is passed as a parameter to MessageLoop::InvokeLater(). | 165 // because it is passed as a parameter to MessageLoop::InvokeLater(). |
| 164 scoped_refptr<TaskManagerModel> model_; | 166 scoped_refptr<TaskManagerModel> model_; |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 // Whether we are currently in the process of updating. | 406 // Whether we are currently in the process of updating. |
| 405 UpdateState update_state_; | 407 UpdateState update_state_; |
| 406 | 408 |
| 407 // A salt lick for the goats. | 409 // A salt lick for the goats. |
| 408 int goat_salt_; | 410 int goat_salt_; |
| 409 | 411 |
| 410 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 412 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
| 411 }; | 413 }; |
| 412 | 414 |
| 413 #endif // CHROME_BROWSER_TASK_MANAGER_H_ | 415 #endif // CHROME_BROWSER_TASK_MANAGER_H_ |
| OLD | NEW |