OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
727 struct UninstalledExtensionInfo { | 727 struct UninstalledExtensionInfo { |
728 explicit UninstalledExtensionInfo(const Extension& extension); | 728 explicit UninstalledExtensionInfo(const Extension& extension); |
729 ~UninstalledExtensionInfo(); | 729 ~UninstalledExtensionInfo(); |
730 | 730 |
731 std::string extension_id; | 731 std::string extension_id; |
732 std::set<std::string> extension_api_permissions; | 732 std::set<std::string> extension_api_permissions; |
733 Extension::Type extension_type; | 733 Extension::Type extension_type; |
734 GURL update_url; | 734 GURL update_url; |
735 }; | 735 }; |
736 | 736 |
737 struct UnloadedExtensionInfo { | |
738 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
| |
739 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
| |
740 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
| |
741 UNINSTALL, // The extension is being uninstalled. | |
742 }; | |
743 | |
744 Reason reason; | |
745 | |
746 // Was the extension already disabled? | |
747 bool already_disabled; | |
748 | |
749 // 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
| |
750 const Extension* extension; | |
751 | |
752 UnloadedExtensionInfo(const Extension* extension, Reason reason); | |
753 }; | |
754 | |
737 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 755 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |