mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Download manager. Not part of build. a=asa
This commit is contained in:
parent
dc69a8011a
commit
fa6c821fe5
@ -36,15 +36,16 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsIWebProgressListener.idl"
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIURI;
|
||||
interface nsILocalFile;
|
||||
interface nsIObserver;
|
||||
interface nsIWebBrowserPersist;
|
||||
interface nsIWebProgressListener;
|
||||
|
||||
[scriptable, uuid(06cb92f2-1dd2-11b2-95f2-96dfdfb804a1)]
|
||||
interface nsIDownload : nsIWebProgressListener {
|
||||
interface nsIDownload : nsISupports {
|
||||
|
||||
void init(in nsIURI aSource,
|
||||
in nsILocalFile aTarget,
|
||||
|
@ -98,7 +98,8 @@ private:
|
||||
friend class nsDownload;
|
||||
};
|
||||
|
||||
class nsDownload : public nsIDownload
|
||||
class nsDownload : public nsIDownload,
|
||||
public nsIWebProgressListener
|
||||
{
|
||||
public:
|
||||
NS_DECL_NSIWEBPROGRESSLISTENER
|
||||
|
@ -50,7 +50,6 @@ public:
|
||||
virtual ~nsDownloadProxy() { };
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_FORWARD_NSIWEBPROGRESSLISTENER(mInner->)
|
||||
|
||||
NS_IMETHODIMP Init(nsIURI* aSource,
|
||||
nsILocalFile* aTarget,
|
||||
@ -141,7 +140,7 @@ private:
|
||||
nsCOMPtr<nsIDownload> mInner;
|
||||
};
|
||||
|
||||
NS_IMPL_ISUPPORTS2(nsDownloadProxy, nsIDownload, nsIWebProgressListener)
|
||||
NS_IMPL_ISUPPORTS1(nsDownloadProxy, nsIDownload)
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user