| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "extensions/browser/extension_system.h" | 12 #include "extensions/browser/extension_system.h" |
| 13 #include "extensions/common/one_shot_event.h" | 13 #include "extensions/common/one_shot_event.h" |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 class DeviceLocalAccountManagementPolicyProvider; | 19 class DeviceLocalAccountManagementPolicyProvider; |
| 20 class SigninScreenPolicyProvider; | 20 class SigninScreenPolicyProvider; |
| 21 } | 21 } |
| 22 #endif // defined(OS_CHROMEOS) | 22 #endif // defined(OS_CHROMEOS) |
| 23 | 23 |
| 24 namespace extensions { | 24 namespace extensions { |
| 25 | 25 |
| 26 class ExtensionSystemSharedFactory; | 26 class ExtensionSystemSharedFactory; |
| 27 class NavigationObserver; | |
| 28 class StateStoreNotificationObserver; | 27 class StateStoreNotificationObserver; |
| 29 class UninstallPingSender; | 28 class UninstallPingSender; |
| 30 class InstallGate; | 29 class InstallGate; |
| 31 class ValueStoreFactory; | 30 class ValueStoreFactory; |
| 32 class ValueStoreFactoryImpl; | 31 class ValueStoreFactoryImpl; |
| 33 | 32 |
| 34 // The ExtensionSystem for ProfileImpl and OffTheRecordProfileImpl. | 33 // The ExtensionSystem for ProfileImpl and OffTheRecordProfileImpl. |
| 35 // Implementation details: non-shared services are owned by | 34 // Implementation details: non-shared services are owned by |
| 36 // ExtensionSystemImpl, a KeyedService with separate incognito | 35 // ExtensionSystemImpl, a KeyedService with separate incognito |
| 37 // instances. A private Shared class (also a KeyedService, | 36 // instances. A private Shared class (also a KeyedService, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 private: | 109 private: |
| 111 Profile* profile_; | 110 Profile* profile_; |
| 112 | 111 |
| 113 // The services that are shared between normal and incognito profiles. | 112 // The services that are shared between normal and incognito profiles. |
| 114 | 113 |
| 115 std::unique_ptr<StateStore> state_store_; | 114 std::unique_ptr<StateStore> state_store_; |
| 116 std::unique_ptr<StateStoreNotificationObserver> | 115 std::unique_ptr<StateStoreNotificationObserver> |
| 117 state_store_notification_observer_; | 116 state_store_notification_observer_; |
| 118 std::unique_ptr<StateStore> rules_store_; | 117 std::unique_ptr<StateStore> rules_store_; |
| 119 scoped_refptr<ValueStoreFactoryImpl> store_factory_; | 118 scoped_refptr<ValueStoreFactoryImpl> store_factory_; |
| 120 std::unique_ptr<NavigationObserver> navigation_observer_; | |
| 121 std::unique_ptr<ServiceWorkerManager> service_worker_manager_; | 119 std::unique_ptr<ServiceWorkerManager> service_worker_manager_; |
| 122 // Shared memory region manager for scripts statically declared in extension | 120 // Shared memory region manager for scripts statically declared in extension |
| 123 // manifests. This region is shared between all extensions. | 121 // manifests. This region is shared between all extensions. |
| 124 std::unique_ptr<SharedUserScriptMaster> shared_user_script_master_; | 122 std::unique_ptr<SharedUserScriptMaster> shared_user_script_master_; |
| 125 std::unique_ptr<RuntimeData> runtime_data_; | 123 std::unique_ptr<RuntimeData> runtime_data_; |
| 126 // ExtensionService depends on StateStore, Blacklist and RuntimeData. | 124 // ExtensionService depends on StateStore, Blacklist and RuntimeData. |
| 127 std::unique_ptr<ExtensionService> extension_service_; | 125 std::unique_ptr<ExtensionService> extension_service_; |
| 128 std::unique_ptr<ManagementPolicy> management_policy_; | 126 std::unique_ptr<ManagementPolicy> management_policy_; |
| 129 // extension_info_map_ needs to outlive process_manager_. | 127 // extension_info_map_ needs to outlive process_manager_. |
| 130 scoped_refptr<InfoMap> extension_info_map_; | 128 scoped_refptr<InfoMap> extension_info_map_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 151 Profile* profile_; | 149 Profile* profile_; |
| 152 | 150 |
| 153 Shared* shared_; | 151 Shared* shared_; |
| 154 | 152 |
| 155 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); | 153 DISALLOW_COPY_AND_ASSIGN(ExtensionSystemImpl); |
| 156 }; | 154 }; |
| 157 | 155 |
| 158 } // namespace extensions | 156 } // namespace extensions |
| 159 | 157 |
| 160 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ | 158 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_IMPL_H_ |
| OLD | NEW |