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 DeclarativeUserScriptMaster; | 33 class DeclarativeUserScriptManager; |
34 class ErrorConsole; | 34 class ErrorConsole; |
35 class EventRouter; | 35 class EventRouter; |
36 class Extension; | 36 class Extension; |
37 class ExtensionSet; | 37 class ExtensionSet; |
38 class InfoMap; | 38 class InfoMap; |
39 class InstallVerifier; | 39 class InstallVerifier; |
40 class LazyBackgroundTaskQueue; | 40 class LazyBackgroundTaskQueue; |
41 class ManagementPolicy; | 41 class ManagementPolicy; |
42 class OneShotEvent; | 42 class OneShotEvent; |
43 class QuotaService; | 43 class QuotaService; |
(...skipping 26 matching lines...) Expand all Loading... | |
70 virtual RuntimeData* runtime_data() = 0; | 70 virtual RuntimeData* runtime_data() = 0; |
71 | 71 |
72 // The class controlling whether users are permitted to perform certain | 72 // The class controlling whether users are permitted to perform certain |
73 // actions on extensions (install, uninstall, disable, etc.). | 73 // actions on extensions (install, uninstall, disable, etc.). |
74 // The ManagementPolicy is created at startup. | 74 // The ManagementPolicy is created at startup. |
75 virtual ManagementPolicy* management_policy() = 0; | 75 virtual ManagementPolicy* management_policy() = 0; |
76 | 76 |
77 // The SharedUserScriptMaster is created at startup. | 77 // The SharedUserScriptMaster is created at startup. |
78 virtual SharedUserScriptMaster* shared_user_script_master() = 0; | 78 virtual SharedUserScriptMaster* shared_user_script_master() = 0; |
79 | 79 |
80 // The DeclarativeUserScriptManager is created at startup. | |
81 virtual DeclarativeUserScriptManager* declarative_user_script_manager() = 0; | |
Fady Samuel
2014/12/12 15:44:31
This is not a trivial accessor: please call this G
Fady Samuel
2014/12/12 16:17:52
OK, it seems like the naming in this entire file i
| |
82 | |
80 // The StateStore is created at startup. | 83 // The StateStore is created at startup. |
81 virtual StateStore* state_store() = 0; | 84 virtual StateStore* state_store() = 0; |
82 | 85 |
83 // The rules store is created at startup. | 86 // The rules store is created at startup. |
84 virtual StateStore* rules_store() = 0; | 87 virtual StateStore* rules_store() = 0; |
85 | 88 |
86 // Returns the IO-thread-accessible extension data. | 89 // Returns the IO-thread-accessible extension data. |
87 virtual InfoMap* info_map() = 0; | 90 virtual InfoMap* info_map() = 0; |
88 | 91 |
89 // The LazyBackgroundTaskQueue is created at startup. | 92 // The LazyBackgroundTaskQueue is created at startup. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 virtual const OneShotEvent& ready() const = 0; | 124 virtual const OneShotEvent& ready() const = 0; |
122 | 125 |
123 // Returns the content verifier, if any. | 126 // Returns the content verifier, if any. |
124 virtual ContentVerifier* content_verifier() = 0; | 127 virtual ContentVerifier* content_verifier() = 0; |
125 | 128 |
126 // Get a set of extensions that depend on the given extension. | 129 // Get a set of extensions that depend on the given extension. |
127 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser | 130 // TODO(elijahtaylor): Move SharedModuleService out of chrome/browser |
128 // so it can be retrieved from ExtensionSystem directly. | 131 // so it can be retrieved from ExtensionSystem directly. |
129 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( | 132 virtual scoped_ptr<ExtensionSet> GetDependentExtensions( |
130 const Extension* extension) = 0; | 133 const Extension* extension) = 0; |
131 | |
132 // Get the user script master for declarative scripts, if any. | |
133 virtual DeclarativeUserScriptMaster* | |
134 GetDeclarativeUserScriptMasterByExtension( | |
135 const ExtensionId& extension_id) = 0; | |
136 }; | 134 }; |
137 | 135 |
138 } // namespace extensions | 136 } // namespace extensions |
139 | 137 |
140 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ | 138 #endif // EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ |
OLD | NEW |