| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 content::BrowserContext* browser_context, | 55 content::BrowserContext* browser_context, |
| 56 const Extension* extension, | 56 const Extension* extension, |
| 57 bool is_update, | 57 bool is_update, |
| 58 bool from_ephemeral, | 58 bool from_ephemeral, |
| 59 const std::string& old_name) {} | 59 const std::string& old_name) {} |
| 60 | 60 |
| 61 // Called after an extension is uninstalled. The extension no longer exsit in | 61 // Called after an extension is uninstalled. The extension no longer exsit in |
| 62 // any of the ExtensionRegistry sets (enabled, disabled, etc.). | 62 // any of the ExtensionRegistry sets (enabled, disabled, etc.). |
| 63 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 63 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 64 const Extension* extension) {} | 64 const Extension* extension) {} |
| 65 |
| 66 // Notifies observers that the observed object is going away. |
| 67 virtual void OnShutdown() {} |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 } // namespace extensions | 70 } // namespace extensions |
| 68 | 71 |
| 69 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ | 72 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ |
| OLD | NEW |