nsIMultiPartChannel.idl 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 "nsISupports.idl"
  6. interface nsIChannel;
  7. /**
  8. * An interface to access the the base channel
  9. * associated with a MultiPartChannel.
  10. */
  11. [scriptable, uuid(4fefb490-5567-11e5-a837-0800200c9a66)]
  12. interface nsIMultiPartChannel : nsISupports
  13. {
  14. /**
  15. * readonly attribute to access the underlying channel
  16. */
  17. readonly attribute nsIChannel baseChannel;
  18. /**
  19. * Attribute guaranteed to be different for different parts of
  20. * the same multipart document.
  21. */
  22. readonly attribute uint32_t partID;
  23. /**
  24. * Set to true when onStopRequest is received from the base channel.
  25. * The listener can check this from its onStopRequest to determine
  26. * whether more data can be expected.
  27. */
  28. readonly attribute boolean isLastPart;
  29. };