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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); | 546 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); |
547 }; | 547 }; |
548 | 548 |
549 struct InstalledExtensionInfo { | 549 struct InstalledExtensionInfo { |
550 // The extension being installed - this should always be non-NULL. | 550 // The extension being installed - this should always be non-NULL. |
551 const Extension* extension; | 551 const Extension* extension; |
552 | 552 |
553 // True if the extension is being updated; false if it is being installed. | 553 // True if the extension is being updated; false if it is being installed. |
554 bool is_update; | 554 bool is_update; |
555 | 555 |
556 InstalledExtensionInfo(const Extension* extension, bool is_update); | 556 // The name of the extension prior to this update. Will be empty if |
| 557 // |is_update| is false. |
| 558 std::string old_name; |
| 559 |
| 560 InstalledExtensionInfo(const Extension* extension, |
| 561 bool is_update, |
| 562 const std::string& old_name); |
557 }; | 563 }; |
558 | 564 |
559 struct UnloadedExtensionInfo { | 565 struct UnloadedExtensionInfo { |
560 extension_misc::UnloadedExtensionReason reason; | 566 extension_misc::UnloadedExtensionReason reason; |
561 | 567 |
562 // Was the extension already disabled? | 568 // Was the extension already disabled? |
563 bool already_disabled; | 569 bool already_disabled; |
564 | 570 |
565 // The extension being unloaded - this should always be non-NULL. | 571 // The extension being unloaded - this should always be non-NULL. |
566 const Extension* extension; | 572 const Extension* extension; |
(...skipping 22 matching lines...) Expand all Loading... |
589 | 595 |
590 UpdatedExtensionPermissionsInfo( | 596 UpdatedExtensionPermissionsInfo( |
591 const Extension* extension, | 597 const Extension* extension, |
592 const PermissionSet* permissions, | 598 const PermissionSet* permissions, |
593 Reason reason); | 599 Reason reason); |
594 }; | 600 }; |
595 | 601 |
596 } // namespace extensions | 602 } // namespace extensions |
597 | 603 |
598 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 604 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |