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 |
411 // Saved Pages ------------------------------------------------------------- | 418 // Saved Pages ------------------------------------------------------------- |
412 | 419 |
413 // Sent when a SavePackage finishes successfully. The source is the | 420 // Sent when a SavePackage finishes successfully. The source is the |
414 // SavePackage, and Details are a GURL containing address of downloaded | 421 // SavePackage, and Details are a GURL containing address of downloaded |
415 // page. | 422 // page. |
416 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, | 423 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, |
417 | 424 |
418 // Purge Memory ------------------------------------------------------------ | 425 // Purge Memory ------------------------------------------------------------ |
419 | 426 |
420 // Sent on the IO thread when the system should try to reduce the amount of | 427 // Sent on the IO thread when the system should try to reduce the amount of |
421 // memory in use, no source or details are passed. See memory_purger.h .cc. | 428 // memory in use, no source or details are passed. See memory_purger.h .cc. |
422 NOTIFICATION_PURGE_MEMORY, | 429 NOTIFICATION_PURGE_MEMORY, |
423 | 430 |
424 // Sent before the repost form warning is brought up. | 431 // Sent before the repost form warning is brought up. |
425 // The source is a NavigationController. | 432 // The source is a NavigationController. |
426 NOTIFICATION_REPOST_WARNING_SHOWN, | 433 NOTIFICATION_REPOST_WARNING_SHOWN, |
427 | 434 |
428 // Sent when the zoom level changes. The source is the HostZoomMap. The | 435 // Sent when the zoom level changes. The source is the HostZoomMap. The |
429 // details is a string of the hostname for which the zoom changed. In case | 436 // details is a string of the hostname for which the zoom changed. In case |
430 // of a temporary zoom level change, the details is an empty string. | 437 // of a temporary zoom level change, the details is an empty string. |
431 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 438 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
432 | 439 |
433 // Custom notifications used by the embedder should start from here. | 440 // Custom notifications used by the embedder should start from here. |
434 NOTIFICATION_CONTENT_END, | 441 NOTIFICATION_CONTENT_END, |
435 }; | 442 }; |
436 | 443 |
437 } // namespace content | 444 } // namespace content |
438 | 445 |
439 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 446 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |