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 <string> | 10 #include <string> |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
393 | 393 |
394 // Adds |extension| to this ExtensionService and notifies observers than an | 394 // Adds |extension| to this ExtensionService and notifies observers than an |
395 // extension has been loaded. Called by the backend after an extension has | 395 // extension has been loaded. Called by the backend after an extension has |
396 // been loaded from a file and installed. | 396 // been loaded from a file and installed. |
397 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; | 397 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; |
398 | 398 |
399 // Called by the backend when an extension has been installed. | 399 // Called by the backend when an extension has been installed. |
400 void OnExtensionInstalled( | 400 void OnExtensionInstalled( |
401 const extensions::Extension* extension, | 401 const extensions::Extension* extension, |
402 bool from_webstore, | 402 bool from_webstore, |
403 const StringOrdinal& page_ordinal); | 403 const StringOrdinal& page_ordinal, |
404 bool has_requirement_errors); | |
eaugusti
2012/08/17 23:25:01
Since we no longer put the requirement errors in t
| |
404 | 405 |
405 // Initializes the |extension|'s active permission set and disables the | 406 // Initializes the |extension|'s active permission set and disables the |
406 // extension if the privilege level has increased (e.g., due to an upgrade). | 407 // extension if the privilege level has increased (e.g., due to an upgrade). |
407 void InitializePermissions(const extensions::Extension* extension); | 408 void InitializePermissions(const extensions::Extension* extension); |
408 | 409 |
409 // Go through each extensions in pref, unload blacklisted extensions | 410 // Go through each extensions in pref, unload blacklisted extensions |
410 // and update the blacklist state in pref. | 411 // and update the blacklist state in pref. |
411 virtual void UpdateExtensionBlacklist( | 412 virtual void UpdateExtensionBlacklist( |
412 const std::vector<std::string>& blacklist) OVERRIDE; | 413 const std::vector<std::string>& blacklist) OVERRIDE; |
413 | 414 |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
866 #endif | 867 #endif |
867 | 868 |
868 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 869 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
869 InstallAppsWithUnlimtedStorage); | 870 InstallAppsWithUnlimtedStorage); |
870 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 871 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
871 InstallAppsAndCheckStorageProtection); | 872 InstallAppsAndCheckStorageProtection); |
872 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 873 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
873 }; | 874 }; |
874 | 875 |
875 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 876 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |