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

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

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