| 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 EXTENSION_TEST_PASSED, | 736 EXTENSION_TEST_PASSED, |
| 737 EXTENSION_TEST_FAILED, | 737 EXTENSION_TEST_FAILED, |
| 738 | 738 |
| 739 // Sent when an bookmarks extensions API function was successfully invoked. | 739 // Sent when an bookmarks extensions API function was successfully invoked. |
| 740 // The source is the id of the extension that invoked the function, and the | 740 // The source is the id of the extension that invoked the function, and the |
| 741 // details are a pointer to the const BookmarksFunction in question. | 741 // details are a pointer to the const BookmarksFunction in question. |
| 742 EXTENSION_BOOKMARKS_API_INVOKED, | 742 EXTENSION_BOOKMARKS_API_INVOKED, |
| 743 | 743 |
| 744 // Privacy Blacklist ------------------------------------------------------- | 744 // Privacy Blacklist ------------------------------------------------------- |
| 745 | 745 |
| 746 // Sent when the blacklist manager successfully finishes reading | 746 // Sent on the UI thread when the blacklist manager successfully finishes |
| 747 // a blacklist. The details are a Blacklist, and the source is a Profile. | 747 // reading a blacklist. There are no details, and the source is a Profile. |
| 748 // The new blacklist is available on the IO thread. |
| 748 BLACKLIST_MANAGER_BLACKLIST_READ_FINISHED, | 749 BLACKLIST_MANAGER_BLACKLIST_READ_FINISHED, |
| 749 | 750 |
| 750 // Sent when the blacklist manager encounters an error. The details are | 751 // Sent on the UI thread when the blacklist manager encounters an error. |
| 751 // a string16 (error message), and the source is a Profile. | 752 // The details are a string16 (error message), and the source is a Profile. |
| 752 BLACKLIST_MANAGER_ERROR, | 753 BLACKLIST_MANAGER_ERROR, |
| 753 | 754 |
| 754 // Sent by the resource dispatcher host when a resource is blocked. | 755 // Sent on the IO thread when a non-visual resource (like a cookie) |
| 755 BLACKLIST_BLOCKED_RESOURCE, | 756 // is blocked by a privacy blacklist. The details are a const URLRequest, |
| 757 // and the source is a const ChromeURLRequestContext. |
| 758 BLACKLIST_NONVISUAL_RESOURCE_BLOCKED, |
| 756 | 759 |
| 757 // Debugging --------------------------------------------------------------- | 760 // Debugging --------------------------------------------------------------- |
| 758 | 761 |
| 759 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. | 762 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. |
| 760 // http://code.google.com/p/chromium/issues/detail?id=21201 | 763 // http://code.google.com/p/chromium/issues/detail?id=21201 |
| 761 EXTENSION_PORT_DELETED_DEBUG, | 764 EXTENSION_PORT_DELETED_DEBUG, |
| 762 | 765 |
| 763 // Desktop Notifications --------------------------------------------------- | 766 // Desktop Notifications --------------------------------------------------- |
| 764 | 767 |
| 765 // This notification is sent when a balloon is connected to a renderer | 768 // This notification is sent when a balloon is connected to a renderer |
| (...skipping 27 matching lines...) Expand all Loading... |
| 793 }; | 796 }; |
| 794 | 797 |
| 795 inline bool operator==(NotificationType::Type a, NotificationType b) { | 798 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 796 return a == b.value; | 799 return a == b.value; |
| 797 } | 800 } |
| 798 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 801 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 799 return a != b.value; | 802 return a != b.value; |
| 800 } | 803 } |
| 801 | 804 |
| 802 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 805 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |