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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // observers to completely refresh themselves (for example, the creation of | 77 // observers to completely refresh themselves (for example, the creation of |
78 // a background resource in a process). Results in all observers receiving | 78 // a background resource in a process). Results in all observers receiving |
79 // OnModelChanged() events. | 79 // OnModelChanged() events. |
80 void ModelChanged(); | 80 void ModelChanged(); |
81 | 81 |
82 // Returns the singleton instance (and initializes it if necessary). | 82 // Returns the singleton instance (and initializes it if necessary). |
83 static TaskManager* GetInstance(); | 83 static TaskManager* GetInstance(); |
84 | 84 |
85 TaskManagerModel* model() const { return model_.get(); } | 85 TaskManagerModel* model() const { return model_.get(); } |
86 | 86 |
87 void OpenAboutMemory(); | |
88 | |
89 private: | 87 private: |
90 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); | 88 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Basic); |
91 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); | 89 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, Resources); |
92 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); | 90 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); |
93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); | 91 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); |
94 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); | 92 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); |
95 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, | 93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, |
96 SelectionAdaptsToSorting); | 94 SelectionAdaptsToSorting); |
97 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, | 95 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, |
98 EnsureNewPrimarySortColumn); | 96 EnsureNewPrimarySortColumn); |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 // All per-Resource values are stored here. | 549 // All per-Resource values are stored here. |
552 mutable PerResourceCache per_resource_cache_; | 550 mutable PerResourceCache per_resource_cache_; |
553 | 551 |
554 // All per-Process values are stored here. | 552 // All per-Process values are stored here. |
555 mutable PerProcessCache per_process_cache_; | 553 mutable PerProcessCache per_process_cache_; |
556 | 554 |
557 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); | 555 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); |
558 }; | 556 }; |
559 | 557 |
560 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ | 558 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ |
OLD | NEW |