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