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