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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 years, 3 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
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
96 EnsureNewPrimarySortColumn); 96 EnsureNewPrimarySortColumn);
97 97
98 // Obtain an instance via GetInstance(). 98 // Obtain an instance via GetInstance().
99 TaskManager(); 99 TaskManager();
100 friend struct DefaultSingletonTraits<TaskManager>; 100 friend struct base::DefaultSingletonTraits<TaskManager>;
101 101
102 ~TaskManager(); 102 ~TaskManager();
103 103
104 // The model used for gathering and processing task data. It is ref counted 104 // The model used for gathering and processing task data. It is ref counted
105 // because it is passed as a parameter to MessageLoop::InvokeLater(). 105 // because it is passed as a parameter to MessageLoop::InvokeLater().
106 scoped_refptr<TaskManagerModel> model_; 106 scoped_refptr<TaskManagerModel> model_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(TaskManager); 108 DISALLOW_COPY_AND_ASSIGN(TaskManager);
109 }; 109 };
110 110
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // All per-Resource values are stored here. 545 // All per-Resource values are stored here.
546 mutable PerResourceCache per_resource_cache_; 546 mutable PerResourceCache per_resource_cache_;
547 547
548 // All per-Process values are stored here. 548 // All per-Process values are stored here.
549 mutable PerProcessCache per_process_cache_; 549 mutable PerProcessCache per_process_cache_;
550 550
551 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 551 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
552 }; 552 };
553 553
554 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 554 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698