| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 const Extension* Add(const DictionaryValue* parsed_manifest, | 105 const Extension* Add(const DictionaryValue* parsed_manifest, |
| 106 const FilePath& root_directory); | 106 const FilePath& root_directory); |
| 107 | 107 |
| 108 // Loads a registered component extension. | 108 // Loads a registered component extension. |
| 109 const Extension* Load(const ComponentExtensionInfo& info); | 109 const Extension* Load(const ComponentExtensionInfo& info); |
| 110 | 110 |
| 111 void AddFileManagerExtension(); | 111 void AddFileManagerExtension(); |
| 112 | 112 |
| 113 #if defined(OS_CHROMEOS) |
| 114 void AddGaiaAuthExtension(); |
| 115 #endif |
| 116 |
| 113 // Add the enterprise webstore extension, or reload it if already loaded. | 117 // Add the enterprise webstore extension, or reload it if already loaded. |
| 114 void AddOrReloadEnterpriseWebStore(); | 118 void AddOrReloadEnterpriseWebStore(); |
| 115 | 119 |
| 116 // Determine the extension id. | 120 // Determine the extension id. |
| 117 static std::string GenerateId(const base::DictionaryValue* manifest); | 121 static std::string GenerateId(const base::DictionaryValue* manifest); |
| 118 | 122 |
| 119 PrefService* prefs_; | 123 PrefService* prefs_; |
| 120 PrefService* local_state_; | 124 PrefService* local_state_; |
| 121 | 125 |
| 122 ExtensionServiceInterface* extension_service_; | 126 ExtensionServiceInterface* extension_service_; |
| 123 | 127 |
| 124 // List of registered component extensions (see Extension::Location). | 128 // List of registered component extensions (see Extension::Location). |
| 125 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; | 129 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; |
| 126 RegisteredComponentExtensions component_extensions_; | 130 RegisteredComponentExtensions component_extensions_; |
| 127 | 131 |
| 128 PrefChangeRegistrar pref_change_registrar_; | 132 PrefChangeRegistrar pref_change_registrar_; |
| 129 | 133 |
| 130 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); | 134 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 } // namespace extensions | 137 } // namespace extensions |
| 134 | 138 |
| 135 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| OLD | NEW |