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_BROWSER_EXTENSION_SYSTEM_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 6 #define EXTENSIONS_BROWSER_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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class DeviceLocalAccountManagementPolicyProvider; | 22 class DeviceLocalAccountManagementPolicyProvider; |
23 } | 23 } |
24 #endif // defined(OS_CHROMEOS) | 24 #endif // defined(OS_CHROMEOS) |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 class BrowserContext; | 27 class BrowserContext; |
28 } | 28 } |
29 | 29 |
30 namespace extensions { | 30 namespace extensions { |
31 | 31 |
| 32 class AppSorting; |
32 class ContentVerifier; | 33 class ContentVerifier; |
33 class Extension; | 34 class Extension; |
34 class ExtensionSet; | 35 class ExtensionSet; |
35 class InfoMap; | 36 class InfoMap; |
36 class ManagementPolicy; | 37 class ManagementPolicy; |
37 class OneShotEvent; | 38 class OneShotEvent; |
38 class QuotaService; | 39 class QuotaService; |
39 class RuntimeData; | 40 class RuntimeData; |
40 class SharedUserScriptMaster; | 41 class SharedUserScriptMaster; |
41 class StateStore; | 42 class StateStore; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // The rules store is created at startup. | 79 // The rules store is created at startup. |
79 virtual StateStore* rules_store() = 0; | 80 virtual StateStore* rules_store() = 0; |
80 | 81 |
81 // Returns the IO-thread-accessible extension data. | 82 // Returns the IO-thread-accessible extension data. |
82 virtual InfoMap* info_map() = 0; | 83 virtual InfoMap* info_map() = 0; |
83 | 84 |
84 // Returns the QuotaService that limits calls to certain extension functions. | 85 // Returns the QuotaService that limits calls to certain extension functions. |
85 // Lives on the UI thread. Created at startup. | 86 // Lives on the UI thread. Created at startup. |
86 virtual QuotaService* quota_service() = 0; | 87 virtual QuotaService* quota_service() = 0; |
87 | 88 |
| 89 // Returns the AppSorting which provides an ordering for all installed apps. |
| 90 virtual AppSorting* app_sorting() = 0; |
| 91 |
88 // Called by the ExtensionService that lives in this system. Gives the | 92 // Called by the ExtensionService that lives in this system. Gives the |
89 // info map a chance to react to the load event before the EXTENSION_LOADED | 93 // info map a chance to react to the load event before the EXTENSION_LOADED |
90 // notification has fired. The purpose for handling this event first is to | 94 // notification has fired. The purpose for handling this event first is to |
91 // avoid race conditions by making sure URLRequestContexts learn about new | 95 // avoid race conditions by making sure URLRequestContexts learn about new |
92 // extensions before anything else needs them to know. | 96 // extensions before anything else needs them to know. |
93 virtual void RegisterExtensionWithRequestContexts( | 97 virtual void RegisterExtensionWithRequestContexts( |
94 const Extension* extension) {} | 98 const Extension* extension) {} |
95 | 99 |
96 // Called by the ExtensionService that lives in this system. Lets the | 100 // Called by the ExtensionService that lives in this system. Lets the |
97 // info map clean up its RequestContexts once all the listeners to the | 101 // info map clean up its RequestContexts once all the listeners to the |
(...skipping 11 matching lines...) Expand all Loading... |
109 // Get a set of extensions that depend on the given extension. | 113 // Get a set of extensions that depend on the given extension. |
110 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser | 114 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser |
111 // so it can be retrieved from ExtensionSystem directly. | 115 // so it can be retrieved from ExtensionSystem directly. |
112 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( | 116 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( |
113 const Extension* extension) = 0; | 117 const Extension* extension) = 0; |
114 }; | 118 }; |
115 | 119 |
116 } // namespace extensions | 120 } // namespace extensions |
117 | 121 |
118 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 122 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |