| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 | 690 |
| 691 scoped_ptr<base::DictionaryValue> extension_manifest; | 691 scoped_ptr<base::DictionaryValue> extension_manifest; |
| 692 std::string extension_id; | 692 std::string extension_id; |
| 693 base::FilePath extension_path; | 693 base::FilePath extension_path; |
| 694 Manifest::Location extension_location; | 694 Manifest::Location extension_location; |
| 695 | 695 |
| 696 private: | 696 private: |
| 697 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 697 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
| 698 }; | 698 }; |
| 699 | 699 |
| 700 struct InstalledExtensionInfo { |
| 701 // The extension being installed - this should always be non-NULL. |
| 702 const Extension* extension; |
| 703 |
| 704 // True if the extension is being updated; false if it is being installed. |
| 705 bool is_update; |
| 706 |
| 707 InstalledExtensionInfo(const Extension* extension, bool is_update); |
| 708 }; |
| 709 |
| 700 struct UnloadedExtensionInfo { | 710 struct UnloadedExtensionInfo { |
| 701 extension_misc::UnloadedExtensionReason reason; | 711 extension_misc::UnloadedExtensionReason reason; |
| 702 | 712 |
| 703 // Was the extension already disabled? | 713 // Was the extension already disabled? |
| 704 bool already_disabled; | 714 bool already_disabled; |
| 705 | 715 |
| 706 // The extension being unloaded - this should always be non-NULL. | 716 // The extension being unloaded - this should always be non-NULL. |
| 707 const Extension* extension; | 717 const Extension* extension; |
| 708 | 718 |
| 709 UnloadedExtensionInfo( | 719 UnloadedExtensionInfo( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 730 | 740 |
| 731 UpdatedExtensionPermissionsInfo( | 741 UpdatedExtensionPermissionsInfo( |
| 732 const Extension* extension, | 742 const Extension* extension, |
| 733 const PermissionSet* permissions, | 743 const PermissionSet* permissions, |
| 734 Reason reason); | 744 Reason reason); |
| 735 }; | 745 }; |
| 736 | 746 |
| 737 } // namespace extensions | 747 } // namespace extensions |
| 738 | 748 |
| 739 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 749 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |