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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 | 974 |
975 // Sent when the sync backend has been resumed. | 975 // Sent when the sync backend has been resumed. |
976 SYNC_RESUMED, | 976 SYNC_RESUMED, |
977 | 977 |
978 // The sync service has started the configuration process. | 978 // The sync service has started the configuration process. |
979 SYNC_CONFIGURE_START, | 979 SYNC_CONFIGURE_START, |
980 | 980 |
981 // The sync service is finished the configuration process. | 981 // The sync service is finished the configuration process. |
982 SYNC_CONFIGURE_DONE, | 982 SYNC_CONFIGURE_DONE, |
983 | 983 |
| 984 // The session service has been saved. This notification type is only sent |
| 985 // if there were new SessionService commands to save, and not for no-op save |
| 986 // operations. |
| 987 SESSION_SERVICE_SAVED, |
| 988 |
984 // Cookies ----------------------------------------------------------------- | 989 // Cookies ----------------------------------------------------------------- |
985 | 990 |
986 // Sent when a cookie changes. The source is a Profile object, the details | 991 // Sent when a cookie changes. The source is a Profile object, the details |
987 // are a ChromeCookieDetails object. | 992 // are a ChromeCookieDetails object. |
988 COOKIE_CHANGED, | 993 COOKIE_CHANGED, |
989 | 994 |
990 // Misc -------------------------------------------------------------------- | 995 // Misc -------------------------------------------------------------------- |
991 | 996 |
992 #if defined(OS_CHROMEOS) | 997 #if defined(OS_CHROMEOS) |
993 // Sent when a chromium os user logs in. | 998 // Sent when a chromium os user logs in. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 }; | 1063 }; |
1059 | 1064 |
1060 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1065 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1061 return a == b.value; | 1066 return a == b.value; |
1062 } | 1067 } |
1063 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1068 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1064 return a != b.value; | 1069 return a != b.value; |
1065 } | 1070 } |
1066 | 1071 |
1067 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1072 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |