nsCURILoader.idl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* -*- Mode: IDL; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsIURILoader.idl"
  7. /*
  8. nsCURILoader implements:
  9. -------------------------
  10. nsIURILoader
  11. */
  12. %{ C++
  13. // {9F6D5D40-90E7-11d3-AF93-00A024FFC08C} -
  14. #define NS_URI_LOADER_CID \
  15. { 0x9f6d5d40, 0x90e7, 0x11d3, { 0xaf, 0x80, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c } }
  16. #define NS_URI_LOADER_CONTRACTID \
  17. "@mozilla.org/uriloader;1"
  18. /* 057b04d0-0ccf-11d2-beba-00805f8a66dc */
  19. #define NS_DOCUMENTLOADER_SERVICE_CID \
  20. { 0x057b04d0, 0x0ccf, 0x11d2,{0xbe, 0xba, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0xdc}}
  21. #define NS_DOCUMENTLOADER_SERVICE_CONTRACTID \
  22. "@mozilla.org/docloaderservice;1"
  23. #define NS_CONTENT_HANDLER_CONTRACTID "@mozilla.org/uriloader/content-handler;1"
  24. #define NS_CONTENT_HANDLER_CONTRACTID_PREFIX NS_CONTENT_HANDLER_CONTRACTID "?type="
  25. /**
  26. * A category where content listeners can register. The name of the entry must
  27. * be the content that this listener wants to handle, the value must be a
  28. * contract ID for the listener. It will be created using createInstance (not
  29. * getService).
  30. *
  31. * Listeners added this way are tried after the initial target of the load and
  32. * after explicitly registered listeners (nsIURILoader::registerContentListener).
  33. *
  34. * These listeners must implement at least nsIURIContentListener (and
  35. * nsISupports).
  36. *
  37. * @see nsICategoryManager
  38. * @see nsIURIContentListener
  39. */
  40. #define NS_CONTENT_LISTENER_CATEGORYMANAGER_ENTRY "external-uricontentlisteners"
  41. %}