User:Brahmana/Download Control Flow

From MozillaWiki
< User:Brahmana
Revision as of 00:24, 13 May 2007 by Brahmana (talk | contribs) (First(Second) write up)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here I will try to write the actual control in case of downloads, as in which component (in Biesi's Diagram) is an instance of which class, which function calls what other function and what arguments are passed and what they mean. It will take a lot of time before it is complete and completely correct. I will have to do this as I cannot rely on my memory. I will putting in data as and when I understand some code and get some info from IRC.


Unresolved Control somehow comes to nsExternalHelperAppService(nsEHAS defined in nsEHAS.cpp), probably from nsHelperAppService. From nsEHAS it goes to the nsITransfer (nsEHAS.cpp#2217). From there finally it comes to nsDownloadProxy(nsDP.h).

And the story continues.....

nsDP has a private member mInner, which actually is a nsCOMPtr<nsIDownload>.