| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 class CrxInstaller; | 58 class CrxInstaller; |
| 59 class ExtensionActionStorageManager; | 59 class ExtensionActionStorageManager; |
| 60 class ExtensionDownloader; | 60 class ExtensionDownloader; |
| 61 class ExtensionDownloaderDelegate; | 61 class ExtensionDownloaderDelegate; |
| 62 class ExtensionErrorController; | 62 class ExtensionErrorController; |
| 63 class ExtensionRegistry; | 63 class ExtensionRegistry; |
| 64 class ExtensionSystem; | 64 class ExtensionSystem; |
| 65 class ExtensionUpdater; | 65 class ExtensionUpdater; |
| 66 class ExternalInstallManager; | 66 class ExternalInstallManager; |
| 67 class OneShotEvent; | 67 class OneShotEvent; |
| 68 class RendererStartupHelper; | |
| 69 class SharedModuleService; | 68 class SharedModuleService; |
| 70 class UpdateObserver; | 69 class UpdateObserver; |
| 71 } // namespace extensions | 70 } // namespace extensions |
| 72 | 71 |
| 73 // This is an interface class to encapsulate the dependencies that | 72 // This is an interface class to encapsulate the dependencies that |
| 74 // various classes have on ExtensionService. This allows easy mocking. | 73 // various classes have on ExtensionService. This allows easy mocking. |
| 75 class ExtensionServiceInterface | 74 class ExtensionServiceInterface |
| 76 : public base::SupportsWeakPtr<ExtensionServiceInterface> { | 75 : public base::SupportsWeakPtr<ExtensionServiceInterface> { |
| 77 public: | 76 public: |
| 78 virtual ~ExtensionServiceInterface() {} | 77 virtual ~ExtensionServiceInterface() {} |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 | 704 |
| 706 // Sequenced task runner for extension related file operations. | 705 // Sequenced task runner for extension related file operations. |
| 707 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 706 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
| 708 | 707 |
| 709 std::unique_ptr<extensions::ExtensionActionStorageManager> | 708 std::unique_ptr<extensions::ExtensionActionStorageManager> |
| 710 extension_action_storage_manager_; | 709 extension_action_storage_manager_; |
| 711 | 710 |
| 712 // The SharedModuleService used to check for import dependencies. | 711 // The SharedModuleService used to check for import dependencies. |
| 713 std::unique_ptr<extensions::SharedModuleService> shared_module_service_; | 712 std::unique_ptr<extensions::SharedModuleService> shared_module_service_; |
| 714 | 713 |
| 715 // The associated RendererStartupHelper. Guaranteed to outlive the | |
| 716 // ExtensionSystem, and thus us. | |
| 717 extensions::RendererStartupHelper* renderer_helper_; | |
| 718 | |
| 719 base::ObserverList<extensions::UpdateObserver, true> update_observers_; | 714 base::ObserverList<extensions::UpdateObserver, true> update_observers_; |
| 720 | 715 |
| 721 // Migrates app data when upgrading a legacy packaged app to a platform app | 716 // Migrates app data when upgrading a legacy packaged app to a platform app |
| 722 std::unique_ptr<extensions::AppDataMigrator> app_data_migrator_; | 717 std::unique_ptr<extensions::AppDataMigrator> app_data_migrator_; |
| 723 | 718 |
| 724 using InstallGateRegistry = std::map<extensions::ExtensionPrefs::DelayReason, | 719 using InstallGateRegistry = std::map<extensions::ExtensionPrefs::DelayReason, |
| 725 extensions::InstallGate*>; | 720 extensions::InstallGate*>; |
| 726 InstallGateRegistry install_delayer_registry_; | 721 InstallGateRegistry install_delayer_registry_; |
| 727 | 722 |
| 728 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 723 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 744 GreylistUnknownDontChange); | 739 GreylistUnknownDontChange); |
| 745 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 740 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 746 ManagementPolicyProhibitsEnableOnInstalled); | 741 ManagementPolicyProhibitsEnableOnInstalled); |
| 747 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | 742 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, |
| 748 BlockAndUnblockBlacklistedExtension); | 743 BlockAndUnblockBlacklistedExtension); |
| 749 | 744 |
| 750 DISALLOW_COPY_AND_ASSIGN(ExtensionService); | 745 DISALLOW_COPY_AND_ASSIGN(ExtensionService); |
| 751 }; | 746 }; |
| 752 | 747 |
| 753 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ | 748 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ |
| OLD | NEW |