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

Side by Side Diff: extensions/browser/app_window/app_window_geometry_cache.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_GEOMETRY_CACHE_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 24 matching lines...) Expand all
35 public: 35 public:
36 class Factory : public BrowserContextKeyedServiceFactory { 36 class Factory : public BrowserContextKeyedServiceFactory {
37 public: 37 public:
38 static AppWindowGeometryCache* GetForContext( 38 static AppWindowGeometryCache* GetForContext(
39 content::BrowserContext* context, 39 content::BrowserContext* context,
40 bool create); 40 bool create);
41 41
42 static Factory* GetInstance(); 42 static Factory* GetInstance();
43 43
44 private: 44 private:
45 friend struct DefaultSingletonTraits<Factory>; 45 friend struct base::DefaultSingletonTraits<Factory>;
46 46
47 Factory(); 47 Factory();
48 ~Factory() override; 48 ~Factory() override;
49 49
50 // BrowserContextKeyedServiceFactory 50 // BrowserContextKeyedServiceFactory
51 KeyedService* BuildServiceInstanceFor( 51 KeyedService* BuildServiceInstanceFor(
52 content::BrowserContext* context) const override; 52 content::BrowserContext* context) const override;
53 bool ServiceIsNULLWhileTesting() const override; 53 bool ServiceIsNULLWhileTesting() const override;
54 content::BrowserContext* GetBrowserContextToUse( 54 content::BrowserContext* GetBrowserContextToUse(
55 content::BrowserContext* context) const override; 55 content::BrowserContext* context) const override;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Listen to extension load, unloaded notifications. 148 // Listen to extension load, unloaded notifications.
149 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 149 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
150 extension_registry_observer_; 150 extension_registry_observer_;
151 151
152 base::ObserverList<Observer> observers_; 152 base::ObserverList<Observer> observers_;
153 }; 153 };
154 154
155 } // namespace extensions 155 } // namespace extensions
156 156
157 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_ 157 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.cc ('k') | extensions/browser/app_window/app_window_geometry_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698