| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 virtual void OnLoadedInstalledExtensions(); | 264 virtual void OnLoadedInstalledExtensions(); |
| 265 | 265 |
| 266 // Called when an extension has been loaded. | 266 // Called when an extension has been loaded. |
| 267 void OnExtensionLoaded(Extension* extension, | 267 void OnExtensionLoaded(Extension* extension, |
| 268 bool allow_privilege_increase); | 268 bool allow_privilege_increase); |
| 269 | 269 |
| 270 // Called by the backend when an extension has been installed. | 270 // Called by the backend when an extension has been installed. |
| 271 void OnExtensionInstalled(Extension* extension, | 271 void OnExtensionInstalled(Extension* extension, |
| 272 bool allow_privilege_increase); | 272 bool allow_privilege_increase); |
| 273 | 273 |
| 274 // Called by the backend when an attempt was made to reinstall the same | |
| 275 // version of an existing extension. | |
| 276 void OnExtensionOverinstallAttempted(const std::string& id); | |
| 277 | |
| 278 // Called by the backend when an external extension is found. | 274 // Called by the backend when an external extension is found. |
| 279 void OnExternalExtensionFound(const std::string& id, | 275 void OnExternalExtensionFound(const std::string& id, |
| 280 const std::string& version, | 276 const std::string& version, |
| 281 const FilePath& path, | 277 const FilePath& path, |
| 282 Extension::Location location); | 278 Extension::Location location); |
| 283 | 279 |
| 284 // Go through each extensions in pref, unload blacklisted extensions | 280 // Go through each extensions in pref, unload blacklisted extensions |
| 285 // and update the blacklist state in pref. | 281 // and update the blacklist state in pref. |
| 286 virtual void UpdateExtensionBlacklist( | 282 virtual void UpdateExtensionBlacklist( |
| 287 const std::vector<std::string>& blacklist); | 283 const std::vector<std::string>& blacklist); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 518 |
| 523 // A map of all external extension providers. | 519 // A map of all external extension providers. |
| 524 typedef std::map<Extension::Location, | 520 typedef std::map<Extension::Location, |
| 525 linked_ptr<ExternalExtensionProvider> > ProviderMap; | 521 linked_ptr<ExternalExtensionProvider> > ProviderMap; |
| 526 ProviderMap external_extension_providers_; | 522 ProviderMap external_extension_providers_; |
| 527 | 523 |
| 528 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 524 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 529 }; | 525 }; |
| 530 | 526 |
| 531 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 527 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |