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 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 // The session service has been saved. This notification type is only sent | 1057 // The session service has been saved. This notification type is only sent |
1058 // if there were new SessionService commands to save, and not for no-op save | 1058 // if there were new SessionService commands to save, and not for no-op save |
1059 // operations. | 1059 // operations. |
1060 SESSION_SERVICE_SAVED, | 1060 SESSION_SERVICE_SAVED, |
1061 | 1061 |
1062 // A foreign session has been updated. If a new tab page is open, the | 1062 // A foreign session has been updated. If a new tab page is open, the |
1063 // foreign session handler needs to update the new tab page's foreign | 1063 // foreign session handler needs to update the new tab page's foreign |
1064 // session data. | 1064 // session data. |
1065 FOREIGN_SESSION_UPDATED, | 1065 FOREIGN_SESSION_UPDATED, |
1066 | 1066 |
1067 // A foreign session has been deleted. If a new tab page is open, the | 1067 // Foreign sessions has been disabled. New tabs should not display foreign |
1068 // foreign session handler needs to update the new tab page's foreign | |
1069 // session data. | 1068 // session data. |
1070 FOREIGN_SESSION_DELETED, | 1069 FOREIGN_SESSION_DISABLED, |
1071 | 1070 |
1072 // The syncer requires a passphrase to decrypt sensitive updates. This | 1071 // The syncer requires a passphrase to decrypt sensitive updates. This |
1073 // notification is sent when the first sensitive data type is setup by the | 1072 // notification is sent when the first sensitive data type is setup by the |
1074 // user as well as anytime any the passphrase is changed in another synced | 1073 // user as well as anytime any the passphrase is changed in another synced |
1075 // client. The source is the SyncBackendHost wanting a passphrase. No | 1074 // client. The source is the SyncBackendHost wanting a passphrase. No |
1076 // details. | 1075 // details. |
1077 SYNC_PASSPHRASE_REQUIRED, | 1076 SYNC_PASSPHRASE_REQUIRED, |
1078 | 1077 |
1079 // Sent when the passphrase provided by the user is accepted. After this | 1078 // Sent when the passphrase provided by the user is accepted. After this |
1080 // notification is sent, updates to sensitive nodes are encrypted using the | 1079 // notification is sent, updates to sensitive nodes are encrypted using the |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 }; | 1242 }; |
1244 | 1243 |
1245 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1244 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1246 return a == b.value; | 1245 return a == b.value; |
1247 } | 1246 } |
1248 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1247 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1249 return a != b.value; | 1248 return a != b.value; |
1250 } | 1249 } |
1251 | 1250 |
1252 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1251 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |