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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 | 689 |
690 // Helper to determine if updating an extensions should proceed immediately, | 690 // Helper to determine if updating an extensions should proceed immediately, |
691 // or if we should delay the update until further notice. | 691 // or if we should delay the update until further notice. |
692 bool ShouldDelayExtensionUpdate(const std::string& extension_id, | 692 bool ShouldDelayExtensionUpdate(const std::string& extension_id, |
693 bool wait_for_idle) const; | 693 bool wait_for_idle) const; |
694 | 694 |
695 // Helper to search storage directories for extensions with isolated storage | 695 // Helper to search storage directories for extensions with isolated storage |
696 // that have been orphaned by an uninstall. | 696 // that have been orphaned by an uninstall. |
697 void GarbageCollectIsolatedStorage(); | 697 void GarbageCollectIsolatedStorage(); |
698 void OnGarbageCollectIsolatedStorageFinished(); | 698 void OnGarbageCollectIsolatedStorageFinished(); |
699 void OnNeedsToGarbageCollectIsolatedStorage(); | |
700 | 699 |
701 // extensions::Blacklist::Observer implementation. | 700 // extensions::Blacklist::Observer implementation. |
702 virtual void OnBlacklistUpdated() OVERRIDE; | 701 virtual void OnBlacklistUpdated() OVERRIDE; |
703 | 702 |
704 // Manages the blacklisted extensions, intended as callback from | 703 // Manages the blacklisted extensions, intended as callback from |
705 // Blacklist::GetBlacklistedIDs. | 704 // Blacklist::GetBlacklistedIDs. |
706 void ManageBlacklist(const std::set<std::string>& blacklisted_ids); | 705 void ManageBlacklist(const std::set<std::string>& blacklisted_ids); |
707 | 706 |
708 // Controls if installs are delayed. See comment for | 707 // Controls if installs are delayed. See comment for |
709 // |installs_delayed_for_gc_|. | 708 // |installs_delayed_for_gc_|. |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 #endif | 850 #endif |
852 | 851 |
853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
854 InstallAppsWithUnlimtedStorage); | 853 InstallAppsWithUnlimtedStorage); |
855 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
856 InstallAppsAndCheckStorageProtection); | 855 InstallAppsAndCheckStorageProtection); |
857 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 856 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
858 }; | 857 }; |
859 | 858 |
860 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 859 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |