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...) 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 { |
| 739 DISABLE, // The extension is being disabled. |
| 740 UPDATE, // The extension is being updated to a newer version. |
| 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 // The extension being unloaded - this should always be non-NULL. |
| 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 |