OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 // Sent by an extension to notify the browser about the results of a unit | 828 // Sent by an extension to notify the browser about the results of a unit |
829 // test. | 829 // test. |
830 EXTENSION_TEST_PASSED, | 830 EXTENSION_TEST_PASSED, |
831 EXTENSION_TEST_FAILED, | 831 EXTENSION_TEST_FAILED, |
832 | 832 |
833 // Sent when an bookmarks extensions API function was successfully invoked. | 833 // Sent when an bookmarks extensions API function was successfully invoked. |
834 // The source is the id of the extension that invoked the function, and the | 834 // The source is the id of the extension that invoked the function, and the |
835 // details are a pointer to the const BookmarksFunction in question. | 835 // details are a pointer to the const BookmarksFunction in question. |
836 EXTENSION_BOOKMARKS_API_INVOKED, | 836 EXTENSION_BOOKMARKS_API_INVOKED, |
837 | 837 |
| 838 // Sent when an omnibox extension has sent back omnibox suggestions. The |
| 839 // source is the profile, and the details are a |
| 840 // std::pair<int suggest_id, ListValue suggestions_array> |
| 841 EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
| 842 |
838 // Privacy Blacklist ------------------------------------------------------- | 843 // Privacy Blacklist ------------------------------------------------------- |
839 | 844 |
840 // Sent on the IO thread when a non-visual resource (like a cookie) | 845 // Sent on the IO thread when a non-visual resource (like a cookie) |
841 // is blocked by a privacy blacklist. The details are a const URLRequest, | 846 // is blocked by a privacy blacklist. The details are a const URLRequest, |
842 // and the source is a const ChromeURLRequestContext. | 847 // and the source is a const ChromeURLRequestContext. |
843 BLACKLIST_NONVISUAL_RESOURCE_BLOCKED, | 848 BLACKLIST_NONVISUAL_RESOURCE_BLOCKED, |
844 | 849 |
845 // Debugging --------------------------------------------------------------- | 850 // Debugging --------------------------------------------------------------- |
846 | 851 |
847 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. | 852 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 }; | 1025 }; |
1021 | 1026 |
1022 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1027 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1023 return a == b.value; | 1028 return a == b.value; |
1024 } | 1029 } |
1025 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1030 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1026 return a != b.value; | 1031 return a != b.value; |
1027 } | 1032 } |
1028 | 1033 |
1029 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1034 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |