| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 // Called when the initial extensions load has completed. | 357 // Called when the initial extensions load has completed. |
| 358 virtual void OnLoadedInstalledExtensions(); | 358 virtual void OnLoadedInstalledExtensions(); |
| 359 | 359 |
| 360 // Adds |extension| to this ExtensionService and notifies observers than an | 360 // Adds |extension| to this ExtensionService and notifies observers than an |
| 361 // extension has been loaded. Called by the backend after an extension has | 361 // extension has been loaded. Called by the backend after an extension has |
| 362 // been loaded from a file and installed. | 362 // been loaded from a file and installed. |
| 363 void AddExtension(const Extension* extension); | 363 void AddExtension(const Extension* extension); |
| 364 | 364 |
| 365 // Called by the backend when an extension has been installed. | 365 // Called by the backend when an extension has been installed. |
| 366 void OnExtensionInstalled( | 366 void OnExtensionInstalled( |
| 367 const Extension* extension, bool from_webstore, int page_index); | 367 const Extension* extension, bool from_webstore, StringOrdinal page_index); |
| 368 | 368 |
| 369 // Initializes the |extension|'s active permission set and disables the | 369 // Initializes the |extension|'s active permission set and disables the |
| 370 // extension if the privilege level has increased (e.g., due to an upgrade). | 370 // extension if the privilege level has increased (e.g., due to an upgrade). |
| 371 void InitializePermissions(const Extension* extension); | 371 void InitializePermissions(const Extension* extension); |
| 372 | 372 |
| 373 // Go through each extensions in pref, unload blacklisted extensions | 373 // Go through each extensions in pref, unload blacklisted extensions |
| 374 // and update the blacklist state in pref. | 374 // and update the blacklist state in pref. |
| 375 virtual void UpdateExtensionBlacklist( | 375 virtual void UpdateExtensionBlacklist( |
| 376 const std::vector<std::string>& blacklist) OVERRIDE; | 376 const std::vector<std::string>& blacklist) OVERRIDE; |
| 377 | 377 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 extensions::ProcessMap process_map_; | 794 extensions::ProcessMap process_map_; |
| 795 | 795 |
| 796 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 796 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 797 InstallAppsWithUnlimtedStorage); | 797 InstallAppsWithUnlimtedStorage); |
| 798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 798 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 799 InstallAppsAndCheckStorageProtection); | 799 InstallAppsAndCheckStorageProtection); |
| 800 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 800 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 801 }; | 801 }; |
| 802 | 802 |
| 803 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 803 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |