OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 | 1148 |
1149 // A foreign session has been updated. If a new tab page is open, the | 1149 // A foreign session has been updated. If a new tab page is open, the |
1150 // foreign session handler needs to update the new tab page's foreign | 1150 // foreign session handler needs to update the new tab page's foreign |
1151 // session data. | 1151 // session data. |
1152 FOREIGN_SESSION_UPDATED, | 1152 FOREIGN_SESSION_UPDATED, |
1153 | 1153 |
1154 // Foreign sessions has been disabled. New tabs should not display foreign | 1154 // Foreign sessions has been disabled. New tabs should not display foreign |
1155 // session data. | 1155 // session data. |
1156 FOREIGN_SESSION_DISABLED, | 1156 FOREIGN_SESSION_DISABLED, |
1157 | 1157 |
1158 // The syncer requires a passphrase to decrypt sensitive updates. This | |
1159 // notification is sent when the first sensitive data type is setup by the | |
1160 // user as well as anytime any the passphrase is changed in another synced | |
1161 // client. The source is the SyncBackendHost wanting a passphrase. The | |
1162 // details are a boolean: true if the passphrase is required for decryption, | |
1163 // false if only required for encryption. | |
1164 SYNC_PASSPHRASE_REQUIRED, | |
1165 | |
1166 // Sent when the passphrase provided by the user is accepted. After this | |
1167 // notification is sent, updates to sensitive nodes are encrypted using the | |
1168 // accepted passphrase. The source is the SyncBackendHost that accepted | |
1169 // the passphrase. No details. | |
1170 SYNC_PASSPHRASE_ACCEPTED, | |
1171 | |
1172 // Sent when the set of data types that should be synced has been modified | 1158 // Sent when the set of data types that should be synced has been modified |
1173 // externally (eg. by the dom_ui options screen). | 1159 // externally (eg. by the dom_ui options screen). |
1174 // The source is the Profile, there are no details. | 1160 // The source is the Profile, there are no details. |
1175 SYNC_DATA_TYPES_UPDATED, | 1161 SYNC_DATA_TYPES_UPDATED, |
1176 | 1162 |
1177 // Cookies ----------------------------------------------------------------- | 1163 // Cookies ----------------------------------------------------------------- |
1178 | 1164 |
1179 // Sent when a cookie changes. The source is a Profile object, the details | 1165 // Sent when a cookie changes. The source is a Profile object, the details |
1180 // are a ChromeCookieDetails object. | 1166 // are a ChromeCookieDetails object. |
1181 COOKIE_CHANGED, | 1167 COOKIE_CHANGED, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 }; | 1319 }; |
1334 | 1320 |
1335 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1321 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1336 return a == b.value; | 1322 return a == b.value; |
1337 } | 1323 } |
1338 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1324 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1339 return a != b.value; | 1325 return a != b.value; |
1340 } | 1326 } |
1341 | 1327 |
1342 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1328 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |