michael@0: /* -*- Mode: C++; tab-width: 2; 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: [scriptable, uuid(C1B1F426-7E83-4759-9F88-0E1B17F49366)] michael@0: interface nsIByteRangeRequest : nsISupports michael@0: { michael@0: /** michael@0: * Returns true IFF this request is a byte range request, otherwise it michael@0: * returns false (This is effectively the same as checking to see if michael@0: * |startRequest| is zero and |endRange| is the content length.) michael@0: */ michael@0: readonly attribute boolean isByteRangeRequest; michael@0: michael@0: /** michael@0: * Absolute start position in remote file for this request. michael@0: */ michael@0: readonly attribute long long startRange; michael@0: michael@0: /** michael@0: * Absolute end postion in remote file for this request michael@0: */ michael@0: readonly attribute long long endRange; michael@0: };