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 CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 // details are None. | 1108 // details are None. |
1109 DESKTOP_NOTIFICATION_SETTINGS_CHANGED, | 1109 DESKTOP_NOTIFICATION_SETTINGS_CHANGED, |
1110 | 1110 |
1111 // Sent when the geolocation settings change. The source is the | 1111 // Sent when the geolocation settings change. The source is the |
1112 // GeolocationContentSettingsMap object, the details are | 1112 // GeolocationContentSettingsMap object, the details are |
1113 // ContentSettingsNotificationsDetails. | 1113 // ContentSettingsNotificationsDetails. |
1114 GEOLOCATION_SETTINGS_CHANGED, | 1114 GEOLOCATION_SETTINGS_CHANGED, |
1115 | 1115 |
1116 // Sync -------------------------------------------------------------------- | 1116 // Sync -------------------------------------------------------------------- |
1117 | 1117 |
1118 // Sent when the sync backend has been paused. | 1118 // Sent when the syncer is blocked configuring. |
1119 SYNC_PAUSED, | 1119 SYNC_CONFIGURE_BLOCKED, |
1120 | |
1121 // Sent when the sync backend has been resumed. | |
1122 SYNC_RESUMED, | |
1123 | 1120 |
1124 // The sync service has started the configuration process. | 1121 // The sync service has started the configuration process. |
1125 SYNC_CONFIGURE_START, | 1122 SYNC_CONFIGURE_START, |
1126 | 1123 |
1127 // The sync service is finished the configuration process. | 1124 // The sync service is finished the configuration process. |
1128 SYNC_CONFIGURE_DONE, | 1125 SYNC_CONFIGURE_DONE, |
1129 | 1126 |
1130 // The session service has been saved. This notification type is only sent | 1127 // The session service has been saved. This notification type is only sent |
1131 // if there were new SessionService commands to save, and not for no-op save | 1128 // if there were new SessionService commands to save, and not for no-op save |
1132 // operations. | 1129 // operations. |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 }; | 1340 }; |
1344 | 1341 |
1345 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1342 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1346 return a == b.value; | 1343 return a == b.value; |
1347 } | 1344 } |
1348 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1345 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1349 return a != b.value; | 1346 return a != b.value; |
1350 } | 1347 } |
1351 | 1348 |
1352 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1349 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |