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