| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 virtual void OnLoadedInstalledExtensions(); | 396 virtual void OnLoadedInstalledExtensions(); |
| 397 | 397 |
| 398 // Adds |extension| to this ExtensionService and notifies observers than an | 398 // Adds |extension| to this ExtensionService and notifies observers than an |
| 399 // extension has been loaded. Called by the backend after an extension has | 399 // extension has been loaded. Called by the backend after an extension has |
| 400 // been loaded from a file and installed. | 400 // been loaded from a file and installed. |
| 401 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; | 401 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; |
| 402 | 402 |
| 403 // Called by the backend when an extension has been installed. | 403 // Called by the backend when an extension has been installed. |
| 404 void OnExtensionInstalled( | 404 void OnExtensionInstalled( |
| 405 const extensions::Extension* extension, | 405 const extensions::Extension* extension, |
| 406 bool from_webstore, | |
| 407 const syncer::StringOrdinal& page_ordinal, | 406 const syncer::StringOrdinal& page_ordinal, |
| 408 bool has_requirement_errors); | 407 bool has_requirement_errors); |
| 409 | 408 |
| 410 // Initializes the |extension|'s active permission set and disables the | 409 // Initializes the |extension|'s active permission set and disables the |
| 411 // extension if the privilege level has increased (e.g., due to an upgrade). | 410 // extension if the privilege level has increased (e.g., due to an upgrade). |
| 412 void InitializePermissions(const extensions::Extension* extension); | 411 void InitializePermissions(const extensions::Extension* extension); |
| 413 | 412 |
| 414 // Go through each extensions in pref, unload blacklisted extensions | 413 // Go through each extensions in pref, unload blacklisted extensions |
| 415 // and update the blacklist state in pref. | 414 // and update the blacklist state in pref. |
| 416 virtual void UpdateExtensionBlacklist( | 415 virtual void UpdateExtensionBlacklist( |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 #endif | 882 #endif |
| 884 | 883 |
| 885 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 884 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 886 InstallAppsWithUnlimtedStorage); | 885 InstallAppsWithUnlimtedStorage); |
| 887 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 886 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 888 InstallAppsAndCheckStorageProtection); | 887 InstallAppsAndCheckStorageProtection); |
| 889 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 888 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 890 }; | 889 }; |
| 891 | 890 |
| 892 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 891 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |