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 // Personalization --------------------------------------------------------- |
| 616 |
| 617 PERSONALIZATION, |
| 618 PERSONALIZATION_CREATED, |
| 619 |
615 // Privacy blacklists ------------------------------------------------------ | 620 // Privacy blacklists ------------------------------------------------------ |
616 | 621 |
617 // Sent when a privacy blacklist path provider changes the list of its | 622 // Sent when a privacy blacklist path provider changes the list of its |
618 // blacklist paths (like adds/removes items). The details are | 623 // blacklist paths (like adds/removes items). The details are |
619 // a BlacklistPathProvider, and the source is a Profile. | 624 // a BlacklistPathProvider, and the source is a Profile. |
620 PRIVACY_BLACKLIST_PATH_PROVIDER_UPDATED, | 625 PRIVACY_BLACKLIST_PATH_PROVIDER_UPDATED, |
621 | 626 |
622 // User Scripts ------------------------------------------------------------ | 627 // User Scripts ------------------------------------------------------------ |
623 | 628 |
624 // Sent when there are new user scripts available. The details are a | 629 // Sent when there are new user scripts available. The details are a |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 | 707 |
703 // Sent when a browser action's state has changed. The source is the | 708 // Sent when a browser action's state has changed. The source is the |
704 // ExtensionAction* that changed. The details are an ExtensionActionState*. | 709 // ExtensionAction* that changed. The details are an ExtensionActionState*. |
705 EXTENSION_BROWSER_ACTION_UPDATED, | 710 EXTENSION_BROWSER_ACTION_UPDATED, |
706 | 711 |
707 // Sent by an extension to notify the browser about the results of a unit | 712 // Sent by an extension to notify the browser about the results of a unit |
708 // test. | 713 // test. |
709 EXTENSION_TEST_PASSED, | 714 EXTENSION_TEST_PASSED, |
710 EXTENSION_TEST_FAILED, | 715 EXTENSION_TEST_FAILED, |
711 | 716 |
712 // 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 | |
714 // details are a pointer to the const BookmarksFunction in question. | |
715 EXTENSION_BOOKMARKS_API_INVOKED, | |
716 | |
717 // Privacy Blacklist ------------------------------------------------------- | 717 // Privacy Blacklist ------------------------------------------------------- |
718 | 718 |
719 // Sent by the resource dispatcher host when a resource is blocked. | 719 // Sent by the resource dispatcher host when a resource is blocked. |
720 BLACKLIST_BLOCKED_RESOURCE, | 720 BLACKLIST_BLOCKED_RESOURCE, |
721 | 721 |
722 // Debugging --------------------------------------------------------------- | 722 // Debugging --------------------------------------------------------------- |
723 | 723 |
724 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. | 724 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. |
725 // http://code.google.com/p/chromium/issues/detail?id=21201 | 725 // http://code.google.com/p/chromium/issues/detail?id=21201 |
726 EXTENSION_PORT_DELETED_DEBUG, | 726 EXTENSION_PORT_DELETED_DEBUG, |
(...skipping 17 matching lines...) Expand all Loading... |
744 }; | 744 }; |
745 | 745 |
746 inline bool operator==(NotificationType::Type a, NotificationType b) { | 746 inline bool operator==(NotificationType::Type a, NotificationType b) { |
747 return a == b.value; | 747 return a == b.value; |
748 } | 748 } |
749 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 749 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
750 return a != b.value; | 750 return a != b.value; |
751 } | 751 } |
752 | 752 |
753 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 753 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |