Chromium Code Reviews| 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, bool is_update, | |
|
benwells
2013/05/28 02:14:07
Nit: one line per parameter.
Matt Giuca
2013/05/28 03:10:07
Done.
| |
| 561 const std::string& old_name); | |
| 557 }; | 562 }; |
| 558 | 563 |
| 559 struct UnloadedExtensionInfo { | 564 struct UnloadedExtensionInfo { |
| 560 extension_misc::UnloadedExtensionReason reason; | 565 extension_misc::UnloadedExtensionReason reason; |
| 561 | 566 |
| 562 // Was the extension already disabled? | 567 // Was the extension already disabled? |
| 563 bool already_disabled; | 568 bool already_disabled; |
| 564 | 569 |
| 565 // The extension being unloaded - this should always be non-NULL. | 570 // The extension being unloaded - this should always be non-NULL. |
| 566 const Extension* extension; | 571 const Extension* extension; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 589 | 594 |
| 590 UpdatedExtensionPermissionsInfo( | 595 UpdatedExtensionPermissionsInfo( |
| 591 const Extension* extension, | 596 const Extension* extension, |
| 592 const PermissionSet* permissions, | 597 const PermissionSet* permissions, |
| 593 Reason reason); | 598 Reason reason); |
| 594 }; | 599 }; |
| 595 | 600 |
| 596 } // namespace extensions | 601 } // namespace extensions |
| 597 | 602 |
| 598 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 603 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |