Bug 455913 - nsIHelperAppLauncher should provide info about content length. r+sr=cbiesinger.
This commit is contained in:
Родитель
6916c71247
Коммит
16472415ff
|
@ -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...
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче