| 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_SYSTEM_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/profiles/profile_keyed_service.h" | 12 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 13 #include "chrome/common/extensions/extension_constants.h" | 13 #include "chrome/common/extensions/extension_constants.h" |
| 14 | 14 |
| 15 class ExtensionDevToolsManager; | 15 class ExtensionDevToolsManager; |
| 16 class ExtensionEventRouter; | 16 class ExtensionEventRouter; |
| 17 class ExtensionInfoMap; | 17 class ExtensionInfoMap; |
| 18 class ExtensionMessageService; | 18 class ExtensionMessageService; |
| 19 class ExtensionNavigationObserver; | 19 class ExtensionNavigationObserver; |
| 20 class ExtensionProcessManager; | 20 class ExtensionProcessManager; |
| 21 class ExtensionService; | 21 class ExtensionService; |
| 22 class Profile; | 22 class Profile; |
| 23 class UserScriptMaster; | |
| 24 | 23 |
| 25 namespace extensions { | 24 namespace extensions { |
| 26 class AlarmManager; | 25 class AlarmManager; |
| 27 class Extension; | 26 class Extension; |
| 28 class ExtensionPrefs; | 27 class ExtensionPrefs; |
| 29 class ExtensionSystemSharedFactory; | 28 class ExtensionSystemSharedFactory; |
| 30 class LazyBackgroundTaskQueue; | 29 class LazyBackgroundTaskQueue; |
| 31 class ManagementPolicy; | 30 class ManagementPolicy; |
| 32 class RulesRegistryService; | 31 class RulesRegistryService; |
| 33 class StateStore; | 32 class StateStore; |
| 33 class UserScriptMaster; |
| 34 | 34 |
| 35 // The ExtensionSystem manages the creation and destruction of services | 35 // The ExtensionSystem manages the creation and destruction of services |
| 36 // related to extensions. Most objects are shared between normal | 36 // related to extensions. Most objects are shared between normal |
| 37 // and incognito Profiles, except as called out in comments. | 37 // and incognito Profiles, except as called out in comments. |
| 38 // This interface supports using TestExtensionSystem for TestingProfiles | 38 // This interface supports using TestExtensionSystem for TestingProfiles |
| 39 // that don't want all of the extensions baggage in their tests. | 39 // that don't want all of the extensions baggage in their tests. |
| 40 class ExtensionSystem : public ProfileKeyedService { | 40 class ExtensionSystem : public ProfileKeyedService { |
| 41 public: | 41 public: |
| 42 ExtensionSystem(); | 42 ExtensionSystem(); |
| 43 virtual ~ExtensionSystem(); | 43 virtual ~ExtensionSystem(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 59 | 59 |
| 60 // The class controlling whether users are permitted to perform certain | 60 // The class controlling whether users are permitted to perform certain |
| 61 // actions on extensions (install, uninstall, disable, etc.). | 61 // actions on extensions (install, uninstall, disable, etc.). |
| 62 // The ManagementPolicy is created at startup. | 62 // The ManagementPolicy is created at startup. |
| 63 virtual ManagementPolicy* management_policy() = 0; | 63 virtual ManagementPolicy* management_policy() = 0; |
| 64 | 64 |
| 65 // The ExtensionDevToolsManager is created at startup. | 65 // The ExtensionDevToolsManager is created at startup. |
| 66 virtual ExtensionDevToolsManager* devtools_manager() = 0; | 66 virtual ExtensionDevToolsManager* devtools_manager() = 0; |
| 67 | 67 |
| 68 // The UserScriptMaster is created at startup. | 68 // The UserScriptMaster is created at startup. |
| 69 virtual UserScriptMaster* user_script_master() = 0; | 69 virtual extensions::UserScriptMaster* user_script_master() = 0; |
| 70 | 70 |
| 71 // The ExtensionProcessManager is created at startup. | 71 // The ExtensionProcessManager is created at startup. |
| 72 virtual ExtensionProcessManager* process_manager() = 0; | 72 virtual ExtensionProcessManager* process_manager() = 0; |
| 73 | 73 |
| 74 // The AlarmManager is created at startup. | 74 // The AlarmManager is created at startup. |
| 75 virtual AlarmManager* alarm_manager() = 0; | 75 virtual AlarmManager* alarm_manager() = 0; |
| 76 | 76 |
| 77 // The StateStore is created at startup. | 77 // The StateStore is created at startup. |
| 78 virtual StateStore* state_store() = 0; | 78 virtual StateStore* state_store() = 0; |
| 79 | 79 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // access to the ResourceContext owned by |io_data_|. | 206 // access to the ResourceContext owned by |io_data_|. |
| 207 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 207 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
| 208 scoped_ptr<AlarmManager> alarm_manager_; | 208 scoped_ptr<AlarmManager> alarm_manager_; |
| 209 | 209 |
| 210 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); | 210 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace extensions | 213 } // namespace extensions |
| 214 | 214 |
| 215 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ | 215 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_H_ |
| OLD | NEW |