| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace extensions { | 30 namespace extensions { |
| 31 | 31 |
| 32 class ContentVerifier; | 32 class ContentVerifier; |
| 33 class DeclarativeUserScriptManager; | 33 class DeclarativeUserScriptManager; |
| 34 class EventRouter; | 34 class EventRouter; |
| 35 class Extension; | 35 class Extension; |
| 36 class ExtensionSet; | 36 class ExtensionSet; |
| 37 class InfoMap; | 37 class InfoMap; |
| 38 class InstallVerifier; | 38 class InstallVerifier; |
| 39 class LazyBackgroundTaskQueue; | |
| 40 class ManagementPolicy; | 39 class ManagementPolicy; |
| 41 class OneShotEvent; | 40 class OneShotEvent; |
| 42 class QuotaService; | 41 class QuotaService; |
| 43 class RuntimeData; | 42 class RuntimeData; |
| 44 class SharedUserScriptMaster; | 43 class SharedUserScriptMaster; |
| 45 class StateStore; | 44 class StateStore; |
| 46 | 45 |
| 47 // ExtensionSystem manages the lifetime of many of the services used by the | 46 // ExtensionSystem manages the lifetime of many of the services used by the |
| 48 // extensions and apps system, and it handles startup and shutdown as needed. | 47 // extensions and apps system, and it handles startup and shutdown as needed. |
| 49 // Eventually, we'd like to make more of these services into KeyedServices in | 48 // Eventually, we'd like to make more of these services into KeyedServices in |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 80 |
| 82 // The StateStore is created at startup. | 81 // The StateStore is created at startup. |
| 83 virtual StateStore* state_store() = 0; | 82 virtual StateStore* state_store() = 0; |
| 84 | 83 |
| 85 // The rules store is created at startup. | 84 // The rules store is created at startup. |
| 86 virtual StateStore* rules_store() = 0; | 85 virtual StateStore* rules_store() = 0; |
| 87 | 86 |
| 88 // Returns the IO-thread-accessible extension data. | 87 // Returns the IO-thread-accessible extension data. |
| 89 virtual InfoMap* info_map() = 0; | 88 virtual InfoMap* info_map() = 0; |
| 90 | 89 |
| 91 // The LazyBackgroundTaskQueue is created at startup. | |
| 92 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() = 0; | |
| 93 | |
| 94 // The EventRouter is created at startup. | 90 // The EventRouter is created at startup. |
| 95 virtual EventRouter* event_router() = 0; | 91 virtual EventRouter* event_router() = 0; |
| 96 | 92 |
| 97 // The InstallVerifier is created at startup. | 93 // The InstallVerifier is created at startup. |
| 98 virtual InstallVerifier* install_verifier() = 0; | 94 virtual InstallVerifier* install_verifier() = 0; |
| 99 | 95 |
| 100 // Returns the QuotaService that limits calls to certain extension functions. | 96 // Returns the QuotaService that limits calls to certain extension functions. |
| 101 // Lives on the UI thread. Created at startup. | 97 // Lives on the UI thread. Created at startup. |
| 102 virtual QuotaService* quota_service() = 0; | 98 virtual QuotaService* quota_service() = 0; |
| 103 | 99 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 125 // Get a set of extensions that depend on the given extension. | 121 // Get a set of extensions that depend on the given extension. |
| 126 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser | 122 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser |
| 127 // so it can be retrieved from ExtensionSystem directly. | 123 // so it can be retrieved from ExtensionSystem directly. |
| 128 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( | 124 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( |
| 129 const Extension* extension) = 0; | 125 const Extension* extension) = 0; |
| 130 }; | 126 }; |
| 131 | 127 |
| 132 } // namespace extensions | 128 } // namespace extensions |
| 133 | 129 |
| 134 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 130 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
| OLD | NEW |