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 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 syncer::StringOrdinal& page_ordinal); | 409 const syncer::StringOrdinal& page_ordinal, |
| 410 bool has_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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 #endif | 881 #endif |
881 | 882 |
882 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 883 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
883 InstallAppsWithUnlimtedStorage); | 884 InstallAppsWithUnlimtedStorage); |
884 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 885 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
885 InstallAppsAndCheckStorageProtection); | 886 InstallAppsAndCheckStorageProtection); |
886 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 887 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
887 }; | 888 }; |
888 | 889 |
889 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 890 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |