Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 2211213002: Revert of [Extensions] Ensure ordering of extension [un]loaded, activated messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698