| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class URLRequest; | 37 class URLRequest; |
| 38 class URLRequestJob; | 38 class URLRequestJob; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace update_client { | 41 namespace update_client { |
| 42 class UpdateClient; | 42 class UpdateClient; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace extensions { | 45 namespace extensions { |
| 46 | 46 |
| 47 class ApiActivityMonitor; | |
| 48 class ComponentExtensionResourceManager; | 47 class ComponentExtensionResourceManager; |
| 49 class Extension; | 48 class Extension; |
| 50 class ExtensionCache; | 49 class ExtensionCache; |
| 51 class ExtensionError; | 50 class ExtensionError; |
| 52 class ExtensionHostDelegate; | 51 class ExtensionHostDelegate; |
| 53 class ExtensionPrefsObserver; | 52 class ExtensionPrefsObserver; |
| 54 class ExtensionApiFrameIdMap; | 53 class ExtensionApiFrameIdMap; |
| 55 class ExtensionApiFrameIdMapHelper; | 54 class ExtensionApiFrameIdMapHelper; |
| 56 class ExtensionSystem; | 55 class ExtensionSystem; |
| 57 class ExtensionSystemProvider; | 56 class ExtensionSystemProvider; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // Permits an external protocol handler to be launched. See | 169 // Permits an external protocol handler to be launched. See |
| 171 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. | 170 // ExternalProtocolHandler::PermitLaunchUrl() in Chrome. |
| 172 virtual void PermitExternalProtocolHandler() = 0; | 171 virtual void PermitExternalProtocolHandler() = 0; |
| 173 | 172 |
| 174 // Return true if the system is run in forced app mode. | 173 // Return true if the system is run in forced app mode. |
| 175 virtual bool IsRunningInForcedAppMode() = 0; | 174 virtual bool IsRunningInForcedAppMode() = 0; |
| 176 | 175 |
| 177 // Return true if the user is logged in as a public session. | 176 // Return true if the user is logged in as a public session. |
| 178 virtual bool IsLoggedInAsPublicAccount() = 0; | 177 virtual bool IsLoggedInAsPublicAccount() = 0; |
| 179 | 178 |
| 180 // Returns the embedder's ApiActivityMonitor for |context|. Returns NULL if | |
| 181 // the embedder does not monitor extension API activity. | |
| 182 virtual ApiActivityMonitor* GetApiActivityMonitor( | |
| 183 content::BrowserContext* context) = 0; | |
| 184 | |
| 185 // Returns the factory that provides an ExtensionSystem to be returned from | 179 // Returns the factory that provides an ExtensionSystem to be returned from |
| 186 // ExtensionSystem::Get. | 180 // ExtensionSystem::Get. |
| 187 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0; | 181 virtual ExtensionSystemProvider* GetExtensionSystemFactory() = 0; |
| 188 | 182 |
| 189 // Registers extension functions not belonging to the core extensions APIs. | 183 // Registers extension functions not belonging to the core extensions APIs. |
| 190 virtual void RegisterExtensionFunctions( | 184 virtual void RegisterExtensionFunctions( |
| 191 ExtensionFunctionRegistry* registry) const = 0; | 185 ExtensionFunctionRegistry* registry) const = 0; |
| 192 | 186 |
| 193 // Registers Mojo services for a RenderFrame. | 187 // Registers Mojo services for a RenderFrame. |
| 194 virtual void RegisterMojoServices(content::RenderFrameHost* render_frame_host, | 188 virtual void RegisterMojoServices(content::RenderFrameHost* render_frame_host, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // Returns the single instance of |this|. | 255 // Returns the single instance of |this|. |
| 262 static ExtensionsBrowserClient* Get(); | 256 static ExtensionsBrowserClient* Get(); |
| 263 | 257 |
| 264 // Initialize the single instance. | 258 // Initialize the single instance. |
| 265 static void Set(ExtensionsBrowserClient* client); | 259 static void Set(ExtensionsBrowserClient* client); |
| 266 }; | 260 }; |
| 267 | 261 |
| 268 } // namespace extensions | 262 } // namespace extensions |
| 269 | 263 |
| 270 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 264 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |