OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_REGISTRY_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Removes all extensions from all sets. | 135 // Removes all extensions from all sets. |
136 void ClearAll(); | 136 void ClearAll(); |
137 | 137 |
138 // Sets a callback to run when the disabled extension set is modified. | 138 // Sets a callback to run when the disabled extension set is modified. |
139 // TODO(jamescook): This is too specific for a generic registry; find some | 139 // TODO(jamescook): This is too specific for a generic registry; find some |
140 // other way to do this. | 140 // other way to do this. |
141 void SetDisabledModificationCallback( | 141 void SetDisabledModificationCallback( |
142 const ExtensionSet::ModificationCallback& callback); | 142 const ExtensionSet::ModificationCallback& callback); |
143 | 143 |
144 // KeyedService implementation: | 144 // KeyedService implementation: |
145 virtual void Shutdown() OVERRIDE; | 145 virtual void Shutdown() override; |
146 | 146 |
147 private: | 147 private: |
148 // Extensions that are installed, enabled and not terminated. | 148 // Extensions that are installed, enabled and not terminated. |
149 ExtensionSet enabled_extensions_; | 149 ExtensionSet enabled_extensions_; |
150 | 150 |
151 // Extensions that are installed and disabled. | 151 // Extensions that are installed and disabled. |
152 ExtensionSet disabled_extensions_; | 152 ExtensionSet disabled_extensions_; |
153 | 153 |
154 // Extensions that are installed and terminated. | 154 // Extensions that are installed and terminated. |
155 ExtensionSet terminated_extensions_; | 155 ExtensionSet terminated_extensions_; |
156 | 156 |
157 // Extensions that are installed and blacklisted. Generally these shouldn't be | 157 // Extensions that are installed and blacklisted. Generally these shouldn't be |
158 // considered as installed by the extension platform: we only keep them around | 158 // considered as installed by the extension platform: we only keep them around |
159 // so that if extensions are blacklisted by mistake they can easily be | 159 // so that if extensions are blacklisted by mistake they can easily be |
160 // un-blacklisted. | 160 // un-blacklisted. |
161 ExtensionSet blacklisted_extensions_; | 161 ExtensionSet blacklisted_extensions_; |
162 | 162 |
163 ObserverList<ExtensionRegistryObserver> observers_; | 163 ObserverList<ExtensionRegistryObserver> observers_; |
164 | 164 |
165 content::BrowserContext* const browser_context_; | 165 content::BrowserContext* const browser_context_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); | 167 DISALLOW_COPY_AND_ASSIGN(ExtensionRegistry); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace extensions | 170 } // namespace extensions |
171 | 171 |
172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ | 172 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_H_ |
OLD | NEW |