Hi Boris, Thanks for help you are providing to me..
I have implemented nsIURIContentListener interface. These are the functions I have implemented. 1. OnStartURIOpen. 2. IsPreferred. 3. DoContent. 4. CanHandleContent. 5. GetLoadCookie. 6. SetLoadCookie. 7. GetParentContentListener. 8. SetParentContentListener. I have written nothing in these functions except returning NS_OK. Now when I click on a link pointing to a normal page i.e. html, htm etc. I got OnStartURIOpen callback and when I click on a link pointing to a .zip file I got two callbacks i.e. OnStartURIOpen and IsPreferred. I am not getting any other callbacks like CanHandleContent, DoContent etc. so how can I got that my browser doesn't supports .zip file and I need to ask to save file locally? Am I doing something wrong? or I need to implement any other interface that will provide me callback about browser can't handle specific content. As you specified "If browser can't handle the content it will ask me what to do" here I want to know that by which callback and interface browser will notify me about it. Thanks... Boris Zbarsky wrote: > > dev_india wrote: >> I look for many interfaces to implement downloading and after a lot of >> research I didn't find any step by step document to implement it. >> can you please provide any link for the same. > > I don't believe there is one. Is the interface documentation > insufficient? If so, do you have specific questions? > >> Is there already implemented components? > > Well, existing browsers implement the interfaces, so yes... > >> Which I can use instead of implementing each interfaces. > > No idea how reusable those implementations are, though. But you could > read them to see how things might hang together. > > -Boris > _______________________________________________ > dev-embedding mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-embedding > > -- View this message in context: http://www.nabble.com/How-can-I-get-information-about-a-URI-being-opened--tp21804938p21851145.html Sent from the Mozilla - Embedding mailing list archive at Nabble.com. _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
