| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 std::string old_name; | 515 std::string old_name; |
| 516 | 516 |
| 517 InstalledExtensionInfo(const Extension* extension, | 517 InstalledExtensionInfo(const Extension* extension, |
| 518 bool is_update, | 518 bool is_update, |
| 519 const std::string& old_name); | 519 const std::string& old_name); |
| 520 }; | 520 }; |
| 521 | 521 |
| 522 struct UnloadedExtensionInfo { | 522 struct UnloadedExtensionInfo { |
| 523 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver. | 523 // TODO(DHNishi): Move this enum to ExtensionRegistryObserver. |
| 524 enum Reason { | 524 enum Reason { |
| 525 REASON_UNDEFINED, // Undefined state used to initialize variables. | 525 REASON_DISABLE, // Extension is being disabled. |
| 526 REASON_DISABLE, // Extension is being disabled. | 526 REASON_UPDATE, // Extension is being updated to a newer version. |
| 527 REASON_UPDATE, // Extension is being updated to a newer version. | 527 REASON_UNINSTALL, // Extension is being uninstalled. |
| 528 REASON_UNINSTALL, // Extension is being uninstalled. | 528 REASON_TERMINATE, // Extension has terminated. |
| 529 REASON_TERMINATE, // Extension has terminated. | 529 REASON_BLACKLIST, // Extension has been blacklisted. |
| 530 REASON_BLACKLIST, // Extension has been blacklisted. | |
| 531 REASON_PROFILE_SHUTDOWN, // Profile is being shut down. | |
| 532 }; | 530 }; |
| 533 | 531 |
| 534 Reason reason; | 532 Reason reason; |
| 535 | 533 |
| 536 // The extension being unloaded - this should always be non-NULL. | 534 // The extension being unloaded - this should always be non-NULL. |
| 537 const Extension* extension; | 535 const Extension* extension; |
| 538 | 536 |
| 539 UnloadedExtensionInfo(const Extension* extension, Reason reason); | 537 UnloadedExtensionInfo(const Extension* extension, Reason reason); |
| 540 }; | 538 }; |
| 541 | 539 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 558 | 556 |
| 559 UpdatedExtensionPermissionsInfo( | 557 UpdatedExtensionPermissionsInfo( |
| 560 const Extension* extension, | 558 const Extension* extension, |
| 561 const PermissionSet* permissions, | 559 const PermissionSet* permissions, |
| 562 Reason reason); | 560 Reason reason); |
| 563 }; | 561 }; |
| 564 | 562 |
| 565 } // namespace extensions | 563 } // namespace extensions |
| 566 | 564 |
| 567 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 565 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
| OLD | NEW |