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 12 matching lines...) Expand all Loading... |
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 ContentVerifier; | 32 class ContentVerifier; |
33 class DeclarativeUserScriptManager; | |
34 class EventRouter; | 33 class EventRouter; |
35 class Extension; | 34 class Extension; |
36 class ExtensionSet; | 35 class ExtensionSet; |
37 class InfoMap; | 36 class InfoMap; |
38 class InstallVerifier; | 37 class InstallVerifier; |
39 class LazyBackgroundTaskQueue; | 38 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; |
(...skipping 25 matching lines...) Expand all Loading... |
69 virtual RuntimeData* runtime_data() = 0; | 68 virtual RuntimeData* runtime_data() = 0; |
70 | 69 |
71 // The class controlling whether users are permitted to perform certain | 70 // The class controlling whether users are permitted to perform certain |
72 // actions on extensions (install, uninstall, disable, etc.). | 71 // actions on extensions (install, uninstall, disable, etc.). |
73 // The ManagementPolicy is created at startup. | 72 // The ManagementPolicy is created at startup. |
74 virtual ManagementPolicy* management_policy() = 0; | 73 virtual ManagementPolicy* management_policy() = 0; |
75 | 74 |
76 // The SharedUserScriptMaster is created at startup. | 75 // The SharedUserScriptMaster is created at startup. |
77 virtual SharedUserScriptMaster* shared_user_script_master() = 0; | 76 virtual SharedUserScriptMaster* shared_user_script_master() = 0; |
78 | 77 |
79 // The DeclarativeUserScriptManager is created at startup. | |
80 virtual DeclarativeUserScriptManager* declarative_user_script_manager() = 0; | |
81 | |
82 // The StateStore is created at startup. | 78 // The StateStore is created at startup. |
83 virtual StateStore* state_store() = 0; | 79 virtual StateStore* state_store() = 0; |
84 | 80 |
85 // The rules store is created at startup. | 81 // The rules store is created at startup. |
86 virtual StateStore* rules_store() = 0; | 82 virtual StateStore* rules_store() = 0; |
87 | 83 |
88 // Returns the IO-thread-accessible extension data. | 84 // Returns the IO-thread-accessible extension data. |
89 virtual InfoMap* info_map() = 0; | 85 virtual InfoMap* info_map() = 0; |
90 | 86 |
91 // The LazyBackgroundTaskQueue is created at startup. | 87 // The LazyBackgroundTaskQueue is created at startup. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |