michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIChannel; michael@0: michael@0: /** michael@0: * An interface to access the the base channel michael@0: * associated with a MultiPartChannel. michael@0: */ michael@0: michael@0: [scriptable, uuid(4b04e835-d131-42af-8bf0-74289f99374f)] michael@0: interface nsIMultiPartChannel : nsISupports michael@0: { michael@0: /** michael@0: * readonly attribute to access the underlying channel michael@0: */ michael@0: readonly attribute nsIChannel baseChannel; michael@0: michael@0: /** michael@0: * Attribute guaranteed to be different for different parts of michael@0: * the same multipart document. michael@0: */ michael@0: readonly attribute uint32_t partID; michael@0: michael@0: /** michael@0: * Set to true when onStopRequest is received from the base channel. michael@0: * The listener can check this from its onStopRequest to determine michael@0: * whether more data can be expected. michael@0: */ michael@0: readonly attribute boolean isLastPart; michael@0: };