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