Bug 245725 Make downloads display an approximation to the current transfer rate rather than the overall average speed p=son.le0@gmail.com r=biesi sr=me

This commit is contained in:
neil@parkwaycc.co.uk 2007-08-13 18:12:16 -07:00
Родитель 854dcb4246
Коммит 1ec170893e
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -45,7 +45,7 @@ interface nsICancelable;
interface nsIWebProgressListener;
interface nsIMIMEInfo;
[scriptable, uuid(a60c9199-2e21-434f-a43b-ab954ea2f6b7)]
[scriptable, uuid(07910093-d70b-4621-9888-b811f42293c3)]
interface nsIDownload : nsITransfer {
/**
@ -95,7 +95,12 @@ interface nsIDownload : nsITransfer {
* The time a transfer was started.
*/
readonly attribute long long startTime;
/**
* The speed of the transfer in bytes/sec.
*/
readonly attribute double speed;
/**
* Optional. If set, it will contain the target's relevant MIME information.
* This includes it's MIME Type, helper app, and whether that helper should be