| 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 EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // ExtensionSystem implementation: | 52 // ExtensionSystem implementation: |
| 53 void InitForRegularProfile(bool extensions_enabled) override; | 53 void InitForRegularProfile(bool extensions_enabled) override; |
| 54 ExtensionService* extension_service() override; | 54 ExtensionService* extension_service() override; |
| 55 RuntimeData* runtime_data() override; | 55 RuntimeData* runtime_data() override; |
| 56 ManagementPolicy* management_policy() override; | 56 ManagementPolicy* management_policy() override; |
| 57 SharedUserScriptMaster* shared_user_script_master() override; | 57 SharedUserScriptMaster* shared_user_script_master() override; |
| 58 StateStore* state_store() override; | 58 StateStore* state_store() override; |
| 59 StateStore* rules_store() override; | 59 StateStore* rules_store() override; |
| 60 InfoMap* info_map() override; | 60 InfoMap* info_map() override; |
| 61 QuotaService* quota_service() override; | 61 QuotaService* quota_service() override; |
| 62 AppSorting* app_sorting() override; |
| 62 void RegisterExtensionWithRequestContexts( | 63 void RegisterExtensionWithRequestContexts( |
| 63 const Extension* extension, | 64 const Extension* extension, |
| 64 const base::Closure& callback) override; | 65 const base::Closure& callback) override; |
| 65 void UnregisterExtensionWithRequestContexts( | 66 void UnregisterExtensionWithRequestContexts( |
| 66 const std::string& extension_id, | 67 const std::string& extension_id, |
| 67 const UnloadedExtensionInfo::Reason reason) override; | 68 const UnloadedExtensionInfo::Reason reason) override; |
| 68 const OneShotEvent& ready() const override; | 69 const OneShotEvent& ready() const override; |
| 69 ContentVerifier* content_verifier() override; | 70 ContentVerifier* content_verifier() override; |
| 70 scoped_ptr<ExtensionSet> GetDependentExtensions( | 71 scoped_ptr<ExtensionSet> GetDependentExtensions( |
| 71 const Extension* extension) override; | 72 const Extension* extension) override; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 void OnExtensionRegisteredWithRequestContexts( | 75 void OnExtensionRegisteredWithRequestContexts( |
| 75 scoped_refptr<Extension> extension); | 76 scoped_refptr<Extension> extension); |
| 76 content::BrowserContext* browser_context_; // Not owned. | 77 content::BrowserContext* browser_context_; // Not owned. |
| 77 | 78 |
| 78 // Data to be accessed on the IO thread. Must outlive process_manager_. | 79 // Data to be accessed on the IO thread. Must outlive process_manager_. |
| 79 scoped_refptr<InfoMap> info_map_; | 80 scoped_refptr<InfoMap> info_map_; |
| 80 | 81 |
| 81 scoped_ptr<RuntimeData> runtime_data_; | 82 scoped_ptr<RuntimeData> runtime_data_; |
| 82 scoped_ptr<QuotaService> quota_service_; | 83 scoped_ptr<QuotaService> quota_service_; |
| 84 scoped_ptr<AppSorting> app_sorting_; |
| 83 | 85 |
| 84 // Signaled when the extension system has completed its startup tasks. | 86 // Signaled when the extension system has completed its startup tasks. |
| 85 OneShotEvent ready_; | 87 OneShotEvent ready_; |
| 86 | 88 |
| 87 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; | 89 base::WeakPtrFactory<ShellExtensionSystem> weak_factory_; |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); | 91 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace extensions | 94 } // namespace extensions |
| 93 | 95 |
| 94 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ | 96 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSION_SYSTEM_H_ |
| OLD | NEW |