1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/base/public/nsIMultiPartChannel.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIChannel; 1.12 + 1.13 +/** 1.14 + * An interface to access the the base channel 1.15 + * associated with a MultiPartChannel. 1.16 + */ 1.17 + 1.18 +[scriptable, uuid(4b04e835-d131-42af-8bf0-74289f99374f)] 1.19 +interface nsIMultiPartChannel : nsISupports 1.20 +{ 1.21 + /** 1.22 + * readonly attribute to access the underlying channel 1.23 + */ 1.24 + readonly attribute nsIChannel baseChannel; 1.25 + 1.26 + /** 1.27 + * Attribute guaranteed to be different for different parts of 1.28 + * the same multipart document. 1.29 + */ 1.30 + readonly attribute uint32_t partID; 1.31 + 1.32 + /** 1.33 + * Set to true when onStopRequest is received from the base channel. 1.34 + * The listener can check this from its onStopRequest to determine 1.35 + * whether more data can be expected. 1.36 + */ 1.37 + readonly attribute boolean isLastPart; 1.38 +};