OLD | NEW |
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/common/extension.h" | 8 #include "extensions/common/extension.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 30 matching lines...) Expand all Loading... |
41 // event is fired, but will be immediately afterwards (note: not necessarily | 41 // event is fired, but will be immediately afterwards (note: not necessarily |
42 // enabled; it might be installed in the disabled or even blacklisted sets, | 42 // enabled; it might be installed in the disabled or even blacklisted sets, |
43 // for example). | 43 // for example). |
44 // Note that it's much more common to care about extensions being loaded | 44 // Note that it's much more common to care about extensions being loaded |
45 // (OnExtensionLoaded). | 45 // (OnExtensionLoaded). |
46 virtual void OnExtensionWillBeInstalled( | 46 virtual void OnExtensionWillBeInstalled( |
47 content::BrowserContext* browser_context, | 47 content::BrowserContext* browser_context, |
48 const Extension* extension, | 48 const Extension* extension, |
49 bool is_update, | 49 bool is_update, |
50 const std::string& old_name) {} | 50 const std::string& old_name) {} |
| 51 |
| 52 // Called after an extension is uninstalled. The extension no longer exsit in |
| 53 // any of the ExtensionRegistry sets (enabled, disabled, etc.). |
| 54 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 55 const Extension* extension) {} |
51 }; | 56 }; |
52 | 57 |
53 } // namespace extensions | 58 } // namespace extensions |
54 | 59 |
55 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ | 60 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ |
OLD | NEW |