mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 455913 - nsIHelperAppLauncher should provide info about content length. r+sr=cbiesinger.
This commit is contained in:
parent
39cccc23b7
commit
35a7c2aa13
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user