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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 virtual void OnLoadedInstalledExtensions(); | 400 virtual void OnLoadedInstalledExtensions(); |
401 | 401 |
402 // Adds |extension| to this ExtensionService and notifies observers than an | 402 // Adds |extension| to this ExtensionService and notifies observers than an |
403 // extension has been loaded. Called by the backend after an extension has | 403 // extension has been loaded. Called by the backend after an extension has |
404 // been loaded from a file and installed. | 404 // been loaded from a file and installed. |
405 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; | 405 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; |
406 | 406 |
407 // Called by the backend when an extension has been installed. | 407 // Called by the backend when an extension has been installed. |
408 void OnExtensionInstalled( | 408 void OnExtensionInstalled( |
409 const extensions::Extension* extension, | 409 const extensions::Extension* extension, |
410 bool from_webstore, | |
411 const syncer::StringOrdinal& page_ordinal, | 410 const syncer::StringOrdinal& page_ordinal, |
412 bool has_requirement_errors); | 411 bool has_requirement_errors); |
413 | 412 |
414 // Initializes the |extension|'s active permission set and disables the | 413 // Initializes the |extension|'s active permission set and disables the |
415 // extension if the privilege level has increased (e.g., due to an upgrade). | 414 // extension if the privilege level has increased (e.g., due to an upgrade). |
416 void InitializePermissions(const extensions::Extension* extension); | 415 void InitializePermissions(const extensions::Extension* extension); |
417 | 416 |
418 // Go through each extensions in pref, unload blacklisted extensions | 417 // Go through each extensions in pref, unload blacklisted extensions |
419 // and update the blacklist state in pref. | 418 // and update the blacklist state in pref. |
420 virtual void UpdateExtensionBlacklist( | 419 virtual void UpdateExtensionBlacklist( |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 #endif | 892 #endif |
894 | 893 |
895 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 894 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
896 InstallAppsWithUnlimtedStorage); | 895 InstallAppsWithUnlimtedStorage); |
897 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 896 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
898 InstallAppsAndCheckStorageProtection); | 897 InstallAppsAndCheckStorageProtection); |
899 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 898 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
900 }; | 899 }; |
901 | 900 |
902 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 901 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |