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/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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool is_update) {} | 69 bool is_update) {} |
70 | 70 |
71 // Called after an extension is uninstalled. The extension no longer exists in | 71 // Called after an extension is uninstalled. The extension no longer exists in |
72 // any of the ExtensionRegistry sets (enabled, disabled, etc.). | 72 // any of the ExtensionRegistry sets (enabled, disabled, etc.). |
73 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 73 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, |
74 const Extension* extension, | 74 const Extension* extension, |
75 UninstallReason reason) {} | 75 UninstallReason reason) {} |
76 | 76 |
77 // Notifies observers that the observed object is going away. | 77 // Notifies observers that the observed object is going away. |
78 virtual void OnShutdown(ExtensionRegistry* registry) {} | 78 virtual void OnShutdown(ExtensionRegistry* registry) {} |
| 79 |
| 80 protected: |
| 81 ExtensionRegistryObserver() = default; |
79 }; | 82 }; |
80 | 83 |
81 } // namespace extensions | 84 } // namespace extensions |
82 | 85 |
83 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ | 86 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ |
OLD | NEW |