OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
154 // once each time the extensions system is loaded per browser_context. The | 154 // once each time the extensions system is loaded per browser_context. The |
155 // implementation may wish to use the BrowserContext to record the current | 155 // implementation may wish to use the BrowserContext to record the current |
156 // version for later comparison. | 156 // version for later comparison. |
157 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; | 157 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; |
158 | 158 |
159 // Permits an external protocol handler to be launched. See | 159 // Permits an external protocol handler to be launched. See |
160 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. | 160 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. |
161 virtual void PermitExternalProtocolHandler() = 0; | 161 virtual void PermitExternalProtocolHandler() = 0; |
162 | 162 |
163 // Creates a new AppSorting instance. | 163 // Creates a new AppSorting instance. |
164 virtual scoped_ptr<AppSorting> CreateAppSorting() = 0; | 164 virtual scoped_ptr<AppSorting> CreateAppSorting( |
not at google - send to devlin
2015/07/23 15:35:11
Even more cleanup:
This stuff would all be much s
Marc Treib
2015/07/24 11:38:34
I started on this, but then realized it creates a
not at google - send to devlin
2015/07/24 14:43:53
That's pretty typical, usually all these things de
| |
165 content::BrowserContext* context) = 0; | |
165 | 166 |
166 // Return true if the system is run in forced app mode. | 167 // Return true if the system is run in forced app mode. |
167 virtual bool IsRunningInForcedAppMode() = 0; | 168 virtual bool IsRunningInForcedAppMode() = 0; |
168 | 169 |
169 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if | 170 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if |
170 // the embedder does not monitor extension API activity. | 171 // the embedder does not monitor extension API activity. |
171 virtual ApiActivityMonitor* GetApiActivityMonitor( | 172 virtual ApiActivityMonitor* GetApiActivityMonitor( |
172 content::BrowserContext* context) = 0; | 173 content::BrowserContext* context) = 0; |
173 | 174 |
174 // Returns the factory that provides an ExtensionSystem to be returned from | 175 // Returns the factory that provides an ExtensionSystem to be returned from |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 // Returns the single instance of |this|. | 230 // Returns the single instance of |this|. |
230 static ExtensionsBrowserClient* Get(); | 231 static ExtensionsBrowserClient* Get(); |
231 | 232 |
232 // Initialize the single instance. | 233 // Initialize the single instance. |
233 static void Set(ExtensionsBrowserClient* client); | 234 static void Set(ExtensionsBrowserClient* client); |
234 }; | 235 }; |
235 | 236 |
236 } // namespace extensions | 237 } // namespace extensions |
237 | 238 |
238 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 239 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |