1 module org.eclipse.swt.internal.mozilla.nsIURIContentListener;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 
9 import org.eclipse.swt.internal.mozilla.nsIRequest;
10 import org.eclipse.swt.internal.mozilla.nsIStreamListener;
11 import org.eclipse.swt.internal.mozilla.nsIURI; 
12 
13 const char[] NS_IURICONTENTLISTENER_IID_STR = "94928ab3-8b63-11d3-989d-001083010e9b";
14 
15 const nsIID NS_IURICONTENTLISTENER_IID= 
16   {0x94928ab3, 0x8b63, 0x11d3, 
17     [ 0x98, 0x9d, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b ]};
18 
19 interface nsIURIContentListener : nsISupports {
20 
21   static const char[] IID_STR = NS_IURICONTENTLISTENER_IID_STR;
22   static const nsIID IID = NS_IURICONTENTLISTENER_IID;
23 
24 extern(System):
25   nsresult OnStartURIOpen(nsIURI aURI, PRBool *_retval);
26   nsresult DoContent(char *aContentType, PRBool aIsContentPreferred, nsIRequest aRequest, nsIStreamListener *aContentHandler, PRBool *_retval);
27   nsresult IsPreferred(char *aContentType, char **aDesiredContentType, PRBool *_retval);
28   nsresult CanHandleContent(char *aContentType, PRBool aIsContentPreferred, char **aDesiredContentType, PRBool *_retval);
29   nsresult GetLoadCookie(nsISupports  *aLoadCookie);
30   nsresult SetLoadCookie(nsISupports  aLoadCookie);
31   nsresult GetParentContentListener(nsIURIContentListener  *aParentContentListener);
32   nsresult SetParentContentListener(nsIURIContentListener  aParentContentListener);
33 
34 }
35