OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 #include "content/public/browser/notification_types.h" | 8 #include "content/public/browser/notification_types.h" |
9 | 9 |
10 namespace chrome { | 10 namespace chrome { |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 // When there aren't any additional tokens left to load, this notification | 874 // When there aren't any additional tokens left to load, this notification |
875 // is sent. | 875 // is sent. |
876 // The source is a TokenService on the profile. There are no details. | 876 // The source is a TokenService on the profile. There are no details. |
877 NOTIFICATION_TOKEN_LOADING_FINISHED, | 877 NOTIFICATION_TOKEN_LOADING_FINISHED, |
878 | 878 |
879 // If a token request failed, one of these is issued per failed request. | 879 // If a token request failed, one of these is issued per failed request. |
880 // The source is a TokenService on the Profile. The details are a | 880 // The source is a TokenService on the Profile. The details are a |
881 // TokenRequestFailedDetails object. | 881 // TokenRequestFailedDetails object. |
882 NOTIFICATION_TOKEN_REQUEST_FAILED, | 882 NOTIFICATION_TOKEN_REQUEST_FAILED, |
883 | 883 |
| 884 // When the token service receives updated credentials with which to generate |
| 885 // new tokens, one of these notifications is issued. |
| 886 // The source is a TokenService on the Profile. The details are a |
| 887 // CredentialsUpdatedDetails object. |
| 888 NOTIFICATION_TOKEN_SERVICE_CREDENTIALS_UPDATED, |
| 889 |
884 // When a service has a new token they got from a frontend that the | 890 // When a service has a new token they got from a frontend that the |
885 // TokenService should know about, fire this notification. The source is the | 891 // TokenService should know about, fire this notification. The source is the |
886 // Profile. The details are a TokenAvailableDetails object. | 892 // Profile. The details are a TokenAvailableDetails object. |
887 NOTIFICATION_TOKEN_UPDATED, | 893 NOTIFICATION_TOKEN_UPDATED, |
888 | 894 |
889 // Fired when the TokenService has had all of its tokens removed (such as due | 895 // Fired when the TokenService has had all of its tokens removed (such as due |
890 // to the user signing out). The source is the TokenService. There are no | 896 // to the user signing out). The source is the TokenService. There are no |
891 // details. | 897 // details. |
892 NOTIFICATION_TOKENS_CLEARED, | 898 NOTIFICATION_TOKENS_CLEARED, |
893 | 899 |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 // Currently only Content and Chrome define and use notifications. | 1240 // Currently only Content and Chrome define and use notifications. |
1235 // Custom notifications not belonging to Content and Chrome should start | 1241 // Custom notifications not belonging to Content and Chrome should start |
1236 // from here. | 1242 // from here. |
1237 NOTIFICATION_CHROME_END, | 1243 NOTIFICATION_CHROME_END, |
1238 }; | 1244 }; |
1239 | 1245 |
1240 } // namespace chrome | 1246 } // namespace chrome |
1241 | 1247 |
1242 | 1248 |
1243 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1249 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |