OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ |
7 | 7 |
8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
10 // | 10 // |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // User Scripts ------------------------------------------------------------ | 625 // User Scripts ------------------------------------------------------------ |
626 | 626 |
627 // Sent when there are new user scripts available. The details are a | 627 // Sent when there are new user scripts available. The details are a |
628 // pointer to SharedMemory containing the new scripts. | 628 // pointer to SharedMemory containing the new scripts. |
629 USER_SCRIPTS_UPDATED, | 629 USER_SCRIPTS_UPDATED, |
630 | 630 |
631 // Extensions -------------------------------------------------------------- | 631 // Extensions -------------------------------------------------------------- |
632 | 632 |
633 // Sent when the known installed extensions have all been loaded. In | 633 // Sent when the known installed extensions have all been loaded. In |
634 // testing scenarios this can happen multiple times if extensions are | 634 // testing scenarios this can happen multiple times if extensions are |
635 // unloaded and reloaded. | 635 // unloaded and reloaded. The source is a Profile. |
636 EXTENSIONS_READY, | 636 EXTENSIONS_READY, |
637 | 637 |
638 // Sent when a new extension is loaded. The details are an Extension. | 638 // Sent when a new extension is loaded. The details are an Extension, and |
| 639 // the source is a Profile. |
639 EXTENSION_LOADED, | 640 EXTENSION_LOADED, |
640 | 641 |
641 // Sent when attempting to load a new extension, but they are disabled. The | 642 // Sent when attempting to load a new extension, but they are disabled. The |
642 // details are an Extension*. | 643 // details are an Extension*, and the source is a Profile*. |
643 EXTENSION_UPDATE_DISABLED, | 644 EXTENSION_UPDATE_DISABLED, |
644 | 645 |
645 // Sent when a theme is ready to be installed, so we can alert the user. | 646 // Sent when a theme is ready to be installed, so we can alert the user. |
646 EXTENSION_READY_FOR_INSTALL, | 647 EXTENSION_READY_FOR_INSTALL, |
647 | 648 |
648 // Sent on ExtensionOverinstallAttempted when no theme is detected. | 649 // Sent on ExtensionOverinstallAttempted when no theme is detected. The |
| 650 // source is a Profile. |
649 NO_THEME_DETECTED, | 651 NO_THEME_DETECTED, |
650 | 652 |
651 // Sent when a new theme is installed. The details are an Extension. | 653 // Sent when a new theme is installed. The details are an Extension, and the |
| 654 // source is a Profile. |
652 THEME_INSTALLED, | 655 THEME_INSTALLED, |
653 | 656 |
654 // Sent when new extensions are installed. The details are an Extension. | 657 // Sent when new extensions are installed. The details are an Extension, and |
| 658 // the source is a Profile. |
655 EXTENSION_INSTALLED, | 659 EXTENSION_INSTALLED, |
656 | 660 |
657 // An error occured during extension install. The details are a string with | 661 // An error occured during extension install. The details are a string with |
658 // details about why the install failed. | 662 // details about why the install failed. |
659 EXTENSION_INSTALL_ERROR, | 663 EXTENSION_INSTALL_ERROR, |
660 | 664 |
661 // An overinstall error occured during extension install. The details are a | 665 // An overinstall error occured during extension install. The details are a |
662 // FilePath to the extension that was attempted to install. | 666 // FilePath to the extension that was attempted to install. |
663 EXTENSION_OVERINSTALL_ERROR, | 667 EXTENSION_OVERINSTALL_ERROR, |
664 | 668 |
665 // Sent when an extension is unloaded. This happens when an extension is | 669 // Sent when an extension is unloaded. This happens when an extension is |
666 // uninstalled. When we add a disable feature, it will also happen then. | 670 // uninstalled. When we add a disable feature, it will also happen then. |
667 // The details are an Extension. Note that when this notification is sent, | 671 // The details are an Extension, and the source is a Profile. |
668 // ExtensionsService has already removed the extension from its internal | 672 // |
669 // state. | 673 // Note that when this notification is sent, ExtensionsService has already |
| 674 // removed the extension from its internal state. |
670 EXTENSION_UNLOADED, | 675 EXTENSION_UNLOADED, |
671 | 676 |
672 // Same as above, but for a disabled extension. | 677 // Same as above, but for a disabled extension. |
673 EXTENSION_UNLOADED_DISABLED, | 678 EXTENSION_UNLOADED_DISABLED, |
674 | 679 |
675 // Sent after a new ExtensionHost is created. The details are | 680 // Sent after a new ExtensionHost is created. The details are |
676 // an ExtensionHost* and the source is an ExtensionProcessManager*. | 681 // an ExtensionHost* and the source is an ExtensionProcessManager*. |
677 EXTENSION_HOST_CREATED, | 682 EXTENSION_HOST_CREATED, |
678 | 683 |
679 // Sent before an ExtensionHost is destroyed. The details are | 684 // Sent before an ExtensionHost is destroyed. The details are |
680 // an ExtensionHost* and the source is a Profile*. | 685 // an ExtensionHost* and the source is a Profile*. |
681 EXTENSION_HOST_DESTROYED, | 686 EXTENSION_HOST_DESTROYED, |
682 | 687 |
683 // Sent by an ExtensionHost when it finished its initial page load. | 688 // Sent by an ExtensionHost when it finished its initial page load. |
684 // The details are an ExtensionHost* and the source is a Profile*. | 689 // The details are an ExtensionHost* and the source is a Profile*. |
685 EXTENSION_HOST_DID_STOP_LOADING, | 690 EXTENSION_HOST_DID_STOP_LOADING, |
686 | 691 |
687 // Sent by an ExtensionHost when its render view requests closing through | 692 // Sent by an ExtensionHost when its render view requests closing through |
688 // window.close(). The details are an ExtensionHost* and the source is a | 693 // window.close(). The details are an ExtensionHost* and the source is a |
689 // Profile*. | 694 // Profile*. |
690 EXTENSION_HOST_VIEW_SHOULD_CLOSE, | 695 EXTENSION_HOST_VIEW_SHOULD_CLOSE, |
691 | 696 |
692 // Sent after an extension render process is created and fully functional. | 697 // Sent after an extension render process is created and fully functional. |
693 // The details are an ExtensionHost*. | 698 // The details are an ExtensionHost*. |
694 EXTENSION_PROCESS_CREATED, | 699 EXTENSION_PROCESS_CREATED, |
695 | 700 |
696 // Sent when extension render process crashes. The details are | 701 // Sent when extension render process crashes. The details are |
697 // an ExtensionHost* and the source is an ExtensionsService*. | 702 // an ExtensionHost* and the source is a Profile*. |
698 EXTENSION_PROCESS_CRASHED, | 703 EXTENSION_PROCESS_CRASHED, |
699 | 704 |
700 // Sent when the contents or order of toolstrips in the shelf model change. | 705 // Sent when the contents or order of toolstrips in the shelf model change. |
701 EXTENSION_SHELF_MODEL_CHANGED, | 706 EXTENSION_SHELF_MODEL_CHANGED, |
702 | 707 |
703 // Sent when a background page is ready so other components can load. | 708 // Sent when a background page is ready so other components can load. |
704 EXTENSION_BACKGROUND_PAGE_READY, | 709 EXTENSION_BACKGROUND_PAGE_READY, |
705 | 710 |
706 // Sent when a pop-up extension view is ready, so that notification may | 711 // Sent when a pop-up extension view is ready, so that notification may |
707 // be sent to pending callbacks. | 712 // be sent to pending callbacks. |
(...skipping 12 matching lines...) Expand all Loading... |
720 EXTENSION_TEST_PASSED, | 725 EXTENSION_TEST_PASSED, |
721 EXTENSION_TEST_FAILED, | 726 EXTENSION_TEST_FAILED, |
722 | 727 |
723 // Sent when an bookmarks extensions API function was successfully invoked. | 728 // Sent when an bookmarks extensions API function was successfully invoked. |
724 // The source is the id of the extension that invoked the function, and the | 729 // The source is the id of the extension that invoked the function, and the |
725 // details are a pointer to the const BookmarksFunction in question. | 730 // details are a pointer to the const BookmarksFunction in question. |
726 EXTENSION_BOOKMARKS_API_INVOKED, | 731 EXTENSION_BOOKMARKS_API_INVOKED, |
727 | 732 |
728 // Privacy Blacklist ------------------------------------------------------- | 733 // Privacy Blacklist ------------------------------------------------------- |
729 | 734 |
730 // Sent when a privacy blacklist path provider changes the list of its | |
731 // blacklist paths (like adds/removes items). The details are | |
732 // a BlacklistPathProvider, and the source is a Profile. | |
733 BLACKLIST_PATH_PROVIDER_UPDATED, | |
734 | |
735 // Sent when the blacklist manager successfully finishes reading | 735 // Sent when the blacklist manager successfully finishes reading |
736 // a blacklist. The details are a Blacklist, and the source is a Profile. | 736 // a blacklist. The details are a Blacklist, and the source is a Profile. |
737 BLACKLIST_MANAGER_BLACKLIST_READ_FINISHED, | 737 BLACKLIST_MANAGER_BLACKLIST_READ_FINISHED, |
738 | 738 |
739 // Sent when the blacklist manager encounters an error. The details are | 739 // Sent when the blacklist manager encounters an error. The details are |
740 // a string16 (error message), and the source is a Profile. | 740 // a string16 (error message), and the source is a Profile. |
741 BLACKLIST_MANAGER_ERROR, | 741 BLACKLIST_MANAGER_ERROR, |
742 | 742 |
743 // Sent by the resource dispatcher host when a resource is blocked. | 743 // Sent by the resource dispatcher host when a resource is blocked. |
744 BLACKLIST_BLOCKED_RESOURCE, | 744 BLACKLIST_BLOCKED_RESOURCE, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 }; | 781 }; |
782 | 782 |
783 inline bool operator==(NotificationType::Type a, NotificationType b) { | 783 inline bool operator==(NotificationType::Type a, NotificationType b) { |
784 return a == b.value; | 784 return a == b.value; |
785 } | 785 } |
786 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 786 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
787 return a != b.value; | 787 return a != b.value; |
788 } | 788 } |
789 | 789 |
790 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 790 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |