| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 | 605 |
| 606 // Sent on the browser IO thread when an URLRequestContext is released by | 606 // Sent on the browser IO thread when an URLRequestContext is released by |
| 607 // its owning Profile. The source is a pointer to the URLRequestContext. | 607 // its owning Profile. The source is a pointer to the URLRequestContext. |
| 608 URL_REQUEST_CONTEXT_RELEASED, | 608 URL_REQUEST_CONTEXT_RELEASED, |
| 609 | 609 |
| 610 // Sent when WM_ENDSESSION has been received, after the browsers have been | 610 // Sent when WM_ENDSESSION has been received, after the browsers have been |
| 611 // closed but before browser process has been shutdown. The source/details | 611 // closed but before browser process has been shutdown. The source/details |
| 612 // are all source and no details. | 612 // are all source and no details. |
| 613 SESSION_END, | 613 SESSION_END, |
| 614 | 614 |
| 615 // Privacy blacklists ------------------------------------------------------ | 615 // Personalization --------------------------------------------------------- |
| 616 | 616 |
| 617 // Sent when a privacy blacklist path provider changes the list of its | 617 PERSONALIZATION, |
| 618 // blacklist paths (like adds/removes items). The details are | 618 PERSONALIZATION_CREATED, |
| 619 // a BlacklistPathProvider, and the source is a Profile. | |
| 620 PRIVACY_BLACKLIST_PATH_PROVIDER_UPDATED, | |
| 621 | 619 |
| 622 // User Scripts ------------------------------------------------------------ | 620 // User Scripts ------------------------------------------------------------ |
| 623 | 621 |
| 624 // Sent when there are new user scripts available. The details are a | 622 // Sent when there are new user scripts available. The details are a |
| 625 // pointer to SharedMemory containing the new scripts. | 623 // pointer to SharedMemory containing the new scripts. |
| 626 USER_SCRIPTS_UPDATED, | 624 USER_SCRIPTS_UPDATED, |
| 627 | 625 |
| 628 // Extensions -------------------------------------------------------------- | 626 // Extensions -------------------------------------------------------------- |
| 629 | 627 |
| 630 // Sent when the known installed extensions have all been loaded. In | 628 // Sent when the known installed extensions have all been loaded. In |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 EXTENSION_TEST_PASSED, | 707 EXTENSION_TEST_PASSED, |
| 710 EXTENSION_TEST_FAILED, | 708 EXTENSION_TEST_FAILED, |
| 711 | 709 |
| 712 // Sent when an bookmarks extensions API function was successfully invoked. | 710 // Sent when an bookmarks extensions API function was successfully invoked. |
| 713 // The source is the id of the extension that invoked the function, and the | 711 // The source is the id of the extension that invoked the function, and the |
| 714 // details are a pointer to the const BookmarksFunction in question. | 712 // details are a pointer to the const BookmarksFunction in question. |
| 715 EXTENSION_BOOKMARKS_API_INVOKED, | 713 EXTENSION_BOOKMARKS_API_INVOKED, |
| 716 | 714 |
| 717 // Privacy Blacklist ------------------------------------------------------- | 715 // Privacy Blacklist ------------------------------------------------------- |
| 718 | 716 |
| 717 // Sent when a privacy blacklist path provider changes the list of its |
| 718 // blacklist paths (like adds/removes items). The details are |
| 719 // a BlacklistPathProvider, and the source is a Profile. |
| 720 BLACKLIST_PATH_PROVIDER_UPDATED, |
| 721 |
| 722 // Sent when the blacklist manager successfully finishes reading |
| 723 // a blacklist. The details are a Blacklist, and the source is a Profile. |
| 724 BLACKLIST_MANAGER_BLACKLIST_READ_FINISHED, |
| 725 |
| 726 // Sent when the blacklist manager encounters an error. The details are |
| 727 // a string16 (error message), and the source is a Profile. |
| 728 BLACKLIST_MANAGER_ERROR, |
| 729 |
| 719 // Sent by the resource dispatcher host when a resource is blocked. | 730 // Sent by the resource dispatcher host when a resource is blocked. |
| 720 BLACKLIST_BLOCKED_RESOURCE, | 731 BLACKLIST_BLOCKED_RESOURCE, |
| 721 | 732 |
| 722 // Debugging --------------------------------------------------------------- | 733 // Debugging --------------------------------------------------------------- |
| 723 | 734 |
| 724 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. | 735 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. |
| 725 // http://code.google.com/p/chromium/issues/detail?id=21201 | 736 // http://code.google.com/p/chromium/issues/detail?id=21201 |
| 726 EXTENSION_PORT_DELETED_DEBUG, | 737 EXTENSION_PORT_DELETED_DEBUG, |
| 727 | 738 |
| 728 // Count (must be last) ---------------------------------------------------- | 739 // Count (must be last) ---------------------------------------------------- |
| (...skipping 15 matching lines...) Expand all Loading... |
| 744 }; | 755 }; |
| 745 | 756 |
| 746 inline bool operator==(NotificationType::Type a, NotificationType b) { | 757 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 747 return a == b.value; | 758 return a == b.value; |
| 748 } | 759 } |
| 749 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 760 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 750 return a != b.value; | 761 return a != b.value; |
| 751 } | 762 } |
| 752 | 763 |
| 753 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 764 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |