Revert 264226 "Reduce dependency of TiclInvalidationService on P..."
[chromium-blink-merge.git] / extensions / browser / extension_registry_observer.h
blob3b7114b7d03a866a360a898973af40787e042f24
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_
8 namespace content {
9 class BrowserContext;
12 namespace extensions {
14 class Extension;
16 // Observer for ExtensionRegistry. Exists in a separate header file to reduce
17 // the include file burden for typical clients of ExtensionRegistry.
18 class ExtensionRegistryObserver {
19 public:
20 virtual ~ExtensionRegistryObserver() {}
22 // Called after an extension is loaded. The extension will exclusively exist
23 // in the enabled_extensions set of ExtensionRegistry.
24 virtual void OnExtensionLoaded(
25 content::BrowserContext* browser_context,
26 const Extension* extension) {}
28 // Called after an extension is unloaded. The extension no longer exists in
29 // any of the ExtensionRegistry sets (enabled, disabled, etc.).
30 virtual void OnExtensionUnloaded(
31 content::BrowserContext* browser_context,
32 const Extension* extension) {}
35 } // namespace extensions
37 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_