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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 // details are None. | 1105 // details are None. |
1106 DESKTOP_NOTIFICATION_SETTINGS_CHANGED, | 1106 DESKTOP_NOTIFICATION_SETTINGS_CHANGED, |
1107 | 1107 |
1108 // Sent when the geolocation settings change. The source is the | 1108 // Sent when the geolocation settings change. The source is the |
1109 // GeolocationContentSettingsMap object, the details are | 1109 // GeolocationContentSettingsMap object, the details are |
1110 // ContentSettingsNotificationsDetails. | 1110 // ContentSettingsNotificationsDetails. |
1111 GEOLOCATION_SETTINGS_CHANGED, | 1111 GEOLOCATION_SETTINGS_CHANGED, |
1112 | 1112 |
1113 // Sync -------------------------------------------------------------------- | 1113 // Sync -------------------------------------------------------------------- |
1114 | 1114 |
1115 // Sent when the sync backend has been paused. | 1115 // Sent when the syncer has finished downloading updates for a CONFIG job. |
1116 SYNC_PAUSED, | 1116 SYNC_CONFIGURE_UPDATES_DOWNLOADED, |
1117 | |
1118 // Sent when the sync backend has been resumed. | |
1119 SYNC_RESUMED, | |
1120 | 1117 |
1121 // The sync service has started the configuration process. | 1118 // The sync service has started the configuration process. |
1122 SYNC_CONFIGURE_START, | 1119 SYNC_CONFIGURE_START, |
1123 | 1120 |
1124 // The sync service is finished the configuration process. | 1121 // The sync service is finished the configuration process. |
1125 SYNC_CONFIGURE_DONE, | 1122 SYNC_CONFIGURE_DONE, |
1126 | 1123 |
1127 // The session service has been saved. This notification type is only sent | 1124 // The session service has been saved. This notification type is only sent |
1128 // if there were new SessionService commands to save, and not for no-op save | 1125 // if there were new SessionService commands to save, and not for no-op save |
1129 // operations. | 1126 // operations. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1337 }; | 1334 }; |
1338 | 1335 |
1339 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1336 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1340 return a == b.value; | 1337 return a == b.value; |
1341 } | 1338 } |
1342 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1339 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1343 return a != b.value; | 1340 return a != b.value; |
1344 } | 1341 } |
1345 | 1342 |
1346 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1343 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |