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