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, spins up its lazy background page if |
| 591 // necessary. |
| 592 void MaybeSpinUpLazyBackgroundPage(const extensions::Extension* extension_id); |
| 593 |
590 const base::CommandLine* command_line_ = nullptr; | 594 const base::CommandLine* command_line_ = nullptr; |
591 | 595 |
592 // The normal profile associated with this ExtensionService. | 596 // The normal profile associated with this ExtensionService. |
593 Profile* profile_ = nullptr; | 597 Profile* profile_ = nullptr; |
594 | 598 |
595 // The ExtensionSystem for the profile above. | 599 // The ExtensionSystem for the profile above. |
596 extensions::ExtensionSystem* system_ = nullptr; | 600 extensions::ExtensionSystem* system_ = nullptr; |
597 | 601 |
598 // Preferences for the owning profile. | 602 // Preferences for the owning profile. |
599 extensions::ExtensionPrefs* extension_prefs_ = nullptr; | 603 extensions::ExtensionPrefs* extension_prefs_ = nullptr; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 GreylistUnknownDontChange); | 749 GreylistUnknownDontChange); |
746 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 750 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
747 ManagementPolicyProhibitsEnableOnInstalled); | 751 ManagementPolicyProhibitsEnableOnInstalled); |
748 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 752 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
749 BlockAndUnblockBlacklistedExtension); | 753 BlockAndUnblockBlacklistedExtension); |
750 | 754 |
751 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 755 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
752 }; | 756 }; |
753 | 757 |
754 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 758 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
OLD | NEW |