From 1ec170893e481d2151733b2c5ea54e917fef070e Mon Sep 17 00:00:00 2001 From: "neil@parkwaycc.co.uk" Date: Mon, 13 Aug 2007 18:12:16 -0700 Subject: [PATCH] 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 --- toolkit/components/downloads/public/nsIDownload.idl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/toolkit/components/downloads/public/nsIDownload.idl b/toolkit/components/downloads/public/nsIDownload.idl index 2f6e5df59624..d4e22c2d826a 100644 --- a/toolkit/components/downloads/public/nsIDownload.idl +++ b/toolkit/components/downloads/public/nsIDownload.idl @@ -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