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

Side by Side Diff: chrome/browser/ui/settings_window_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: 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_UI_SETTINGS_WINDOW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_SETTINGS_WINDOW_MANAGER_H_
6 #define CHROME_BROWSER_UI_SETTINGS_WINDOW_MANAGER_H_ 6 #define CHROME_BROWSER_UI_SETTINGS_WINDOW_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 void ShowChromePageForProfile(Profile* profile, const GURL& gurl); 35 void ShowChromePageForProfile(Profile* profile, const GURL& gurl);
36 36
37 // If a Browser settings window for |profile| has already been created, 37 // If a Browser settings window for |profile| has already been created,
38 // returns it, otherwise returns NULL. 38 // returns it, otherwise returns NULL.
39 Browser* FindBrowserForProfile(Profile* profile); 39 Browser* FindBrowserForProfile(Profile* profile);
40 40
41 // Returns true if |browser| is a settings window. 41 // Returns true if |browser| is a settings window.
42 bool IsSettingsBrowser(Browser* browser) const; 42 bool IsSettingsBrowser(Browser* browser) const;
43 43
44 private: 44 private:
45 friend struct DefaultSingletonTraits<SettingsWindowManager>; 45 friend struct base::DefaultSingletonTraits<SettingsWindowManager>;
46 typedef std::map<Profile*, SessionID::id_type> ProfileSessionMap; 46 typedef std::map<Profile*, SessionID::id_type> ProfileSessionMap;
47 47
48 SettingsWindowManager(); 48 SettingsWindowManager();
49 ~SettingsWindowManager(); 49 ~SettingsWindowManager();
50 50
51 base::ObserverList<SettingsWindowManagerObserver> observers_; 51 base::ObserverList<SettingsWindowManagerObserver> observers_;
52 ProfileSessionMap settings_session_map_; 52 ProfileSessionMap settings_session_map_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(SettingsWindowManager); 54 DISALLOW_COPY_AND_ASSIGN(SettingsWindowManager);
55 }; 55 };
56 56
57 } // namespace chrome 57 } // namespace chrome
58 58
59 #endif // CHROME_BROWSER_UI_SETTINGS_WINDOW_MANAGER_H_ 59 #endif // CHROME_BROWSER_UI_SETTINGS_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/new_tab_page_interceptor_service_factory.cc ('k') | chrome/browser/ui/settings_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698