| 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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 // these notifications is issued per new token. | 1044 // these notifications is issued per new token. |
| 1045 // The source is a TokenService on the Profile. The details are a | 1045 // The source is a TokenService on the Profile. The details are a |
| 1046 // TokenAvailableDetails object. | 1046 // TokenAvailableDetails object. |
| 1047 TOKEN_AVAILABLE, | 1047 TOKEN_AVAILABLE, |
| 1048 | 1048 |
| 1049 // If a token request failed, one of these is issued per failed request. | 1049 // If a token request failed, one of these is issued per failed request. |
| 1050 // The source is a TokenService on the Profile. The details are a | 1050 // The source is a TokenService on the Profile. The details are a |
| 1051 // TokenRequestFailedDetails object. | 1051 // TokenRequestFailedDetails object. |
| 1052 TOKEN_REQUEST_FAILED, | 1052 TOKEN_REQUEST_FAILED, |
| 1053 | 1053 |
| 1054 // Task Manager ------------------------------------------------------------ |
| 1055 |
| 1056 // Sent after the Task Manager has received updated ResourceTypeStats |
| 1057 // from a renderer. Source is a TaskManagerModel. |
| 1058 TASK_MANAGER_RESOURCE_TYPE_STATS_UPDATED, |
| 1059 |
| 1054 // Misc -------------------------------------------------------------------- | 1060 // Misc -------------------------------------------------------------------- |
| 1055 | 1061 |
| 1056 #if defined(OS_CHROMEOS) | 1062 #if defined(OS_CHROMEOS) |
| 1057 // Sent when a chromium os user logs in. | 1063 // Sent when a chromium os user logs in. |
| 1058 LOGIN_USER_CHANGED, | 1064 LOGIN_USER_CHANGED, |
| 1059 | 1065 |
| 1060 // Sent when user image is updated. | 1066 // Sent when user image is updated. |
| 1061 LOGIN_USER_IMAGE_CHANGED, | 1067 LOGIN_USER_IMAGE_CHANGED, |
| 1062 | 1068 |
| 1063 // Sent when a chromium os user attempts to log in. The source is | 1069 // Sent when a chromium os user attempts to log in. The source is |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 }; | 1149 }; |
| 1144 | 1150 |
| 1145 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1151 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1146 return a == b.value; | 1152 return a == b.value; |
| 1147 } | 1153 } |
| 1148 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1154 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1149 return a != b.value; | 1155 return a != b.value; |
| 1150 } | 1156 } |
| 1151 | 1157 |
| 1152 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1158 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |