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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
695 // Blacklist::GetBlacklistedIDs. | 695 // Blacklist::GetBlacklistedIDs. |
696 void ManageBlacklist(const std::set<std::string>& blacklisted_ids); | 696 void ManageBlacklist(const std::set<std::string>& blacklisted_ids); |
697 | 697 |
698 // Controls if installs are delayed. See comment for | 698 // Controls if installs are delayed. See comment for |
699 // |installs_delayed_for_gc_|. | 699 // |installs_delayed_for_gc_|. |
700 void set_installs_delayed_for_gc(bool value) { | 700 void set_installs_delayed_for_gc(bool value) { |
701 installs_delayed_for_gc_ = value; | 701 installs_delayed_for_gc_ = value; |
702 } | 702 } |
703 bool installs_delayed_for_gc() const { return installs_delayed_for_gc_; } | 703 bool installs_delayed_for_gc() const { return installs_delayed_for_gc_; } |
704 | 704 |
705 // A callback for when a user tries enabling an extension that was not | |
706 // known by the install verifier, so we kicked off the async steps to try | |
707 // verifying it again. | |
708 void EnableOnVerifySuccess(std::string extension_id, bool verify_success); | |
Finnur
2013/12/11 17:28:20
nit: const std::string& ?
asargent_no_longer_on_chrome
2013/12/11 21:26:05
Done.
| |
709 | |
705 // The normal profile associated with this ExtensionService. | 710 // The normal profile associated with this ExtensionService. |
706 Profile* profile_; | 711 Profile* profile_; |
707 | 712 |
708 // The ExtensionSystem for the profile above. | 713 // The ExtensionSystem for the profile above. |
709 extensions::ExtensionSystem* system_; | 714 extensions::ExtensionSystem* system_; |
710 | 715 |
711 // Preferences for the owning profile. | 716 // Preferences for the owning profile. |
712 extensions::ExtensionPrefs* extension_prefs_; | 717 extensions::ExtensionPrefs* extension_prefs_; |
713 | 718 |
714 // Blacklist for the owning profile. | 719 // Blacklist for the owning profile. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
844 #endif | 849 #endif |
845 | 850 |
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
847 InstallAppsWithUnlimtedStorage); | 852 InstallAppsWithUnlimtedStorage); |
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
849 InstallAppsAndCheckStorageProtection); | 854 InstallAppsAndCheckStorageProtection); |
850 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 855 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
851 }; | 856 }; |
852 | 857 |
853 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 858 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |