| 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 | 396 |
| 397 // Adds |extension| to this ExtensionService and notifies observers than an | 397 // Adds |extension| to this ExtensionService and notifies observers than an |
| 398 // extension has been loaded. Called by the backend after an extension has | 398 // extension has been loaded. Called by the backend after an extension has |
| 399 // been loaded from a file and installed. | 399 // been loaded from a file and installed. |
| 400 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; | 400 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; |
| 401 | 401 |
| 402 // Called by the backend when an extension has been installed. | 402 // Called by the backend when an extension has been installed. |
| 403 void OnExtensionInstalled( | 403 void OnExtensionInstalled( |
| 404 const extensions::Extension* extension, | 404 const extensions::Extension* extension, |
| 405 bool from_webstore, | 405 bool from_webstore, |
| 406 const StringOrdinal& page_ordinal); | 406 const StringOrdinal& page_ordinal, |
| 407 const std::vector<std::string>& requirement_errors); |
| 407 | 408 |
| 408 // Initializes the |extension|'s active permission set and disables the | 409 // Initializes the |extension|'s active permission set and disables the |
| 409 // 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). |
| 410 void InitializePermissions(const extensions::Extension* extension); | 411 void InitializePermissions(const extensions::Extension* extension); |
| 411 | 412 |
| 412 // Go through each extensions in pref, unload blacklisted extensions | 413 // Go through each extensions in pref, unload blacklisted extensions |
| 413 // and update the blacklist state in pref. | 414 // and update the blacklist state in pref. |
| 414 virtual void UpdateExtensionBlacklist( | 415 virtual void UpdateExtensionBlacklist( |
| 415 const std::vector<std::string>& blacklist) OVERRIDE; | 416 const std::vector<std::string>& blacklist) OVERRIDE; |
| 416 | 417 |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 scoped_ptr<ExtensionErrorUI> extension_error_ui_; | 863 scoped_ptr<ExtensionErrorUI> extension_error_ui_; |
| 863 | 864 |
| 864 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 865 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 865 InstallAppsWithUnlimtedStorage); | 866 InstallAppsWithUnlimtedStorage); |
| 866 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 867 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 867 InstallAppsAndCheckStorageProtection); | 868 InstallAppsAndCheckStorageProtection); |
| 868 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 869 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 869 }; | 870 }; |
| 870 | 871 |
| 871 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 872 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |