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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
12 // Observer for ExtensionRegistry. Exists in a separate header file to reduce
13 // the include file burden for typical clients of ExtensionRegistry.
14 class ExtensionRegistryObserver {
16 virtual ~ExtensionRegistryObserver() {}
18 // Called after an extension is loaded. The extension will exclusively exist
19 // in the enabled_extensions set of ExtensionRegistry.
20 virtual void OnExtensionLoaded(const Extension* extension) {}
22 // Called after an extension is unloaded. The extension no longer exists in
23 // any of the ExtensionRegistry sets (enabled, disabled, etc.).
24 virtual void OnExtensionUnloaded(const Extension* extension) {}
29 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_