nsIViewSourceChannel.idl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  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. #include "nsIChannel.idl"
  6. [uuid(3e9800f8-edb7-4c9a-9285-09b4f045b019)]
  7. interface nsIViewSourceChannel : nsIChannel
  8. {
  9. /**
  10. * The actual (MIME) content type of the data.
  11. *
  12. * nsIViewSourceChannel returns a content type of
  13. * "application/x-view-source" if you ask it for the contentType
  14. * attribute.
  15. *
  16. * However, callers interested in finding out or setting the
  17. * actual content type can utilize this attribute.
  18. */
  19. attribute ACString originalContentType;
  20. /**
  21. * Whether the channel was created to view the source of a srcdoc document.
  22. */
  23. readonly attribute boolean isSrcdocChannel;
  24. /**
  25. * Set to indicate the base URI. If this channel is a srcdoc channel, it
  26. * returns the base URI provided by the embedded channel. It is used to
  27. * provide an indication of the base URI in circumstances where it isn't
  28. * otherwise recoverable. Returns null when it isn't set and isn't a
  29. * srcdoc channel.
  30. */
  31. attribute nsIURI baseURI;
  32. };