| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 const extensions::Blacklist::BlacklistStateMap& state_map); | 573 const extensions::Blacklist::BlacklistStateMap& state_map); |
| 574 | 574 |
| 575 // Used only by test code. | 575 // Used only by test code. |
| 576 void UnloadAllExtensionsInternal(); | 576 void UnloadAllExtensionsInternal(); |
| 577 | 577 |
| 578 // Disable apps & extensions now to stop them from running after a profile | 578 // Disable apps & extensions now to stop them from running after a profile |
| 579 // has been conceptually deleted. Don't wait for full browser shutdown and | 579 // has been conceptually deleted. Don't wait for full browser shutdown and |
| 580 // the actual profile objects to be destroyed. | 580 // the actual profile objects to be destroyed. |
| 581 void OnProfileDestructionStarted(); | 581 void OnProfileDestructionStarted(); |
| 582 | 582 |
| 583 // Upon reloading an extension, reconnects devtools to the extension if |
| 584 // the extension has a lazy background page. |
| 585 void MaybeReconnectDevtoolsToLazyBackgroundPage( |
| 586 const extensions::Extension* extension_id); |
| 587 |
| 583 // Called on file task runner thread to uninstall extension. | 588 // Called on file task runner thread to uninstall extension. |
| 584 static void UninstallExtensionOnFileThread( | 589 static void UninstallExtensionOnFileThread( |
| 585 const std::string& id, | 590 const std::string& id, |
| 586 Profile* profile, | 591 Profile* profile, |
| 587 const base::FilePath& install_dir, | 592 const base::FilePath& install_dir, |
| 588 const base::FilePath& extension_path); | 593 const base::FilePath& extension_path); |
| 589 | 594 |
| 590 const base::CommandLine* command_line_ = nullptr; | 595 const base::CommandLine* command_line_ = nullptr; |
| 591 | 596 |
| 592 // The normal profile associated with this ExtensionService. | 597 // The normal profile associated with this ExtensionService. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 GreylistUnknownDontChange); | 750 GreylistUnknownDontChange); |
| 746 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 751 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 747 ManagementPolicyProhibitsEnableOnInstalled); | 752 ManagementPolicyProhibitsEnableOnInstalled); |
| 748 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 753 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 749 BlockAndUnblockBlacklistedExtension); | 754 BlockAndUnblockBlacklistedExtension); |
| 750 | 755 |
| 751 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 756 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 752 }; | 757 }; |
| 753 | 758 |
| 754 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 759 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |