1 module org.eclipse.swt.internal.mozilla.nsIRequest;
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 import org.eclipse.swt.internal.mozilla.nsILoadGroup;
9 import org.eclipse.swt.internal.mozilla.nsStringAPI;
10 
11 alias PRUint32 nsLoadFlags;
12 
13 const char[] NS_IREQUEST_IID_STR = "ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe";
14 
15 const nsIID NS_IREQUEST_IID= 
16   {0xef6bfbd2, 0xfd46, 0x48d8, 
17     [ 0x96, 0xb7, 0x9f, 0x8f, 0x0f, 0xd3, 0x87, 0xfe ]};
18 
19 interface nsIRequest : nsISupports {
20 
21   static const char[] IID_STR = NS_IREQUEST_IID_STR;
22   static const nsIID IID = NS_IREQUEST_IID;
23 
24 extern(System):
25   nsresult GetName(nsACString * aName);
26   nsresult IsPending(PRBool *_retval);
27   nsresult GetStatus(nsresult *aStatus);
28   nsresult Cancel(nsresult aStatus);
29   nsresult Suspend();
30   nsresult Resume();
31   nsresult GetLoadGroup(nsILoadGroup  *aLoadGroup);
32   nsresult SetLoadGroup(nsILoadGroup  aLoadGroup);
33   nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
34   nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
35 
36   enum { LOAD_NORMAL = 0U };
37   enum { LOAD_BACKGROUND = 1U };
38   enum { INHIBIT_CACHING = 128U };
39   enum { INHIBIT_PERSISTENT_CACHING = 256U };
40   enum { LOAD_BYPASS_CACHE = 512U };
41   enum { LOAD_FROM_CACHE = 1024U };
42   enum { VALIDATE_ALWAYS = 2048U };
43   enum { VALIDATE_NEVER = 4096U };
44   enum { VALIDATE_ONCE_PER_SESSION = 8192U };
45 
46 }
47