| 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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 SYNC_CONFIGURE_START, | 990 SYNC_CONFIGURE_START, |
| 991 | 991 |
| 992 // The sync service is finished the configuration process. | 992 // The sync service is finished the configuration process. |
| 993 SYNC_CONFIGURE_DONE, | 993 SYNC_CONFIGURE_DONE, |
| 994 | 994 |
| 995 // The session service has been saved. This notification type is only sent | 995 // The session service has been saved. This notification type is only sent |
| 996 // if there were new SessionService commands to save, and not for no-op save | 996 // if there were new SessionService commands to save, and not for no-op save |
| 997 // operations. | 997 // operations. |
| 998 SESSION_SERVICE_SAVED, | 998 SESSION_SERVICE_SAVED, |
| 999 | 999 |
| 1000 // The syncer requires a passphrase to decrypt sensitive updates. This |
| 1001 // notification is sent when the first sensitive data type is setup by the |
| 1002 // user as well as anytime any the passphrase is changed in another synced |
| 1003 // client. |
| 1004 SYNC_PASSPHRASE_REQUIRED, |
| 1005 |
| 1006 // Sent when the passphrase provided by the user is accepted. After this |
| 1007 // notification is sent, updates to sensitive nodes are encrypted using the |
| 1008 // accepted passphrase. |
| 1009 SYNC_PASSPHRASE_ACCEPTED, |
| 1010 |
| 1000 // Cookies ----------------------------------------------------------------- | 1011 // Cookies ----------------------------------------------------------------- |
| 1001 | 1012 |
| 1002 // Sent when a cookie changes. The source is a Profile object, the details | 1013 // Sent when a cookie changes. The source is a Profile object, the details |
| 1003 // are a ChromeCookieDetails object. | 1014 // are a ChromeCookieDetails object. |
| 1004 COOKIE_CHANGED, | 1015 COOKIE_CHANGED, |
| 1005 | 1016 |
| 1006 // Misc -------------------------------------------------------------------- | 1017 // Misc -------------------------------------------------------------------- |
| 1007 | 1018 |
| 1008 #if defined(OS_CHROMEOS) | 1019 #if defined(OS_CHROMEOS) |
| 1009 // Sent when a chromium os user logs in. | 1020 // Sent when a chromium os user logs in. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 }; | 1085 }; |
| 1075 | 1086 |
| 1076 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1087 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1077 return a == b.value; | 1088 return a == b.value; |
| 1078 } | 1089 } |
| 1079 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1090 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1080 return a != b.value; | 1091 return a != b.value; |
| 1081 } | 1092 } |
| 1082 | 1093 |
| 1083 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1094 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |