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

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

Issue 2893693002: Remove NOTIFICATION_EXTENSION_ENABLED. (Closed)
Patch Set: Created 3 years, 7 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
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 #include "extensions/browser/uninstall_reason.h" 8 #include "extensions/browser/uninstall_reason.h"
9 #include "extensions/common/extension.h" 9 #include "extensions/common/extension.h"
10 10
(...skipping 11 matching lines...) Expand all
22 class ExtensionRegistryObserver { 22 class ExtensionRegistryObserver {
23 public: 23 public:
24 virtual ~ExtensionRegistryObserver() {} 24 virtual ~ExtensionRegistryObserver() {}
25 25
26 // Called after an extension is loaded. The extension will exclusively exist 26 // Called after an extension is loaded. The extension will exclusively exist
27 // in the enabled_extensions set of ExtensionRegistry. 27 // in the enabled_extensions set of ExtensionRegistry.
28 virtual void OnExtensionLoaded( 28 virtual void OnExtensionLoaded(
29 content::BrowserContext* browser_context, 29 content::BrowserContext* browser_context,
30 const Extension* extension) {} 30 const Extension* extension) {}
31 31
32 // Called when an extension is enabled. Under most circumstances, listeners
33 // will want to use OnExtensionLoaded(). This is only called when the "Enable"
34 // button is hit in the extensions tab.
35 virtual void OnExtensionEnabled(content::BrowserContext* browser_context,
36 const Extension* extension) {}
37
32 // Called after an extension is loaded and all necessary browser state is 38 // Called after an extension is loaded and all necessary browser state is
33 // initialized to support the start of the extension's child process. 39 // initialized to support the start of the extension's child process.
34 virtual void OnExtensionReady(content::BrowserContext* browser_context, 40 virtual void OnExtensionReady(content::BrowserContext* browser_context,
35 const Extension* extension) {} 41 const Extension* extension) {}
36 42
37 // Called after an extension is unloaded. The extension no longer exists in 43 // Called after an extension is unloaded. The extension no longer exists in
38 // the set |ExtensionRegistry::enabled_extensions()|, but it can still be a 44 // the set |ExtensionRegistry::enabled_extensions()|, but it can still be a
39 // member of one of the other sets, like disabled, blacklisted or terminated. 45 // member of one of the other sets, like disabled, blacklisted or terminated.
40 virtual void OnExtensionUnloaded(content::BrowserContext* browser_context, 46 virtual void OnExtensionUnloaded(content::BrowserContext* browser_context,
41 const Extension* extension, 47 const Extension* extension,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const Extension* extension, 79 const Extension* extension,
74 UninstallReason reason) {} 80 UninstallReason reason) {}
75 81
76 // Notifies observers that the observed object is going away. 82 // Notifies observers that the observed object is going away.
77 virtual void OnShutdown(ExtensionRegistry* registry) {} 83 virtual void OnShutdown(ExtensionRegistry* registry) {}
78 }; 84 };
79 85
80 } // namespace extensions 86 } // namespace extensions
81 87
82 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ 88 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698