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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 // notification is sent, updates to sensitive nodes are encrypted using the | 1038 // notification is sent, updates to sensitive nodes are encrypted using the |
1039 // accepted passphrase. | 1039 // accepted passphrase. |
1040 SYNC_PASSPHRASE_ACCEPTED, | 1040 SYNC_PASSPHRASE_ACCEPTED, |
1041 | 1041 |
1042 // Cookies ----------------------------------------------------------------- | 1042 // Cookies ----------------------------------------------------------------- |
1043 | 1043 |
1044 // Sent when a cookie changes. The source is a Profile object, the details | 1044 // Sent when a cookie changes. The source is a Profile object, the details |
1045 // are a ChromeCookieDetails object. | 1045 // are a ChromeCookieDetails object. |
1046 COOKIE_CHANGED, | 1046 COOKIE_CHANGED, |
1047 | 1047 |
| 1048 // Sidebar ----------------------------------------------------------------- |
| 1049 |
| 1050 // Sent when the sidebar state is changed. |
| 1051 // The source is a SidebarManager instance, the details are the changed |
| 1052 // SidebarContainer object. |
| 1053 SIDEBAR_CHANGED, |
| 1054 |
1048 // Token Service ----------------------------------------------------------- | 1055 // Token Service ----------------------------------------------------------- |
1049 | 1056 |
1050 // When the token service has a new token available for a service, one of | 1057 // When the token service has a new token available for a service, one of |
1051 // these notifications is issued per new token. | 1058 // these notifications is issued per new token. |
1052 // The source is a TokenService on the Profile. The details are a | 1059 // The source is a TokenService on the Profile. The details are a |
1053 // TokenAvailableDetails object. | 1060 // TokenAvailableDetails object. |
1054 TOKEN_AVAILABLE, | 1061 TOKEN_AVAILABLE, |
1055 | 1062 |
1056 // Sent when the sidebar state is changed. | 1063 // When there aren't any additional tokens left to load, this notification |
1057 // The source is a SidebarManager instance, the details are the changed | 1064 // is sent. |
1058 // SidebarContainer object. | 1065 // The source is a TokenService on the profile. There are no details. |
1059 SIDEBAR_CHANGED, | 1066 TOKEN_LOADING_FINISHED, |
1060 | 1067 |
1061 // If a token request failed, one of these is issued per failed request. | 1068 // If a token request failed, one of these is issued per failed request. |
1062 // The source is a TokenService on the Profile. The details are a | 1069 // The source is a TokenService on the Profile. The details are a |
1063 // TokenRequestFailedDetails object. | 1070 // TokenRequestFailedDetails object. |
1064 TOKEN_REQUEST_FAILED, | 1071 TOKEN_REQUEST_FAILED, |
1065 | 1072 |
| 1073 // When a service has a new token they got from a frontend that the |
| 1074 // TokenService should know about, fire this notification. The details |
| 1075 // are a TokenAvailableDetails object. |
| 1076 TOKEN_UPDATED, |
| 1077 |
| 1078 // Sent when a user signs into Google services such as sync. |
| 1079 // The source is the SigninManager instance. The details are a |
| 1080 // GoogleServiceSignin object. |
| 1081 GOOGLE_SIGNIN_SUCCESSFUL, |
| 1082 |
| 1083 // Sent when a user fails to sign into Google services such as sync. |
| 1084 // The source is the SigninManager instance. The details are a |
| 1085 // GoogleServiceAuthError object. |
| 1086 GOOGLE_SIGNIN_FAILED, |
| 1087 |
| 1088 |
1066 // Misc -------------------------------------------------------------------- | 1089 // Misc -------------------------------------------------------------------- |
1067 | 1090 |
1068 #if defined(OS_CHROMEOS) | 1091 #if defined(OS_CHROMEOS) |
1069 // Sent when a chromium os user logs in. | 1092 // Sent when a chromium os user logs in. |
1070 LOGIN_USER_CHANGED, | 1093 LOGIN_USER_CHANGED, |
1071 | 1094 |
1072 // Sent when user image is updated. | 1095 // Sent when user image is updated. |
1073 LOGIN_USER_IMAGE_CHANGED, | 1096 LOGIN_USER_IMAGE_CHANGED, |
1074 | 1097 |
1075 // Sent when a chromium os user attempts to log in. The source is | 1098 // Sent when a chromium os user attempts to log in. The source is |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 }; | 1187 }; |
1165 | 1188 |
1166 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1189 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1167 return a == b.value; | 1190 return a == b.value; |
1168 } | 1191 } |
1169 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1192 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1170 return a != b.value; | 1193 return a != b.value; |
1171 } | 1194 } |
1172 | 1195 |
1173 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1196 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |