| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
| 10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 SYNC_CONFIGURE_START, | 1010 SYNC_CONFIGURE_START, |
| 1011 | 1011 |
| 1012 // The sync service is finished the configuration process. | 1012 // The sync service is finished the configuration process. |
| 1013 SYNC_CONFIGURE_DONE, | 1013 SYNC_CONFIGURE_DONE, |
| 1014 | 1014 |
| 1015 // The session service has been saved. This notification type is only sent | 1015 // The session service has been saved. This notification type is only sent |
| 1016 // if there were new SessionService commands to save, and not for no-op save | 1016 // if there were new SessionService commands to save, and not for no-op save |
| 1017 // operations. | 1017 // operations. |
| 1018 SESSION_SERVICE_SAVED, | 1018 SESSION_SERVICE_SAVED, |
| 1019 | 1019 |
| 1020 // A foreign session has been updated. If a new tab page is open, the |
| 1021 // foreign session handler needs to update the new tab page's foreign |
| 1022 // session data. |
| 1023 FOREIGN_SESSION_UPDATED, |
| 1024 |
| 1025 // A foreign session has been deleted. If a new tab page is open, the |
| 1026 // foreign session handler needs to update the new tab page's foreign |
| 1027 // session data. |
| 1028 FOREIGN_SESSION_DELETED, |
| 1029 |
| 1020 // The syncer requires a passphrase to decrypt sensitive updates. This | 1030 // The syncer requires a passphrase to decrypt sensitive updates. This |
| 1021 // notification is sent when the first sensitive data type is setup by the | 1031 // notification is sent when the first sensitive data type is setup by the |
| 1022 // user as well as anytime any the passphrase is changed in another synced | 1032 // user as well as anytime any the passphrase is changed in another synced |
| 1023 // client. | 1033 // client. |
| 1024 SYNC_PASSPHRASE_REQUIRED, | 1034 SYNC_PASSPHRASE_REQUIRED, |
| 1025 | 1035 |
| 1026 // Sent when the passphrase provided by the user is accepted. After this | 1036 // Sent when the passphrase provided by the user is accepted. After this |
| 1027 // notification is sent, updates to sensitive nodes are encrypted using the | 1037 // notification is sent, updates to sensitive nodes are encrypted using the |
| 1028 // accepted passphrase. | 1038 // accepted passphrase. |
| 1029 SYNC_PASSPHRASE_ACCEPTED, | 1039 SYNC_PASSPHRASE_ACCEPTED, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 }; | 1158 }; |
| 1149 | 1159 |
| 1150 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1160 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1151 return a == b.value; | 1161 return a == b.value; |
| 1152 } | 1162 } |
| 1153 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1163 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1154 return a != b.value; | 1164 return a != b.value; |
| 1155 } | 1165 } |
| 1156 | 1166 |
| 1157 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1167 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |