| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void AddImageLoaderExtension(); | 120 void AddImageLoaderExtension(); |
| 121 | 121 |
| 122 #if defined(OS_CHROMEOS) | 122 #if defined(OS_CHROMEOS) |
| 123 void AddGaiaAuthExtension(); | 123 void AddGaiaAuthExtension(); |
| 124 #endif | 124 #endif |
| 125 | 125 |
| 126 // Add the enterprise webstore extension, or reload it if already loaded. | 126 // Add the enterprise webstore extension, or reload it if already loaded. |
| 127 void AddOrReloadEnterpriseWebStore(); | 127 void AddOrReloadEnterpriseWebStore(); |
| 128 | 128 |
| 129 void AddChromeApp(); | 129 void AddChromeApp(); |
| 130 void AddKeyboardApp(); | |
| 131 | 130 |
| 132 // Unloads |component| from the memory. | 131 // Unloads |component| from the memory. |
| 133 void UnloadComponent(ComponentExtensionInfo* component); | 132 void UnloadComponent(ComponentExtensionInfo* component); |
| 134 | 133 |
| 135 PrefService* profile_prefs_; | 134 PrefService* profile_prefs_; |
| 136 PrefService* local_state_; | 135 PrefService* local_state_; |
| 137 | 136 |
| 138 ExtensionServiceInterface* extension_service_; | 137 ExtensionServiceInterface* extension_service_; |
| 139 | 138 |
| 140 // List of registered component extensions (see Manifest::Location). | 139 // List of registered component extensions (see Manifest::Location). |
| 141 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; | 140 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; |
| 142 RegisteredComponentExtensions component_extensions_; | 141 RegisteredComponentExtensions component_extensions_; |
| 143 | 142 |
| 144 PrefChangeRegistrar pref_change_registrar_; | 143 PrefChangeRegistrar pref_change_registrar_; |
| 145 | 144 |
| 146 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); | 145 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); |
| 147 }; | 146 }; |
| 148 | 147 |
| 149 } // namespace extensions | 148 } // namespace extensions |
| 150 | 149 |
| 151 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 150 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| OLD | NEW |