| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 // that have been orphaned by an uninstall. | 792 // that have been orphaned by an uninstall. |
| 793 void GarbageCollectIsolatedStorage(); | 793 void GarbageCollectIsolatedStorage(); |
| 794 void OnGarbageCollectIsolatedStorageFinished(); | 794 void OnGarbageCollectIsolatedStorageFinished(); |
| 795 void OnNeedsToGarbageCollectIsolatedStorage(); | 795 void OnNeedsToGarbageCollectIsolatedStorage(); |
| 796 | 796 |
| 797 // extensions::Blacklist::Observer implementation. | 797 // extensions::Blacklist::Observer implementation. |
| 798 virtual void OnBlacklistUpdated() OVERRIDE; | 798 virtual void OnBlacklistUpdated() OVERRIDE; |
| 799 | 799 |
| 800 // Manages the blacklisted extensions, intended as callback from | 800 // Manages the blacklisted extensions, intended as callback from |
| 801 // Blacklist::GetBlacklistedIDs. | 801 // Blacklist::GetBlacklistedIDs. |
| 802 void ManageBlacklist(const std::set<std::string>& old_blacklisted_ids, | 802 void ManageBlacklist(const std::set<std::string>& blacklisted_ids); |
| 803 const std::set<std::string>& new_blacklisted_ids); | |
| 804 | 803 |
| 805 // Controls if installs are delayed. See comment for | 804 // Controls if installs are delayed. See comment for |
| 806 // |installs_delayed_for_gc_|. | 805 // |installs_delayed_for_gc_|. |
| 807 void set_installs_delayed_for_gc(bool value) { | 806 void set_installs_delayed_for_gc(bool value) { |
| 808 installs_delayed_for_gc_ = value; | 807 installs_delayed_for_gc_ = value; |
| 809 } | 808 } |
| 810 bool installs_delayed_for_gc() const { return installs_delayed_for_gc_; } | 809 bool installs_delayed_for_gc() const { return installs_delayed_for_gc_; } |
| 811 | 810 |
| 812 // The normal profile associated with this ExtensionService. | 811 // The normal profile associated with this ExtensionService. |
| 813 Profile* profile_; | 812 Profile* profile_; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 #endif | 961 #endif |
| 963 | 962 |
| 964 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 963 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 965 InstallAppsWithUnlimtedStorage); | 964 InstallAppsWithUnlimtedStorage); |
| 966 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 965 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 967 InstallAppsAndCheckStorageProtection); | 966 InstallAppsAndCheckStorageProtection); |
| 968 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 967 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 969 }; | 968 }; |
| 970 | 969 |
| 971 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 970 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |