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

Side by Side Diff: chrome/browser/extensions/window_controller_list.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT 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_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_
6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // was invoked in using |filter|. 57 // was invoked in using |filter|.
58 WindowController* CurrentWindowForFunctionWithFilter( 58 WindowController* CurrentWindowForFunctionWithFilter(
59 const UIThreadExtensionFunction* function, 59 const UIThreadExtensionFunction* function,
60 WindowController::TypeFilter filter) const; 60 WindowController::TypeFilter filter) const;
61 61
62 const ControllerList& windows() const { return windows_; } 62 const ControllerList& windows() const { return windows_; }
63 63
64 static WindowControllerList* GetInstance(); 64 static WindowControllerList* GetInstance();
65 65
66 private: 66 private:
67 friend struct DefaultSingletonTraits<WindowControllerList>; 67 friend struct base::DefaultSingletonTraits<WindowControllerList>;
68 68
69 // Entries are not owned by this class and must be removed when destroyed. 69 // Entries are not owned by this class and must be removed when destroyed.
70 ControllerList windows_; 70 ControllerList windows_;
71 71
72 base::ObserverList<WindowControllerListObserver> observers_; 72 base::ObserverList<WindowControllerListObserver> observers_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(WindowControllerList); 74 DISALLOW_COPY_AND_ASSIGN(WindowControllerList);
75 }; 75 };
76 76
77 } // namespace extensions 77 } // namespace extensions
78 78
79 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_ 79 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_LIST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/warning_badge_service_factory.cc ('k') | chrome/browser/extensions/window_controller_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698