Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/task_manager.h

Issue 2873075: Mac: Add sort support for task manager. (Closed)
Patch Set: comments Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/cocoa/task_manager_mac_unittest.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/task_manager_mac_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698