Mercurial > projects > dwt-linux
diff dwt/internal/mozilla/nsIRequest.d @ 272:dd63eb078d7a
xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 05:32:53 -0700 |
parents | |
children | 942da4b6558a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla/nsIRequest.d Fri Jul 18 05:32:53 2008 -0700 @@ -0,0 +1,46 @@ +module dwt.internal.mozilla.nsIRequest; + +import dwt.internal.mozilla.Common; +import dwt.internal.mozilla.nsID; +import dwt.internal.mozilla.nsISupports; +import dwt.internal.mozilla.nsILoadGroup; +import dwt.internal.mozilla.nsStringAPI; + +alias PRUint32 nsLoadFlags; + +const char[] NS_IREQUEST_IID_STR = "ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe"; + +const nsIID NS_IREQUEST_IID= + {0xef6bfbd2, 0xfd46, 0x48d8, + [ 0x96, 0xb7, 0x9f, 0x8f, 0x0f, 0xd3, 0x87, 0xfe ]}; + +extern(System) + +interface nsIRequest : nsISupports { + + static const char[] IID_STR = NS_IREQUEST_IID_STR; + static const nsIID IID = NS_IREQUEST_IID; + + nsresult GetName(nsACString * aName); + nsresult IsPending(PRBool *_retval); + nsresult GetStatus(nsresult *aStatus); + nsresult Cancel(nsresult aStatus); + nsresult Suspend(); + nsresult Resume(); + nsresult GetLoadGroup(nsILoadGroup *aLoadGroup); + nsresult SetLoadGroup(nsILoadGroup aLoadGroup); + nsresult GetLoadFlags(nsLoadFlags *aLoadFlags); + nsresult SetLoadFlags(nsLoadFlags aLoadFlags); + + enum { LOAD_NORMAL = 0U }; + enum { LOAD_BACKGROUND = 1U }; + enum { INHIBIT_CACHING = 128U }; + enum { INHIBIT_PERSISTENT_CACHING = 256U }; + enum { LOAD_BYPASS_CACHE = 512U }; + enum { LOAD_FROM_CACHE = 1024U }; + enum { VALIDATE_ALWAYS = 2048U }; + enum { VALIDATE_NEVER = 4096U }; + enum { VALIDATE_ONCE_PER_SESSION = 8192U }; + +} +