| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 content::BrowserContext* browser_context, | 56 content::BrowserContext* browser_context, |
| 57 const Extension* extension, | 57 const Extension* extension, |
| 58 bool is_update, | 58 bool is_update, |
| 59 bool from_ephemeral, | 59 bool from_ephemeral, |
| 60 const std::string& old_name) {} | 60 const std::string& old_name) {} |
| 61 | 61 |
| 62 // Called when the installation of |extension| is complete. At this point the | 62 // Called when the installation of |extension| is complete. At this point the |
| 63 // extension is tracked in one of the ExtensionRegistry sets, but is not | 63 // extension is tracked in one of the ExtensionRegistry sets, but is not |
| 64 // necessarily enabled. | 64 // necessarily enabled. |
| 65 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, | 65 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, |
| 66 const Extension* extension) {} | 66 const Extension* extension, |
| 67 bool is_update) {} |
| 67 | 68 |
| 68 // Called after an extension is uninstalled. The extension no longer exists in | 69 // Called after an extension is uninstalled. The extension no longer exists in |
| 69 // any of the ExtensionRegistry sets (enabled, disabled, etc.). | 70 // any of the ExtensionRegistry sets (enabled, disabled, etc.). |
| 70 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 71 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 71 const Extension* extension) {} | 72 const Extension* extension) {} |
| 72 | 73 |
| 73 // Notifies observers that the observed object is going away. | 74 // Notifies observers that the observed object is going away. |
| 74 virtual void OnShutdown(ExtensionRegistry* registry) {} | 75 virtual void OnShutdown(ExtensionRegistry* registry) {} |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace extensions | 78 } // namespace extensions |
| 78 | 79 |
| 79 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ | 80 #endif // EXTENSIONS_BROWSER_EXTENSION_REGISTRY_OBSERVER_H_ |
| OLD | NEW |