Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: extensions/browser/extension_registry_observer.h

Issue 131743021: app_shell: Extract extension runtime data from ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add ExtensionRegistry observer (runtime_data) Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
7
8 namespace extensions {
9
10 class Extension;
11
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 {
15 public:
16 virtual ~ExtensionRegistryObserver() {}
17
18 // Called after an extension is unloaded. The extension no longer exists in
19 // any of the ExtensionRegistry sets (enabled, disabled, etc.).
20 virtual void OnExtensionUnloaded(const Extension* extension) = 0;
21
22 // Called after an extension is disabled. The extension exists in the
23 // ExtensionRegistry disabled set when this function is called.
24 virtual void OnExtensionDisabled(const Extension* extension) = 0;
25 };
26
27 }
28
29 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698