netwerk/base/public/nsIMultiPartChannel.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     6 #include "nsISupports.idl"
     8 interface nsIChannel;
    10 /**
    11  * An interface to access the the base channel 
    12  * associated with a MultiPartChannel.
    13  */
    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;
    23     /**
    24      * Attribute guaranteed to be different for different parts of
    25      * the same multipart document.
    26      */
    27     readonly attribute uint32_t partID;
    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 };

mercurial