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_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 void AddExtension(const extensions::Extension* extension) override; | 221 void AddExtension(const extensions::Extension* extension) override; |
222 void AddComponentExtension(const extensions::Extension* extension) override; | 222 void AddComponentExtension(const extensions::Extension* extension) override; |
223 const extensions::Extension* GetPendingExtensionUpdate( | 223 const extensions::Extension* GetPendingExtensionUpdate( |
224 const std::string& extension_id) const override; | 224 const std::string& extension_id) const override; |
225 void FinishDelayedInstallation(const std::string& extension_id) override; | 225 void FinishDelayedInstallation(const std::string& extension_id) override; |
226 void CheckManagementPolicy() override; | 226 void CheckManagementPolicy() override; |
227 void CheckForUpdatesSoon() override; | 227 void CheckForUpdatesSoon() override; |
228 bool is_ready() override; | 228 bool is_ready() override; |
229 base::SequencedTaskRunner* GetFileTaskRunner() override; | 229 base::SequencedTaskRunner* GetFileTaskRunner() override; |
230 | 230 |
231 // ExternalProvider::Visitor implementation. | 231 // ExternalProvider::VisitorInterface implementation. |
232 // Exposed for testing. | 232 // Exposed for testing. |
233 bool OnExternalExtensionFileFound(const std::string& id, | 233 bool OnExternalExtensionFileFound(const std::string& id, |
234 const base::Version* version, | 234 const base::Version* version, |
235 const base::FilePath& path, | 235 const base::FilePath& path, |
236 extensions::Manifest::Location location, | 236 extensions::Manifest::Location location, |
237 int creation_flags, | 237 int creation_flags, |
238 bool mark_acknowledged, | 238 bool mark_acknowledged, |
239 bool install_immediately) override; | 239 bool install_immediately) override; |
240 bool OnExternalExtensionUpdateUrlFound( | 240 bool OnExternalExtensionUpdateUrlFound( |
241 const std::string& id, | 241 const std::string& id, |
242 const std::string& install_parameter, | 242 const std::string& install_parameter, |
243 const GURL& update_url, | 243 const GURL& update_url, |
244 extensions::Manifest::Location location, | 244 extensions::Manifest::Location location, |
245 int creation_flags, | 245 int creation_flags, |
246 bool mark_acknowledged) override; | 246 bool mark_acknowledged, |
| 247 bool is_initial_load) override; |
247 void OnExternalProviderReady( | 248 void OnExternalProviderReady( |
248 const extensions::ExternalProviderInterface* provider) override; | 249 const extensions::ExternalProviderInterface* provider) override; |
| 250 void OnExternalProviderUpdateComplete( |
| 251 const extensions::ExternalProviderInterface* provider, |
| 252 const std::set<std::string>& removed_extensions) override; |
249 | 253 |
250 // ExtensionManagement::Observer implementation: | 254 // ExtensionManagement::Observer implementation: |
251 void OnExtensionManagementSettingsChanged() override; | 255 void OnExtensionManagementSettingsChanged() override; |
252 | 256 |
253 // Initialize and start all installed extensions. | 257 // Initialize and start all installed extensions. |
254 void Init(); | 258 void Init(); |
255 | 259 |
256 // Called when the associated Profile is going to be destroyed. | 260 // Called when the associated Profile is going to be destroyed. |
257 void Shutdown(); | 261 void Shutdown(); |
258 | 262 |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 GreylistUnknownDontChange); | 757 GreylistUnknownDontChange); |
754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 758 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
755 ManagementPolicyProhibitsEnableOnInstalled); | 759 ManagementPolicyProhibitsEnableOnInstalled); |
756 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 760 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
757 BlockAndUnblockBlacklistedExtension); | 761 BlockAndUnblockBlacklistedExtension); |
758 | 762 |
759 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 763 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
760 }; | 764 }; |
761 | 765 |
762 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 766 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |