| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 | 10 |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 // If a token request failed, one of these is issued per failed request. | 818 // If a token request failed, one of these is issued per failed request. |
| 819 // The source is a TokenService on the Profile. The details are a | 819 // The source is a TokenService on the Profile. The details are a |
| 820 // TokenRequestFailedDetails object. | 820 // TokenRequestFailedDetails object. |
| 821 NOTIFICATION_TOKEN_REQUEST_FAILED, | 821 NOTIFICATION_TOKEN_REQUEST_FAILED, |
| 822 | 822 |
| 823 // When a service has a new token they got from a frontend that the | 823 // When a service has a new token they got from a frontend that the |
| 824 // TokenService should know about, fire this notification. The source is the | 824 // TokenService should know about, fire this notification. The source is the |
| 825 // Profile. The details are a TokenAvailableDetails object. | 825 // Profile. The details are a TokenAvailableDetails object. |
| 826 NOTIFICATION_TOKEN_UPDATED, | 826 NOTIFICATION_TOKEN_UPDATED, |
| 827 | 827 |
| 828 // Fired when the TokenService has had all of its tokens removed (such as due |
| 829 // to the user signing out). The source is the TokenService. There are no |
| 830 // details. |
| 831 NOTIFICATION_TOKENS_CLEARED, |
| 832 |
| 828 // Sent when a user signs into Google services such as sync. | 833 // Sent when a user signs into Google services such as sync. |
| 829 // The source is the Profile. The details are a GoogleServiceSignin object. | 834 // The source is the Profile. The details are a |
| 835 // GoogleServiceSigninSuccessDetails object. |
| 830 NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL, | 836 NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL, |
| 831 | 837 |
| 832 // Sent when a user fails to sign into Google services such as sync. | 838 // Sent when a user fails to sign into Google services such as sync. |
| 833 // The source is the Profile. The details are a GoogleServiceAuthError | 839 // The source is the Profile. The details are a GoogleServiceAuthError |
| 834 // object. | 840 // object. |
| 835 NOTIFICATION_GOOGLE_SIGNIN_FAILED, | 841 NOTIFICATION_GOOGLE_SIGNIN_FAILED, |
| 836 | 842 |
| 843 // Sent when the currently signed-in user for a user has been signed out. |
| 844 // The source is the Profile. There are no details. |
| 845 NOTIFICATION_GOOGLE_SIGNED_OUT, |
| 846 |
| 837 // Autofill Notifications -------------------------------------------------- | 847 // Autofill Notifications -------------------------------------------------- |
| 838 | 848 |
| 839 // Sent when a popup with Autofill suggestions is shown in the renderer. | 849 // Sent when a popup with Autofill suggestions is shown in the renderer. |
| 840 // The source is the corresponding RenderViewHost. There are not details. | 850 // The source is the corresponding RenderViewHost. There are not details. |
| 841 NOTIFICATION_AUTOFILL_DID_SHOW_SUGGESTIONS, | 851 NOTIFICATION_AUTOFILL_DID_SHOW_SUGGESTIONS, |
| 842 | 852 |
| 843 // Sent when a form is previewed or filled with Autofill suggestions. | 853 // Sent when a form is previewed or filled with Autofill suggestions. |
| 844 // The source is the corresponding RenderViewHost. There are not details. | 854 // The source is the corresponding RenderViewHost. There are not details. |
| 845 NOTIFICATION_AUTOFILL_DID_FILL_FORM_DATA, | 855 NOTIFICATION_AUTOFILL_DID_FILL_FORM_DATA, |
| 846 | 856 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 // Currently only Content and Chrome define and use notifications. | 1120 // Currently only Content and Chrome define and use notifications. |
| 1111 // Custom notifications not belonging to Content and Chrome should start | 1121 // Custom notifications not belonging to Content and Chrome should start |
| 1112 // from here. | 1122 // from here. |
| 1113 NOTIFICATION_CHROME_END, | 1123 NOTIFICATION_CHROME_END, |
| 1114 }; | 1124 }; |
| 1115 | 1125 |
| 1116 } // namespace chrome | 1126 } // namespace chrome |
| 1117 | 1127 |
| 1118 | 1128 |
| 1119 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1129 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |