Bug 455913 - nsIHelperAppLauncher should provide info about content length. r+sr=cbiesinger.

This commit is contained in:
Oleg Romashin 2008-09-29 23:37:49 -05:00
parent 39cccc23b7
commit 35a7c2aa13
2 changed files with 11 additions and 0 deletions

View File

@ -1154,6 +1154,12 @@ NS_IMETHODIMP nsExternalAppHandler::GetTimeDownloadStarted(PRTime* aTime)
return NS_OK;
}
NS_IMETHODIMP nsExternalAppHandler::GetContentLength(PRInt64 *aContentLength)
{
*aContentLength = mContentLength;
return NS_OK;
}
NS_IMETHODIMP nsExternalAppHandler::CloseProgressWindow()
{
// release extra state...

View File

@ -166,4 +166,9 @@ interface nsIHelperAppLauncher : nsICancelable
* Time when the download started
*/
readonly attribute PRTime timeDownloadStarted;
/**
* The download content length, or -1 if the length is not available.
*/
readonly attribute PRInt64 contentLength;
};