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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 // Adds |extension| to this ExtensionService and notifies observers than an | 400 // Adds |extension| to this ExtensionService and notifies observers than an |
401 // extension has been loaded. Called by the backend after an extension has | 401 // extension has been loaded. Called by the backend after an extension has |
402 // been loaded from a file and installed. | 402 // been loaded from a file and installed. |
403 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; | 403 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; |
404 | 404 |
405 // Called by the backend when an extension has been installed. | 405 // Called by the backend when an extension has been installed. |
406 void OnExtensionInstalled( | 406 void OnExtensionInstalled( |
407 const extensions::Extension* extension, | 407 const extensions::Extension* extension, |
408 bool from_webstore, | 408 bool from_webstore, |
409 const StringOrdinal& page_ordinal); | 409 const StringOrdinal& page_ordinal, |
| 410 const std::vector<std::string>& requirement_errors); |
410 | 411 |
411 // Initializes the |extension|'s active permission set and disables the | 412 // Initializes the |extension|'s active permission set and disables the |
412 // extension if the privilege level has increased (e.g., due to an upgrade). | 413 // extension if the privilege level has increased (e.g., due to an upgrade). |
413 void InitializePermissions(const extensions::Extension* extension); | 414 void InitializePermissions(const extensions::Extension* extension); |
414 | 415 |
415 // Go through each extensions in pref, unload blacklisted extensions | 416 // Go through each extensions in pref, unload blacklisted extensions |
416 // and update the blacklist state in pref. | 417 // and update the blacklist state in pref. |
417 virtual void UpdateExtensionBlacklist( | 418 virtual void UpdateExtensionBlacklist( |
418 const std::vector<std::string>& blacklist) OVERRIDE; | 419 const std::vector<std::string>& blacklist) OVERRIDE; |
419 | 420 |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 scoped_ptr<ExtensionErrorUI> extension_error_ui_; | 859 scoped_ptr<ExtensionErrorUI> extension_error_ui_; |
859 | 860 |
860 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 861 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
861 InstallAppsWithUnlimtedStorage); | 862 InstallAppsWithUnlimtedStorage); |
862 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 863 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
863 InstallAppsAndCheckStorageProtection); | 864 InstallAppsAndCheckStorageProtection); |
864 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 865 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
865 }; | 866 }; |
866 | 867 |
867 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 868 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |