OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TASK_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // observers to completely refresh themselves (for example, the creation of | 75 // observers to completely refresh themselves (for example, the creation of |
76 // a background resource in a process). Results in all observers receiving | 76 // a background resource in a process). Results in all observers receiving |
77 // OnModelChanged() events. | 77 // OnModelChanged() events. |
78 void ModelChanged(); | 78 void ModelChanged(); |
79 | 79 |
80 // Returns the singleton instance (and initializes it if necessary). | 80 // Returns the singleton instance (and initializes it if necessary). |
81 static TaskManager* GetInstance(); | 81 static TaskManager* GetInstance(); |
82 | 82 |
83 TaskManagerModel* model() const { return model_.get(); } | 83 TaskManagerModel* model() const { return model_.get(); } |
84 | 84 |
85 void OpenAboutMemory(chrome::HostDesktopType desktop_type); | 85 void OpenAboutMemory(ui::HostDesktopType desktop_type); |
86 | 86 |
87 private: | 87 private: |
88 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); | 88 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); |
89 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); | 89 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); |
90 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); | 90 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); |
91 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); | 91 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); |
92 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); | 92 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); |
93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, | 93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, |
94 SelectionAdaptsToSorting); | 94 SelectionAdaptsToSorting); |
95 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, | 95 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 // All per-Resource values are stored here. | 547 // All per-Resource values are stored here. |
548 mutable PerResourceCache per_resource_cache_; | 548 mutable PerResourceCache per_resource_cache_; |
549 | 549 |
550 // All per-Process values are stored here. | 550 // All per-Process values are stored here. |
551 mutable PerProcessCache per_process_cache_; | 551 mutable PerProcessCache per_process_cache_; |
552 | 552 |
553 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 553 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
554 }; | 554 }; |
555 | 555 |
556 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 556 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |