comparison dwt/browser/DownloadFactory.d @ 345:5abc6f7f7a95

Fixups
author John Reimer <terminal.node@gmail.com>
date Tue, 28 Oct 2008 22:07:01 -0700
parents 942da4b6558a
children 9a4d7706df52
comparison
equal deleted inserted replaced
344:8198e6052012 345:5abc6f7f7a95
17 import dwt.internal.mozilla.Common; 17 import dwt.internal.mozilla.Common;
18 //import dwt.internal.mozilla.XPCOMObject; 18 //import dwt.internal.mozilla.XPCOMObject;
19 import dwt.internal.mozilla.nsID; 19 import dwt.internal.mozilla.nsID;
20 import dwt.internal.mozilla.nsIFactory; 20 import dwt.internal.mozilla.nsIFactory;
21 import dwt.internal.mozilla.nsISupports; 21 import dwt.internal.mozilla.nsISupports;
22
23 import dwt.browser.Download;
22 24
23 class DownloadFactory : nsIFactory { 25 class DownloadFactory : nsIFactory {
24 int refCount = 0; 26 int refCount = 0;
25 27
26 this () {} 28 this () {}
61 return XPCOM.NS_ERROR_INVALID_ARG; 63 return XPCOM.NS_ERROR_INVALID_ARG;
62 auto download = new Download(); 64 auto download = new Download();
63 nsresult rv = download.QueryInterface( iid, result ); 65 nsresult rv = download.QueryInterface( iid, result );
64 if (XPCOM.NS_FAILED(rv)) { 66 if (XPCOM.NS_FAILED(rv)) {
65 *result = null; 67 *result = null;
66 delete promptService; 68 delete download;
67 } 69 }
68 return rv; 70 return rv;
69 } 71 }
70 72
71 nsresult LockFactory (int lock) { 73 nsresult LockFactory (int lock) {