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 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 NOTIFICATION_COOKIE_CHANGED, | 864 NOTIFICATION_COOKIE_CHANGED, |
865 | 865 |
866 // Token Service ----------------------------------------------------------- | 866 // Token Service ----------------------------------------------------------- |
867 | 867 |
868 // When the token service has a new token available for a service, one of | 868 // When the token service has a new token available for a service, one of |
869 // these notifications is issued per new token. | 869 // these notifications is issued per new token. |
870 // The source is a TokenService on the Profile. The details are a | 870 // The source is a TokenService on the Profile. The details are a |
871 // TokenAvailableDetails object. | 871 // TokenAvailableDetails object. |
872 NOTIFICATION_TOKEN_AVAILABLE, | 872 NOTIFICATION_TOKEN_AVAILABLE, |
873 | 873 |
| 874 // When the token service receives updated credentials with which to generate |
| 875 // new tokens, one of these notifications is issued per new credential. |
| 876 // The source is a TokenService on the Profile. The details are a |
| 877 // TokenAvailableDetails object. |
| 878 NOTIFICATION_TOKEN_SERVICE_CREDENTIALS_UPDATED, |
| 879 |
874 // When there aren't any additional tokens left to load, this notification | 880 // When there aren't any additional tokens left to load, this notification |
875 // is sent. | 881 // is sent. |
876 // The source is a TokenService on the profile. There are no details. | 882 // The source is a TokenService on the profile. There are no details. |
877 NOTIFICATION_TOKEN_LOADING_FINISHED, | 883 NOTIFICATION_TOKEN_LOADING_FINISHED, |
878 | 884 |
879 // If a token request failed, one of these is issued per failed request. | 885 // 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 | 886 // The source is a TokenService on the Profile. The details are a |
881 // TokenRequestFailedDetails object. | 887 // TokenRequestFailedDetails object. |
882 NOTIFICATION_TOKEN_REQUEST_FAILED, | 888 NOTIFICATION_TOKEN_REQUEST_FAILED, |
883 | 889 |
(...skipping 350 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 |