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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 // Sent by history when the favicon of a URL changes. The source is the | 280 // Sent by history when the favicon of a URL changes. The source is the |
281 // profile, and the details is history::FaviconChangeDetails (see | 281 // profile, and the details is history::FaviconChangeDetails (see |
282 // history_notifications.h). | 282 // history_notifications.h). |
283 NOTIFICATION_FAVICON_CHANGED, | 283 NOTIFICATION_FAVICON_CHANGED, |
284 | 284 |
285 // Sent by FaviconTabHelper when a tab's favicon has been successfully | 285 // Sent by FaviconTabHelper when a tab's favicon has been successfully |
286 // updated. | 286 // updated. |
287 NOTIFICATION_FAVICON_UPDATED, | 287 NOTIFICATION_FAVICON_UPDATED, |
288 | 288 |
289 // Profiles ----------------------------------------------------------------- | |
290 | |
291 // Sent after a Profile has been created. This notification is sent both for | 289 // Sent after a Profile has been created. This notification is sent both for |
292 // normal and OTR profiles. | 290 // normal and OTR profiles. |
293 // The details are none and the source is the new profile. | 291 // The details are none and the source is the new profile. |
294 NOTIFICATION_PROFILE_CREATED, | 292 NOTIFICATION_PROFILE_CREATED, |
295 | 293 |
296 // Sent after a Profile has been added to ProfileManager. | 294 // Sent after a Profile has been added to ProfileManager. |
297 // The details are none and the source is the new profile. | 295 // The details are none and the source is the new profile. |
298 NOTIFICATION_PROFILE_ADDED, | 296 NOTIFICATION_PROFILE_ADDED, |
299 | 297 |
300 // Sent before a Profile is destroyed. This notification is sent both for | 298 // Sent before a Profile is destroyed. This notification is sent both for |
301 // normal and OTR profiles. | 299 // normal and OTR profiles. |
302 // The details are none and the source is a Profile*. | 300 // The details are none and the source is a Profile*. |
303 NOTIFICATION_PROFILE_DESTROYED, | 301 NOTIFICATION_PROFILE_DESTROYED, |
304 | 302 |
305 // Sent after the URLRequestContextGetter for a Profile has been initialized. | |
306 // The details are none and the source is a Profile*. | |
307 NOTIFICATION_PROFILE_URL_REQUEST_CONTEXT_GETTER_INITIALIZED, | |
308 | |
309 // TopSites ---------------------------------------------------------------- | 303 // TopSites ---------------------------------------------------------------- |
310 | 304 |
311 // Sent by TopSites when it finishes loading. The source is the profile the | 305 // Sent by TopSites when it finishes loading. The source is the profile the |
312 // details the TopSites. | 306 // details the TopSites. |
313 NOTIFICATION_TOP_SITES_LOADED, | 307 NOTIFICATION_TOP_SITES_LOADED, |
314 | 308 |
315 // Sent by TopSites when it has finished updating its most visited URLs | 309 // Sent by TopSites when it has finished updating its most visited URLs |
316 // cache after querying the history service. The source is the TopSites and | 310 // cache after querying the history service. The source is the TopSites and |
317 // the details a CancelableRequestProvider::Handle from the history service | 311 // the details a CancelableRequestProvider::Handle from the history service |
318 // query. | 312 // query. |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 // Currently only Content and Chrome define and use notifications. | 1193 // Currently only Content and Chrome define and use notifications. |
1200 // Custom notifications not belonging to Content and Chrome should start | 1194 // Custom notifications not belonging to Content and Chrome should start |
1201 // from here. | 1195 // from here. |
1202 NOTIFICATION_CHROME_END, | 1196 NOTIFICATION_CHROME_END, |
1203 }; | 1197 }; |
1204 | 1198 |
1205 } // namespace chrome | 1199 } // namespace chrome |
1206 | 1200 |
1207 | 1201 |
1208 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1202 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |