| 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 EXTENSIONS_COMMON_EXTENSION_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ |
| 6 #define EXTENSIONS_COMMON_EXTENSION_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 std::string old_name; | 506 std::string old_name; |
| 507 | 507 |
| 508 InstalledExtensionInfo(const Extension* extension, | 508 InstalledExtensionInfo(const Extension* extension, |
| 509 bool is_update, | 509 bool is_update, |
| 510 const std::string& old_name); | 510 const std::string& old_name); |
| 511 }; | 511 }; |
| 512 | 512 |
| 513 struct UnloadedExtensionInfo { | 513 struct UnloadedExtensionInfo { |
| 514 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver. | 514 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver. |
| 515 enum Reason { | 515 enum Reason { |
| 516 REASON_DISABLE, // Extension is being disabled. | 516 REASON_DISABLE, // Extension is being disabled. |
| 517 REASON_UPDATE, // Extension is being updated to a newer version. | 517 REASON_UPDATE, // Extension is being updated to a newer version. |
| 518 REASON_UNINSTALL, // Extension is being uninstalled. | 518 REASON_UNINSTALL, // Extension is being uninstalled. |
| 519 REASON_TERMINATE, // Extension has terminated. | 519 REASON_TERMINATE, // Extension has terminated. |
| 520 REASON_BLACKLIST, // Extension has been blacklisted. | 520 REASON_BLACKLIST, // Extension has been blacklisted. |
| 521 REASON_PROFILE_SHUTDOWN, // Profile is being shut down. |
| 521 }; | 522 }; |
| 522 | 523 |
| 523 Reason reason; | 524 Reason reason; |
| 524 | 525 |
| 525 // The extension being unloaded - this should always be non-NULL. | 526 // The extension being unloaded - this should always be non-NULL. |
| 526 const Extension* extension; | 527 const Extension* extension; |
| 527 | 528 |
| 528 UnloadedExtensionInfo(const Extension* extension, Reason reason); | 529 UnloadedExtensionInfo(const Extension* extension, Reason reason); |
| 529 }; | 530 }; |
| 530 | 531 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 547 | 548 |
| 548 UpdatedExtensionPermissionsInfo( | 549 UpdatedExtensionPermissionsInfo( |
| 549 const Extension* extension, | 550 const Extension* extension, |
| 550 const PermissionSet* permissions, | 551 const PermissionSet* permissions, |
| 551 Reason reason); | 552 Reason reason); |
| 552 }; | 553 }; |
| 553 | 554 |
| 554 } // namespace extensions | 555 } // namespace extensions |
| 555 | 556 |
| 556 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 557 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
| OLD | NEW |