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