nsDocShellCID.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsDocShellCID_h__
  6. #define nsDocShellCID_h__
  7. #define NS_GLOBALHISTORY2_CONTRACTID "@mozilla.org/browser/global-history;2"
  8. /**
  9. * A contract for a service that will track download history. This can be
  10. * overridden by embedders if they would like to track additional information
  11. * about downloads.
  12. *
  13. * @implements nsIDownloadHistory
  14. */
  15. #define NS_DOWNLOADHISTORY_CONTRACTID "@mozilla.org/browser/download-history;1"
  16. /**
  17. * A contract that can be used to get a service that provides
  18. * meta-information about nsIWebNavigation objects' capabilities.
  19. * @implements nsIWebNavigationInfo
  20. */
  21. #define NS_WEBNAVIGATION_INFO_CONTRACTID "@mozilla.org/webnavigation-info;1"
  22. /**
  23. * Class and contract ID for the docshell. This is the container for a web
  24. * navigation context. It implements too many interfaces to count, and the
  25. * exact ones keep changing; if they stabilize somewhat that will get
  26. * documented.
  27. */
  28. #define NS_DOCSHELL_CID \
  29. { 0xf1eac762, 0x87e9, 0x11d3, \
  30. { 0xaf, 0x80, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c } }
  31. #define NS_DOCSHELL_CONTRACTID "@mozilla.org/docshell/html;1"
  32. /**
  33. * Contract ID to obtain the IHistory interface. This is a non-scriptable
  34. * interface used to interact with history in an asynchronous manner.
  35. */
  36. #define NS_IHISTORY_CONTRACTID "@mozilla.org/browser/history;1"
  37. /**
  38. * A contract for a service that is used for finding
  39. * platform-specific applications for handling particular URLs.
  40. *
  41. * @implements nsIExternalURLHandlerService
  42. */
  43. #define NS_EXTERNALURLHANDLERSERVICE_CONTRACTID \
  44. "@mozilla.org/uriloader/external-url-handler-service;1"
  45. /**
  46. * An observer service topic that can be listened to to catch creation
  47. * of content browsing areas (both toplevel ones and subframes). The
  48. * subject of the notification will be the nsIWebNavigation being
  49. * created. At this time the additional data wstring is not defined
  50. * to be anything in particular.
  51. */
  52. #define NS_WEBNAVIGATION_CREATE "webnavigation-create"
  53. /**
  54. * An observer service topic that can be listened to to catch creation
  55. * of chrome browsing areas (both toplevel ones and subframes). The
  56. * subject of the notification will be the nsIWebNavigation being
  57. * created. At this time the additional data wstring is not defined
  58. * to be anything in particular.
  59. */
  60. #define NS_CHROME_WEBNAVIGATION_CREATE "chrome-webnavigation-create"
  61. /**
  62. * An observer service topic that can be listened to to catch destruction
  63. * of content browsing areas (both toplevel ones and subframes). The
  64. * subject of the notification will be the nsIWebNavigation being
  65. * destroyed. At this time the additional data wstring is not defined
  66. * to be anything in particular.
  67. */
  68. #define NS_WEBNAVIGATION_DESTROY "webnavigation-destroy"
  69. /**
  70. * An observer service topic that can be listened to to catch destruction
  71. * of chrome browsing areas (both toplevel ones and subframes). The
  72. * subject of the notification will be the nsIWebNavigation being
  73. * destroyed. At this time the additional data wstring is not defined
  74. * to be anything in particular.
  75. */
  76. #define NS_CHROME_WEBNAVIGATION_DESTROY "chrome-webnavigation-destroy"
  77. #endif // nsDocShellCID_h__