| 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 APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 5 #ifndef APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 6 #define APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 6 #define APPS_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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Loads an unpacked application from a directory. Returns true on success. | 39 // Loads an unpacked application from a directory. Returns true on success. |
| 40 bool LoadApp(const base::FilePath& app_dir); | 40 bool LoadApp(const base::FilePath& app_dir); |
| 41 | 41 |
| 42 // Launch the currently loaded app. | 42 // Launch the currently loaded app. |
| 43 void LaunchApp(); | 43 void LaunchApp(); |
| 44 | 44 |
| 45 // KeyedService implementation: | 45 // KeyedService implementation: |
| 46 virtual void Shutdown() OVERRIDE; | 46 virtual void Shutdown() OVERRIDE; |
| 47 | 47 |
| 48 scoped_refptr<Extension> extension() { return extension_; } |
| 49 |
| 48 // ExtensionSystem implementation: | 50 // ExtensionSystem implementation: |
| 49 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE; | 51 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE; |
| 50 virtual ExtensionService* extension_service() OVERRIDE; | 52 virtual ExtensionService* extension_service() OVERRIDE; |
| 51 virtual RuntimeData* runtime_data() OVERRIDE; | 53 virtual RuntimeData* runtime_data() OVERRIDE; |
| 52 virtual ManagementPolicy* management_policy() OVERRIDE; | 54 virtual ManagementPolicy* management_policy() OVERRIDE; |
| 53 virtual UserScriptMaster* user_script_master() OVERRIDE; | 55 virtual UserScriptMaster* user_script_master() OVERRIDE; |
| 54 virtual ProcessManager* process_manager() OVERRIDE; | 56 virtual ProcessManager* process_manager() OVERRIDE; |
| 55 virtual StateStore* state_store() OVERRIDE; | 57 virtual StateStore* state_store() OVERRIDE; |
| 56 virtual StateStore* rules_store() OVERRIDE; | 58 virtual StateStore* rules_store() OVERRIDE; |
| 57 virtual InfoMap* info_map() OVERRIDE; | 59 virtual InfoMap* info_map() OVERRIDE; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 94 |
| 93 // Signaled when the extension system has completed its startup tasks. | 95 // Signaled when the extension system has completed its startup tasks. |
| 94 OneShotEvent ready_; | 96 OneShotEvent ready_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 98 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace extensions | 101 } // namespace extensions |
| 100 | 102 |
| 101 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 103 #endif // APPS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| OLD | NEW |