gecko-dev/netwerk/base/public/nsIByteRangeRequest.idl

46 lines
1.5 KiB
Plaintext
Raw Normal View History

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
[scriptable, uuid(39befdb9-fa76-469b-85dc-a617b81f26eb)]
interface nsIByteRangeRequest : nsISupports
{
/**
* Returns true IFF this request is a byte range request, otherwise it
* returns false (This is effectively the same as checking to see if
* |startRequest| is zero and |endRange| is the content length.)
*/
readonly attribute boolean isByteRangeRequest;
/**
* Absolute start position in remote file for this request.
*/
readonly attribute long startRange;
/**
* Absolute end postion in remote file for this request
*/
readonly attribute long endRange;
};