| 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 syncer is blocked configuring. | 1118 // Sent when the syncer is blocked configuring. |
| 1119 SYNC_CONFIGURE_BLOCKED, | 1119 SYNC_CONFIGURE_BLOCKED, |
| 1120 | 1120 |
| 1121 // The ProfileSyncService is loading. Components can now call |
| 1122 // Profile::GetProfileSyncService without risk of premature creation. |
| 1123 // This notification occurs only after the PSS has begun initialization. |
| 1124 PROFILE_SYNC_SERVICE_LOADING, |
| 1125 |
| 1121 // The sync service has started the configuration process. | 1126 // The sync service has started the configuration process. |
| 1122 SYNC_CONFIGURE_START, | 1127 SYNC_CONFIGURE_START, |
| 1123 | 1128 |
| 1124 // The sync service is finished the configuration process. | 1129 // The sync service is finished the configuration process. |
| 1125 SYNC_CONFIGURE_DONE, | 1130 SYNC_CONFIGURE_DONE, |
| 1126 | 1131 |
| 1127 // The session service has been saved. This notification type is only sent | 1132 // 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 | 1133 // if there were new SessionService commands to save, and not for no-op save |
| 1129 // operations. | 1134 // operations. |
| 1130 SESSION_SERVICE_SAVED, | 1135 SESSION_SERVICE_SAVED, |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 }; | 1345 }; |
| 1341 | 1346 |
| 1342 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1347 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1343 return a == b.value; | 1348 return a == b.value; |
| 1344 } | 1349 } |
| 1345 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1350 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1346 return a != b.value; | 1351 return a != b.value; |
| 1347 } | 1352 } |
| 1348 | 1353 |
| 1349 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1354 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |