| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 const extensions::Blacklist::BlacklistStateMap& state_map); | 555 const extensions::Blacklist::BlacklistStateMap& state_map); |
| 556 | 556 |
| 557 // Used only by test code. | 557 // Used only by test code. |
| 558 void UnloadAllExtensionsInternal(); | 558 void UnloadAllExtensionsInternal(); |
| 559 | 559 |
| 560 // Disable apps & extensions now to stop them from running after a profile | 560 // Disable apps & extensions now to stop them from running after a profile |
| 561 // has been conceptually deleted. Don't wait for full browser shutdown and | 561 // has been conceptually deleted. Don't wait for full browser shutdown and |
| 562 // the actual profile objects to be destroyed. | 562 // the actual profile objects to be destroyed. |
| 563 void OnProfileDestructionStarted(); | 563 void OnProfileDestructionStarted(); |
| 564 | 564 |
| 565 // Called on file task runner thread to uninstall extension. |
| 566 static void UninstallExtensionOnFileThread( |
| 567 const std::string& id, |
| 568 Profile* profile, |
| 569 const base::FilePath& install_dir, |
| 570 const base::FilePath& extension_path); |
| 571 |
| 565 // The normal profile associated with this ExtensionService. | 572 // The normal profile associated with this ExtensionService. |
| 566 Profile* profile_; | 573 Profile* profile_; |
| 567 | 574 |
| 568 // The ExtensionSystem for the profile above. | 575 // The ExtensionSystem for the profile above. |
| 569 extensions::ExtensionSystem* system_; | 576 extensions::ExtensionSystem* system_; |
| 570 | 577 |
| 571 // Preferences for the owning profile. | 578 // Preferences for the owning profile. |
| 572 extensions::ExtensionPrefs* extension_prefs_; | 579 extensions::ExtensionPrefs* extension_prefs_; |
| 573 | 580 |
| 574 // Blacklist for the owning profile. | 581 // Blacklist for the owning profile. |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 719 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 713 GreylistedExtensionDisabled); | 720 GreylistedExtensionDisabled); |
| 714 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 721 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 715 GreylistDontEnableManuallyDisabled); | 722 GreylistDontEnableManuallyDisabled); |
| 716 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 723 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 717 GreylistUnknownDontChange); | 724 GreylistUnknownDontChange); |
| 718 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 725 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 719 }; | 726 }; |
| 720 | 727 |
| 721 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 728 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |