зеркало из https://github.com/mozilla/gecko-dev.git
Bug 536324 part 1 - Change nsIChannel's contentLength to be 64-bit. r=jduell sr=jst
This commit is contained in:
Родитель
74c7681f33
Коммит
b7fddb475b
|
@ -24,7 +24,7 @@ interface nsIStreamListener;
|
||||||
*
|
*
|
||||||
* This interface must be used only from the XPCOM main thread.
|
* This interface must be used only from the XPCOM main thread.
|
||||||
*/
|
*/
|
||||||
[scriptable, uuid(98f3b51b-bb55-4276-a43c-db636f8d77e3)]
|
[scriptable, uuid(2a8a7237-c1e2-4de7-b669-2002af29e42d)]
|
||||||
interface nsIChannel : nsIRequest
|
interface nsIChannel : nsIRequest
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -119,13 +119,11 @@ interface nsIChannel : nsIRequest
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The length of the data associated with the channel if available. A value
|
* The length of the data associated with the channel if available. A value
|
||||||
* of -1 indicates that the content length is unknown.
|
* of -1 indicates that the content length is unknown. Note that this is a
|
||||||
*
|
* 64-bit value and obsoletes the "content-length" property used on some
|
||||||
* Callers should prefer getting the "content-length" property
|
* channels.
|
||||||
* as 64-bit value by QIing the channel to nsIPropertyBag2,
|
|
||||||
* if that interface is exposed by the channel.
|
|
||||||
*/
|
*/
|
||||||
attribute long contentLength;
|
attribute int64_t contentLength;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Synchronously open the channel.
|
* Synchronously open the channel.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче