| 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 // process to render the balloon contents. The source is a Source<Balloon> | 772 // process to render the balloon contents. The source is a Source<Balloon> |
| 773 // with a pointer to the the balloon. A NOTIFY_BALLOON_DISCONNECTED is | 773 // with a pointer to the the balloon. A NOTIFY_BALLOON_DISCONNECTED is |
| 774 // guaranteed before the source pointer becomes junk. No details expected. | 774 // guaranteed before the source pointer becomes junk. No details expected. |
| 775 NOTIFY_BALLOON_CONNECTED, | 775 NOTIFY_BALLOON_CONNECTED, |
| 776 | 776 |
| 777 // This message is sent after a balloon is disconnected from the renderer | 777 // This message is sent after a balloon is disconnected from the renderer |
| 778 // process. The source is a Source<Balloon> with a pointer to the balloon | 778 // process. The source is a Source<Balloon> with a pointer to the balloon |
| 779 // (the pointer is usable). No details are expected. | 779 // (the pointer is usable). No details are expected. |
| 780 NOTIFY_BALLOON_DISCONNECTED, | 780 NOTIFY_BALLOON_DISCONNECTED, |
| 781 | 781 |
| 782 // Web Database Service ---------------------------------------------------- |
| 783 |
| 782 // This notification is sent whenever autofill entries are | 784 // This notification is sent whenever autofill entries are |
| 783 // changed. The detail of this notification is a list of changes | 785 // changed. The detail of this notification is a list of changes |
| 784 // represented by a vector of AutofillChange. Each change | 786 // represented by a vector of AutofillChange. Each change |
| 785 // includes a change type (add, update, or remove) as well as the | 787 // includes a change type (add, update, or remove) as well as the |
| 786 // key of the entry that was affected. | 788 // key of the entry that was affected. |
| 787 AUTOFILL_ENTRIES_CHANGED, | 789 AUTOFILL_ENTRIES_CHANGED, |
| 788 | 790 |
| 791 // This notification is sent whenever the web database service has finished |
| 792 // loading the web database. No details are expected. |
| 793 WEB_DATABASE_LOADED, |
| 794 |
| 789 // Purge Memory ------------------------------------------------------------ | 795 // Purge Memory ------------------------------------------------------------ |
| 790 | 796 |
| 791 // Sent on the IO thread when the system should try to reduce the amount of | 797 // Sent on the IO thread when the system should try to reduce the amount of |
| 792 // memory in use, no source or details are passed. See memory_purger.h .cc. | 798 // memory in use, no source or details are passed. See memory_purger.h .cc. |
| 793 PURGE_MEMORY, | 799 PURGE_MEMORY, |
| 794 | 800 |
| 795 // Count (must be last) ---------------------------------------------------- | 801 // Count (must be last) ---------------------------------------------------- |
| 796 // Used to determine the number of notification types. Not valid as | 802 // Used to determine the number of notification types. Not valid as |
| 797 // a type parameter when registering for or posting notifications. | 803 // a type parameter when registering for or posting notifications. |
| 798 NOTIFICATION_TYPE_COUNT | 804 NOTIFICATION_TYPE_COUNT |
| (...skipping 13 matching lines...) Expand all Loading... |
| 812 }; | 818 }; |
| 813 | 819 |
| 814 inline bool operator==(NotificationType::Type a, NotificationType b) { | 820 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 815 return a == b.value; | 821 return a == b.value; |
| 816 } | 822 } |
| 817 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 823 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 818 return a != b.value; | 824 return a != b.value; |
| 819 } | 825 } |
| 820 | 826 |
| 821 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 827 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |