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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 // Called on file task runner thread to uninstall extension. | 580 // Called on file task runner thread to uninstall extension. |
581 static void UninstallExtensionOnFileThread( | 581 static void UninstallExtensionOnFileThread( |
582 const std::string& id, | 582 const std::string& id, |
583 Profile* profile, | 583 Profile* profile, |
584 const base::FilePath& install_dir, | 584 const base::FilePath& install_dir, |
585 const base::FilePath& extension_path); | 585 const base::FilePath& extension_path); |
586 | 586 |
587 // Called when the initial extensions load has completed. | 587 // Called when the initial extensions load has completed. |
588 void OnInstalledExtensionsLoaded(); | 588 void OnInstalledExtensionsLoaded(); |
589 | 589 |
| 590 // Upon reloading an extension, reconnects devtools to the extension if |
| 591 // the extension has a lazy background page. |
| 592 void MaybeReconnectDevtoolsToLazyBackgroundPage( |
| 593 const extensions::Extension* extension_id); |
| 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. |
593 Profile* profile_ = nullptr; | 598 Profile* profile_ = nullptr; |
594 | 599 |
595 // The ExtensionSystem for the profile above. | 600 // The ExtensionSystem for the profile above. |
596 extensions::ExtensionSystem* system_ = nullptr; | 601 extensions::ExtensionSystem* system_ = nullptr; |
597 | 602 |
598 // Preferences for the owning profile. | 603 // Preferences for the owning profile. |
599 extensions::ExtensionPrefs* extension_prefs_ = nullptr; | 604 extensions::ExtensionPrefs* extension_prefs_ = nullptr; |
(...skipping 145 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 |