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 <string> | 10 #include <string> |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 // Adds |extension| to this ExtensionService and notifies observers than an | 390 // Adds |extension| to this ExtensionService and notifies observers than an |
391 // extension has been loaded. Called by the backend after an extension has | 391 // extension has been loaded. Called by the backend after an extension has |
392 // been loaded from a file and installed. | 392 // been loaded from a file and installed. |
393 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; | 393 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; |
394 | 394 |
395 // Called by the backend when an extension has been installed. | 395 // Called by the backend when an extension has been installed. |
396 void OnExtensionInstalled( | 396 void OnExtensionInstalled( |
397 const extensions::Extension* extension, | 397 const extensions::Extension* extension, |
398 bool from_webstore, | 398 bool from_webstore, |
399 const StringOrdinal& page_ordinal); | 399 const StringOrdinal& page_ordinal, |
| 400 bool has_requirement_errors); |
400 | 401 |
401 // Initializes the |extension|'s active permission set and disables the | 402 // Initializes the |extension|'s active permission set and disables the |
402 // extension if the privilege level has increased (e.g., due to an upgrade). | 403 // extension if the privilege level has increased (e.g., due to an upgrade). |
403 void InitializePermissions(const extensions::Extension* extension); | 404 void InitializePermissions(const extensions::Extension* extension); |
404 | 405 |
405 // Go through each extensions in pref, unload blacklisted extensions | 406 // Go through each extensions in pref, unload blacklisted extensions |
406 // and update the blacklist state in pref. | 407 // and update the blacklist state in pref. |
407 virtual void UpdateExtensionBlacklist( | 408 virtual void UpdateExtensionBlacklist( |
408 const std::vector<std::string>& blacklist) OVERRIDE; | 409 const std::vector<std::string>& blacklist) OVERRIDE; |
409 | 410 |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 #endif | 862 #endif |
862 | 863 |
863 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 864 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
864 InstallAppsWithUnlimtedStorage); | 865 InstallAppsWithUnlimtedStorage); |
865 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 866 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
866 InstallAppsAndCheckStorageProtection); | 867 InstallAppsAndCheckStorageProtection); |
867 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 868 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
868 }; | 869 }; |
869 | 870 |
870 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 871 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |