| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // once each time the extensions system is loaded per browser_context. The | 155 // once each time the extensions system is loaded per browser_context. The |
| 156 // implementation may wish to use the BrowserContext to record the current | 156 // implementation may wish to use the BrowserContext to record the current |
| 157 // version for later comparison. | 157 // version for later comparison. |
| 158 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; | 158 virtual bool DidVersionUpdate(content::BrowserContext* context) = 0; |
| 159 | 159 |
| 160 // Permits an external protocol handler to be launched. See | 160 // Permits an external protocol handler to be launched. See |
| 161 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. | 161 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. |
| 162 virtual void PermitExternalProtocolHandler() = 0; | 162 virtual void PermitExternalProtocolHandler() = 0; |
| 163 | 163 |
| 164 // Creates a new AppSorting instance. | 164 // Creates a new AppSorting instance. |
| 165 virtual scoped_ptr<AppSorting> CreateAppSorting() = 0; | 165 virtual scoped_ptr<AppSorting> CreateAppSorting( |
| 166 content::BrowserContext* context) = 0; |
| 166 | 167 |
| 167 // Return true if the system is run in forced app mode. | 168 // Return true if the system is run in forced app mode. |
| 168 virtual bool IsRunningInForcedAppMode() = 0; | 169 virtual bool IsRunningInForcedAppMode() = 0; |
| 169 | 170 |
| 170 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if | 171 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if |
| 171 // the embedder does not monitor extension API activity. | 172 // the embedder does not monitor extension API activity. |
| 172 virtual ApiActivityMonitor* GetApiActivityMonitor( | 173 virtual ApiActivityMonitor* GetApiActivityMonitor( |
| 173 content::BrowserContext* context) = 0; | 174 content::BrowserContext* context) = 0; |
| 174 | 175 |
| 175 // Returns the factory that provides an ExtensionSystem to be returned from | 176 // Returns the factory that provides an ExtensionSystem to be returned from |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // Returns the single instance of |this|. | 232 // Returns the single instance of |this|. |
| 232 static ExtensionsBrowserClient* Get(); | 233 static ExtensionsBrowserClient* Get(); |
| 233 | 234 |
| 234 // Initialize the single instance. | 235 // Initialize the single instance. |
| 235 static void Set(ExtensionsBrowserClient* client); | 236 static void Set(ExtensionsBrowserClient* client); |
| 236 }; | 237 }; |
| 237 | 238 |
| 238 } // namespace extensions | 239 } // namespace extensions |
| 239 | 240 |
| 240 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 241 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |