Index: chrome/common/extensions/extension.h |
=================================================================== |
--- chrome/common/extensions/extension.h (revision 69996) |
+++ chrome/common/extensions/extension.h (working copy) |
@@ -734,4 +734,22 @@ |
GURL update_url; |
}; |
+struct UnloadedExtensionInfo { |
+ enum Reason { |
Erik does not do reviews
2010/12/23 17:05:17
random thought: should we have a separate reason f
asargent_no_longer_on_chrome
2010/12/23 18:53:04
We already handle this in a sort of unexpected pla
|
+ DISABLED, // The extension was disabled. |
Erik does not do reviews
2010/12/23 17:05:17
naming nit: it would be nice if you used the same
asargent_no_longer_on_chrome
2010/12/23 18:53:04
Good point. Changed to: DISABLE, UPDATE, and UNINS
|
+ UPDATING, // The extension is being updated to a newer version. |
Erik does not do reviews
2010/12/23 17:05:17
Are we going to need to add a subsequent UPDATE_FA
asargent_no_longer_on_chrome
2010/12/23 18:53:04
I think anyone who's interested could listen for E
|
+ UNINSTALL, // The extension is being uninstalled. |
+ }; |
+ |
+ Reason reason; |
+ |
+ // Was the extension already disabled? |
+ bool already_disabled; |
+ |
+ // Can be NULL in the case of an already_disabled extension. |
Erik does not do reviews
2010/12/23 17:05:17
seems like there should be an extension id field t
asargent_no_longer_on_chrome
2010/12/23 18:53:04
I was mistaken that the extension can be NULL (the
|
+ const Extension* extension; |
+ |
+ UnloadedExtensionInfo(const Extension* extension, Reason reason); |
+}; |
+ |
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |