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

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: Fix more errors Created 5 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
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 <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled); 88 FRIEND_TEST_ALL_PREFIXES(TaskManagerTest, RefreshCalled);
89 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init); 89 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Init);
90 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort); 90 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, Sort);
91 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, 91 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest,
92 SelectionAdaptsToSorting); 92 SelectionAdaptsToSorting);
93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest, 93 FRIEND_TEST_ALL_PREFIXES(TaskManagerWindowControllerTest,
94 EnsureNewPrimarySortColumn); 94 EnsureNewPrimarySortColumn);
95 95
96 // Obtain an instance via GetInstance(). 96 // Obtain an instance via GetInstance().
97 TaskManager(); 97 TaskManager();
98 friend struct DefaultSingletonTraits<TaskManager>; 98 friend struct base::DefaultSingletonTraits<TaskManager>;
99 99
100 ~TaskManager(); 100 ~TaskManager();
101 101
102 // The model used for gathering and processing task data. It is ref counted 102 // The model used for gathering and processing task data. It is ref counted
103 // because it is passed as a parameter to MessageLoop::InvokeLater(). 103 // because it is passed as a parameter to MessageLoop::InvokeLater().
104 scoped_refptr<TaskManagerModel> model_; 104 scoped_refptr<TaskManagerModel> model_;
105 105
106 DISALLOW_COPY_AND_ASSIGN(TaskManager); 106 DISALLOW_COPY_AND_ASSIGN(TaskManager);
107 }; 107 };
108 108
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 // All per-Resource values are stored here. 543 // All per-Resource values are stored here.
544 mutable PerResourceCache per_resource_cache_; 544 mutable PerResourceCache per_resource_cache_;
545 545
546 // All per-Process values are stored here. 546 // All per-Process values are stored here.
547 mutable PerProcessCache per_process_cache_; 547 mutable PerProcessCache per_process_cache_;
548 548
549 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel); 549 DISALLOW_COPY_AND_ASSIGN(TaskManagerModel);
550 }; 550 };
551 551
552 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_ 552 #endif // CHROME_BROWSER_TASK_MANAGER_TASK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698