OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 // This message indicates that an instance of a particular child was | 401 // This message indicates that an instance of a particular child was |
402 // created in a page. (If one page contains several regions rendered by | 402 // created in a page. (If one page contains several regions rendered by |
403 // the same child, this notification will occur once for each region | 403 // the same child, this notification will occur once for each region |
404 // during the page load.) | 404 // during the page load.) |
405 // | 405 // |
406 // There is no usable source, since it is sent from an ephemeral task; | 406 // There is no usable source, since it is sent from an ephemeral task; |
407 // register for AllSources() to receive this notification. The details are | 407 // register for AllSources() to receive this notification. The details are |
408 // in a Details<ChildProcessInfo>. | 408 // in a Details<ChildProcessInfo>. |
409 NOTIFICATION_CHILD_INSTANCE_CREATED, | 409 NOTIFICATION_CHILD_INSTANCE_CREATED, |
410 | 410 |
411 // Download Notifications -------------------------------------------------- | |
412 | |
413 // Sent when a page generation to MHTML has finished. | |
414 // The source is the corresponding RenderViewHost. The details is a | |
415 // MHTMLGenerationManager::NotificationDetails. | |
416 NOTIFICATION_MHTML_GENERATED, | |
417 | |
418 // Saved Pages ------------------------------------------------------------- | 411 // Saved Pages ------------------------------------------------------------- |
419 | 412 |
420 // Sent when a SavePackage finishes successfully. The source is the | 413 // Sent when a SavePackage finishes successfully. The source is the |
421 // SavePackage, and Details are a GURL containing address of downloaded | 414 // SavePackage, and Details are a GURL containing address of downloaded |
422 // page. | 415 // page. |
423 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, | 416 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, |
424 | 417 |
425 // Purge Memory ------------------------------------------------------------ | 418 // Purge Memory ------------------------------------------------------------ |
426 | 419 |
427 // Sent on the IO thread when the system should try to reduce the amount of | 420 // Sent on the IO thread when the system should try to reduce the amount of |
428 // memory in use, no source or details are passed. See memory_purger.h .cc. | 421 // memory in use, no source or details are passed. See memory_purger.h .cc. |
429 NOTIFICATION_PURGE_MEMORY, | 422 NOTIFICATION_PURGE_MEMORY, |
430 | 423 |
431 // Sent before the repost form warning is brought up. | 424 // Sent before the repost form warning is brought up. |
432 // The source is a NavigationController. | 425 // The source is a NavigationController. |
433 NOTIFICATION_REPOST_WARNING_SHOWN, | 426 NOTIFICATION_REPOST_WARNING_SHOWN, |
434 | 427 |
435 // Sent when the zoom level changes. The source is the HostZoomMap. The | 428 // Sent when the zoom level changes. The source is the HostZoomMap. The |
436 // details is a string of the hostname for which the zoom changed. In case | 429 // details is a string of the hostname for which the zoom changed. In case |
437 // of a temporary zoom level change, the details is an empty string. | 430 // of a temporary zoom level change, the details is an empty string. |
438 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 431 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
439 | 432 |
440 // Custom notifications used by the embedder should start from here. | 433 // Custom notifications used by the embedder should start from here. |
441 NOTIFICATION_CONTENT_END, | 434 NOTIFICATION_CONTENT_END, |
442 }; | 435 }; |
443 | 436 |
444 } // namespace content | 437 } // namespace content |
445 | 438 |
446 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 439 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |