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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
666 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 666 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
667 }; | 667 }; |
668 | 668 |
669 struct InstalledExtensionInfo { | 669 struct InstalledExtensionInfo { |
670 // The extension being installed - this should always be non-NULL. | 670 // The extension being installed - this should always be non-NULL. |
671 const Extension* extension; | 671 const Extension* extension; |
672 | 672 |
673 // True if the extension is being updated; false if it is being installed. | 673 // True if the extension is being updated; false if it is being installed. |
674 bool is_update; | 674 bool is_update; |
675 | 675 |
676 InstalledExtensionInfo(const Extension* extension, bool is_update); | 676 // The name of the extension prior to this update. Will be empty if |
677 // |is_update| is false. | |
678 std::string old_name; | |
679 | |
680 InstalledExtensionInfo(const Extension* extension, bool is_update, | |
benwells
2013/05/16 04:30:59
nit: one parameter per line.
| |
681 const std::string& old_name); | |
677 }; | 682 }; |
678 | 683 |
679 struct UnloadedExtensionInfo { | 684 struct UnloadedExtensionInfo { |
680 extension_misc::UnloadedExtensionReason reason; | 685 extension_misc::UnloadedExtensionReason reason; |
681 | 686 |
682 // Was the extension already disabled? | 687 // Was the extension already disabled? |
683 bool already_disabled; | 688 bool already_disabled; |
684 | 689 |
685 // The extension being unloaded - this should always be non-NULL. | 690 // The extension being unloaded - this should always be non-NULL. |
686 const Extension* extension; | 691 const Extension* extension; |
(...skipping 22 matching lines...) Expand all Loading... | |
709 | 714 |
710 UpdatedExtensionPermissionsInfo( | 715 UpdatedExtensionPermissionsInfo( |
711 const Extension* extension, | 716 const Extension* extension, |
712 const PermissionSet* permissions, | 717 const PermissionSet* permissions, |
713 Reason reason); | 718 Reason reason); |
714 }; | 719 }; |
715 | 720 |
716 } // namespace extensions | 721 } // namespace extensions |
717 | 722 |
718 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 723 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |