| 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_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 explicit ShellExtensionSystem(content::BrowserContext* browser_context); | 32 explicit ShellExtensionSystem(content::BrowserContext* browser_context); |
| 33 ~ShellExtensionSystem() override; | 33 ~ShellExtensionSystem() override; |
| 34 | 34 |
| 35 // Loads an unpacked application from a directory. Returns the extension on | 35 // Loads an unpacked application from a directory. Returns the extension on |
| 36 // success, or null otherwise. | 36 // success, or null otherwise. |
| 37 const Extension* LoadApp(const base::FilePath& app_dir); | 37 const Extension* LoadApp(const base::FilePath& app_dir); |
| 38 | 38 |
| 39 // Initializes the extension system. | 39 // Initializes the extension system. |
| 40 void Init(); | 40 void Init(); |
| 41 | 41 |
| 42 // Launch the app with id |extension_id|. | |
| 43 void LaunchApp(const std::string& extension_id); | |
| 44 | |
| 45 // KeyedService implementation: | 42 // KeyedService implementation: |
| 46 void Shutdown() override; | 43 void Shutdown() override; |
| 47 | 44 |
| 48 // ExtensionSystem implementation: | 45 // ExtensionSystem implementation: |
| 49 void InitForRegularProfile(bool extensions_enabled) override; | 46 void InitForRegularProfile(bool extensions_enabled) override; |
| 50 ExtensionService* extension_service() override; | 47 ExtensionService* extension_service() override; |
| 51 RuntimeData* runtime_data() override; | 48 RuntimeData* runtime_data() override; |
| 52 ManagementPolicy* management_policy() override; | 49 ManagementPolicy* management_policy() override; |
| 53 ServiceWorkerManager* service_worker_manager() override; | 50 ServiceWorkerManager* service_worker_manager() override; |
| 54 SharedUserScriptMaster* shared_user_script_master() override; | 51 SharedUserScriptMaster* shared_user_script_master() override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 OneShotEvent ready_; | 87 OneShotEvent ready_; |
| 91 | 88 |
| 92 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; | 89 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; |
| 93 | 90 |
| 94 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 91 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
| 95 }; | 92 }; |
| 96 | 93 |
| 97 } // namespace extensions | 94 } // namespace extensions |
| 98 | 95 |
| 99 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 96 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| OLD | NEW |