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

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

Issue 207613002: Cleanup: Remove NOTIFICATION_EXTENSION_UNLOADED usage in MediaScanManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, add error console Created 6 years, 8 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
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_REGISTRY_OBSERVER_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
7 7
8 namespace content {
9 class BrowserContext;
10 }
11
8 namespace extensions { 12 namespace extensions {
9 13
10 class Extension; 14 class Extension;
11 15
12 // Observer for ExtensionRegistry. Exists in a separate header file to reduce 16 // Observer for ExtensionRegistry. Exists in a separate header file to reduce
13 // the include file burden for typical clients of ExtensionRegistry. 17 // the include file burden for typical clients of ExtensionRegistry.
14 class ExtensionRegistryObserver { 18 class ExtensionRegistryObserver {
15 public: 19 public:
16 virtual ~ExtensionRegistryObserver() {} 20 virtual ~ExtensionRegistryObserver() {}
17 21
18 // Called after an extension is loaded. The extension will exclusively exist 22 // Called after an extension is loaded. The extension will exclusively exist
19 // in the enabled_extensions set of ExtensionRegistry. 23 // in the enabled_extensions set of ExtensionRegistry.
20 virtual void OnExtensionLoaded(const Extension* extension) {} 24 virtual void OnExtensionLoaded(
25 content::BrowserContext* browser_context,
26 const Extension* extension) {}
21 27
22 // Called after an extension is unloaded. The extension no longer exists in 28 // Called after an extension is unloaded. The extension no longer exists in
23 // any of the ExtensionRegistry sets (enabled, disabled, etc.). 29 // any of the ExtensionRegistry sets (enabled, disabled, etc.).
24 virtual void OnExtensionUnloaded(const Extension* extension) {} 30 virtual void OnExtensionUnloaded(
31 content::BrowserContext* browser_context,
32 const Extension* extension) {}
25 }; 33 };
26 34
27 } 35 } // namespace extensions
28 36
29 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 37 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_registry_factory.cc ('k') | extensions/browser/extension_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698