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 23 matching lines...) Expand all Loading... |
34 class DeclarativeUserScriptMaster; | 34 class DeclarativeUserScriptMaster; |
35 class ErrorConsole; | 35 class ErrorConsole; |
36 class EventRouter; | 36 class EventRouter; |
37 class Extension; | 37 class Extension; |
38 class ExtensionSet; | 38 class ExtensionSet; |
39 class InfoMap; | 39 class InfoMap; |
40 class InstallVerifier; | 40 class InstallVerifier; |
41 class LazyBackgroundTaskQueue; | 41 class LazyBackgroundTaskQueue; |
42 class ManagementPolicy; | 42 class ManagementPolicy; |
43 class OneShotEvent; | 43 class OneShotEvent; |
44 class ProcessManager; | |
45 class QuotaService; | 44 class QuotaService; |
46 class RuntimeData; | 45 class RuntimeData; |
47 class SharedUserScriptMaster; | 46 class SharedUserScriptMaster; |
48 class StateStore; | 47 class StateStore; |
49 class WarningService; | |
50 | 48 |
51 // ExtensionSystem manages the lifetime of many of the services used by the | 49 // ExtensionSystem manages the lifetime of many of the services used by the |
52 // extensions and apps system, and it handles startup and shutdown as needed. | 50 // extensions and apps system, and it handles startup and shutdown as needed. |
53 // Eventually, we'd like to make more of these services into KeyedServices in | 51 // Eventually, we'd like to make more of these services into KeyedServices in |
54 // their own right. | 52 // their own right. |
55 class ExtensionSystem : public KeyedService { | 53 class ExtensionSystem : public KeyedService { |
56 public: | 54 public: |
57 ExtensionSystem(); | 55 ExtensionSystem(); |
58 ~ExtensionSystem() override; | 56 ~ExtensionSystem() override; |
59 | 57 |
(...skipping 28 matching lines...) Expand all Loading... |
88 | 86 |
89 // Returns the IO-thread-accessible extension data. | 87 // Returns the IO-thread-accessible extension data. |
90 virtual InfoMap* info_map() = 0; | 88 virtual InfoMap* info_map() = 0; |
91 | 89 |
92 // The LazyBackgroundTaskQueue is created at startup. | 90 // The LazyBackgroundTaskQueue is created at startup. |
93 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; | 91 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; |
94 | 92 |
95 // The EventRouter is created at startup. | 93 // The EventRouter is created at startup. |
96 virtual EventRouter* event_router() = 0; | 94 virtual EventRouter* event_router() = 0; |
97 | 95 |
98 // The WarningService is created at startup. | |
99 virtual WarningService* warning_service() = 0; | |
100 | |
101 // The blacklist is created at startup. | 96 // The blacklist is created at startup. |
102 virtual Blacklist* blacklist() = 0; | 97 virtual Blacklist* blacklist() = 0; |
103 | 98 |
104 // The ErrorConsole is created at startup. | 99 // The ErrorConsole is created at startup. |
105 virtual ErrorConsole* error_console() = 0; | 100 virtual ErrorConsole* error_console() = 0; |
106 | 101 |
107 // The InstallVerifier is created at startup. | 102 // The InstallVerifier is created at startup. |
108 virtual InstallVerifier* install_verifier() = 0; | 103 virtual InstallVerifier* install_verifier() = 0; |
109 | 104 |
110 // Returns the QuotaService that limits calls to certain extension functions. | 105 // Returns the QuotaService that limits calls to certain extension functions. |
(...skipping 29 matching lines...) Expand all Loading... |
140 | 135 |
141 // Get the user script master for declarative scripts, if any. | 136 // Get the user script master for declarative scripts, if any. |
142 virtual DeclarativeUserScriptMaster* | 137 virtual DeclarativeUserScriptMaster* |
143 GetDeclarativeUserScriptMasterByExtension( | 138 GetDeclarativeUserScriptMasterByExtension( |
144 const ExtensionId& extension_id) = 0; | 139 const ExtensionId& extension_id) = 0; |
145 }; | 140 }; |
146 | 141 |
147 } // namespace extensions | 142 } // namespace extensions |
148 | 143 |
149 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 144 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |