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

Side by Side Diff: extensions/browser/app_window/app_window_registry.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 class Factory : public BrowserContextKeyedServiceFactory { 105 class Factory : public BrowserContextKeyedServiceFactory {
106 public: 106 public:
107 static AppWindowRegistry* GetForBrowserContext( 107 static AppWindowRegistry* GetForBrowserContext(
108 content::BrowserContext* context, 108 content::BrowserContext* context,
109 bool create); 109 bool create);
110 110
111 static Factory* GetInstance(); 111 static Factory* GetInstance();
112 112
113 private: 113 private:
114 friend struct DefaultSingletonTraits<Factory>; 114 friend struct base::DefaultSingletonTraits<Factory>;
115 115
116 Factory(); 116 Factory();
117 ~Factory() override; 117 ~Factory() override;
118 118
119 // BrowserContextKeyedServiceFactory 119 // BrowserContextKeyedServiceFactory
120 KeyedService* BuildServiceInstanceFor( 120 KeyedService* BuildServiceInstanceFor(
121 content::BrowserContext* context) const override; 121 content::BrowserContext* context) const override;
122 bool ServiceIsCreatedWithBrowserContext() const override; 122 bool ServiceIsCreatedWithBrowserContext() const override;
123 bool ServiceIsNULLWhileTesting() const override; 123 bool ServiceIsNULLWhileTesting() const override;
124 content::BrowserContext* GetBrowserContextToUse( 124 content::BrowserContext* GetBrowserContextToUse(
(...skipping 23 matching lines...) Expand all
148 content::BrowserContext* context_; 148 content::BrowserContext* context_;
149 AppWindowList app_windows_; 149 AppWindowList app_windows_;
150 InspectedWindowSet inspected_windows_; 150 InspectedWindowSet inspected_windows_;
151 base::ObserverList<Observer> observers_; 151 base::ObserverList<Observer> observers_;
152 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; 152 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_;
153 }; 153 };
154 154
155 } // namespace extensions 155 } // namespace extensions
156 156
157 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_ 157 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window_geometry_cache.cc ('k') | extensions/browser/app_window/app_window_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698