Blame netwerk/base/nsIMultiPartChannel.idl

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