OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
10 | 10 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 // Sent after a Profile has been created. This notification is sent both for | 287 // Sent after a Profile has been created. This notification is sent both for |
288 // normal and OTR profiles. | 288 // normal and OTR profiles. |
289 // The details are none and the source is the new profile. | 289 // The details are none and the source is the new profile. |
290 NOTIFICATION_PROFILE_CREATED, | 290 NOTIFICATION_PROFILE_CREATED, |
291 | 291 |
292 // Sent after a Profile has been added to ProfileManager. | 292 // Sent after a Profile has been added to ProfileManager. |
293 // The details are none and the source is the new profile. | 293 // The details are none and the source is the new profile. |
294 NOTIFICATION_PROFILE_ADDED, | 294 NOTIFICATION_PROFILE_ADDED, |
295 | 295 |
| 296 // Sent early in the process of destroying a Profile, at the time a user |
| 297 // initiates the deletion of a profile versus the much later time when the |
| 298 // profile object is actually destroyed (use NOTIFICATION_PROFILE_DESTROYED). |
| 299 // The details are none and the source is a Profile*. |
| 300 NOTIFICATION_PROFILE_DESTRUCTION_STARTED, |
| 301 |
296 // Sent before a Profile is destroyed. This notification is sent both for | 302 // Sent before a Profile is destroyed. This notification is sent both for |
297 // normal and OTR profiles. | 303 // normal and OTR profiles. |
298 // The details are none and the source is a Profile*. | 304 // The details are none and the source is a Profile*. |
299 NOTIFICATION_PROFILE_DESTROYED, | 305 NOTIFICATION_PROFILE_DESTROYED, |
300 | 306 |
301 // Sent after the URLRequestContextGetter for a Profile has been initialized. | 307 // Sent after the URLRequestContextGetter for a Profile has been initialized. |
302 // The details are none and the source is a Profile*. | 308 // The details are none and the source is a Profile*. |
303 NOTIFICATION_PROFILE_URL_REQUEST_CONTEXT_GETTER_INITIALIZED, | 309 NOTIFICATION_PROFILE_URL_REQUEST_CONTEXT_GETTER_INITIALIZED, |
304 | 310 |
305 // TopSites ---------------------------------------------------------------- | 311 // TopSites ---------------------------------------------------------------- |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 // Note:- | 946 // Note:- |
941 // Currently only Content and Chrome define and use notifications. | 947 // Currently only Content and Chrome define and use notifications. |
942 // Custom notifications not belonging to Content and Chrome should start | 948 // Custom notifications not belonging to Content and Chrome should start |
943 // from here. | 949 // from here. |
944 NOTIFICATION_CHROME_END, | 950 NOTIFICATION_CHROME_END, |
945 }; | 951 }; |
946 | 952 |
947 } // namespace chrome | 953 } // namespace chrome |
948 | 954 |
949 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 955 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |