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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void AddDefaultComponentExtensionsWithBackgroundPagesForKioskMode(); | 145 void AddDefaultComponentExtensionsWithBackgroundPagesForKioskMode(); |
146 void AddFileManagerExtension(); | 146 void AddFileManagerExtension(); |
147 void AddVideoPlayerExtension(); | 147 void AddVideoPlayerExtension(); |
148 void AddAudioPlayerExtension(); | 148 void AddAudioPlayerExtension(); |
149 void AddGalleryExtension(); | 149 void AddGalleryExtension(); |
150 void AddWebstoreWidgetExtension(); | 150 void AddWebstoreWidgetExtension(); |
151 void AddHangoutServicesExtension(); | 151 void AddHangoutServicesExtension(); |
152 void AddHotwordHelperExtension(); | 152 void AddHotwordHelperExtension(); |
153 void AddImageLoaderExtension(); | 153 void AddImageLoaderExtension(); |
154 void AddNetworkSpeechSynthesisExtension(); | 154 void AddNetworkSpeechSynthesisExtension(); |
155 void AddGoogleNowExtension(); | |
156 | 155 |
157 void AddWithNameAndDescription(int manifest_resource_id, | 156 void AddWithNameAndDescription(int manifest_resource_id, |
158 const base::FilePath& root_directory, | 157 const base::FilePath& root_directory, |
159 const std::string& name_string, | 158 const std::string& name_string, |
160 const std::string& description_string); | 159 const std::string& description_string); |
161 void AddChromeApp(); | 160 void AddChromeApp(); |
162 void AddHotwordAudioVerificationApp(); | 161 void AddHotwordAudioVerificationApp(); |
163 void AddKeyboardApp(); | 162 void AddKeyboardApp(); |
164 void AddWebStoreApp(); | 163 void AddWebStoreApp(); |
165 | 164 |
166 scoped_refptr<const Extension> CreateExtension( | 165 scoped_refptr<const Extension> CreateExtension( |
167 const ComponentExtensionInfo& info, std::string* utf8_error); | 166 const ComponentExtensionInfo& info, std::string* utf8_error); |
168 | 167 |
169 // Deletes the extension storage for an extension that has not yet been | |
170 // loaded. If the extension has been loaded, use ComponentLoader::Remove | |
171 // instead. | |
172 void DeleteData(int manifest_resource_id, | |
173 const base::FilePath& root_directory); | |
174 | |
175 // Unloads |component| from the memory. | 168 // Unloads |component| from the memory. |
176 void UnloadComponent(ComponentExtensionInfo* component); | 169 void UnloadComponent(ComponentExtensionInfo* component); |
177 | 170 |
178 // Enable HTML5 FileSystem for given component extension in Guest mode. | 171 // Enable HTML5 FileSystem for given component extension in Guest mode. |
179 void EnableFileSystemInGuestMode(const std::string& id); | 172 void EnableFileSystemInGuestMode(const std::string& id); |
180 | 173 |
181 #if defined(OS_CHROMEOS) | 174 #if defined(OS_CHROMEOS) |
182 // Adds an extension where the manifest file is stored on the file system. | 175 // Adds an extension where the manifest file is stored on the file system. |
183 // |manifest_filename| can be relative to the |root_directory|. | 176 // |manifest_filename| can be relative to the |root_directory|. |
184 void AddWithManifestFile( | 177 void AddWithManifestFile( |
(...skipping 27 matching lines...) Expand all Loading... |
212 base::WeakPtrFactory<ComponentLoader> weak_factory_; | 205 base::WeakPtrFactory<ComponentLoader> weak_factory_; |
213 | 206 |
214 friend class TtsApiTest; | 207 friend class TtsApiTest; |
215 | 208 |
216 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); | 209 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); |
217 }; | 210 }; |
218 | 211 |
219 } // namespace extensions | 212 } // namespace extensions |
220 | 213 |
221 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 214 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
OLD | NEW |