OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |