/work/obj-fuzz/dist/include/nsIRequest.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsIRequest.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIRequest_h__ |
6 | | #define __gen_nsIRequest_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsISupports_h__ |
10 | | #include "nsISupports.h" |
11 | | #endif |
12 | | |
13 | | #include "js/GCAnnotations.h" |
14 | | |
15 | | /* For IDL files that don't want to include root IDL files. */ |
16 | | #ifndef NS_NO_VTABLE |
17 | | #define NS_NO_VTABLE |
18 | | #endif |
19 | | class nsILoadGroup; /* forward declaration */ |
20 | | |
21 | | typedef uint32_t nsLoadFlags; |
22 | | |
23 | | |
24 | | /* starting interface: nsIRequest */ |
25 | | #define NS_IREQUEST_IID_STR "ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe" |
26 | | |
27 | | #define NS_IREQUEST_IID \ |
28 | | {0xef6bfbd2, 0xfd46, 0x48d8, \ |
29 | | { 0x96, 0xb7, 0x9f, 0x8f, 0x0f, 0xd3, 0x87, 0xfe }} |
30 | | |
31 | | class NS_NO_VTABLE nsIRequest : public nsISupports { |
32 | | public: |
33 | | |
34 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREQUEST_IID) |
35 | | |
36 | | /* readonly attribute AUTF8String name; */ |
37 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsACString& aName) = 0; |
38 | | |
39 | | /* boolean isPending (); */ |
40 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsPending(bool *_retval) = 0; |
41 | | |
42 | | /* readonly attribute nsresult status; */ |
43 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatus(nsresult *aStatus) = 0; |
44 | | |
45 | | /* void cancel (in nsresult aStatus); */ |
46 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Cancel(nsresult aStatus) = 0; |
47 | | |
48 | | /* void suspend (); */ |
49 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Suspend(void) = 0; |
50 | | |
51 | | /* void resume (); */ |
52 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Resume(void) = 0; |
53 | | |
54 | | /* attribute nsILoadGroup loadGroup; */ |
55 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) = 0; |
56 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) = 0; |
57 | | |
58 | | /* attribute nsLoadFlags loadFlags; */ |
59 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) = 0; |
60 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetLoadFlags(nsLoadFlags aLoadFlags) = 0; |
61 | | |
62 | | enum { |
63 | | LOAD_REQUESTMASK = 65535U, |
64 | | LOAD_NORMAL = 0U, |
65 | | LOAD_BACKGROUND = 1U, |
66 | | LOAD_HTML_OBJECT_DATA = 2U, |
67 | | LOAD_DOCUMENT_NEEDS_COOKIE = 4U, |
68 | | LOAD_DISABLE_TRR = 8U, |
69 | | INHIBIT_CACHING = 128U, |
70 | | INHIBIT_PERSISTENT_CACHING = 256U, |
71 | | LOAD_BYPASS_CACHE = 512U, |
72 | | LOAD_FROM_CACHE = 1024U, |
73 | | VALIDATE_ALWAYS = 2048U, |
74 | | VALIDATE_NEVER = 4096U, |
75 | | VALIDATE_ONCE_PER_SESSION = 8192U, |
76 | | LOAD_ANONYMOUS = 16384U, |
77 | | LOAD_FRESH_CONNECTION = 32768U |
78 | | }; |
79 | | |
80 | | }; |
81 | | |
82 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIRequest, NS_IREQUEST_IID) |
83 | | |
84 | | /* Use this macro when declaring classes that implement this interface. */ |
85 | | #define NS_DECL_NSIREQUEST \ |
86 | | NS_IMETHOD GetName(nsACString& aName) override; \ |
87 | | NS_IMETHOD IsPending(bool *_retval) override; \ |
88 | | NS_IMETHOD GetStatus(nsresult *aStatus) override; \ |
89 | | NS_IMETHOD Cancel(nsresult aStatus) override; \ |
90 | | NS_IMETHOD Suspend(void) override; \ |
91 | | NS_IMETHOD Resume(void) override; \ |
92 | | NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override; \ |
93 | | NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override; \ |
94 | | NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override; \ |
95 | | NS_IMETHOD SetLoadFlags(nsLoadFlags aLoadFlags) override; \ |
96 | | |
97 | | /* Use this macro when declaring the members of this interface when the |
98 | | class doesn't implement the interface. This is useful for forwarding. */ |
99 | | #define NS_DECL_NON_VIRTUAL_NSIREQUEST \ |
100 | | nsresult GetName(nsACString& aName); \ |
101 | | nsresult IsPending(bool *_retval); \ |
102 | | nsresult GetStatus(nsresult *aStatus); \ |
103 | | nsresult Cancel(nsresult aStatus); \ |
104 | | nsresult Suspend(void); \ |
105 | | nsresult Resume(void); \ |
106 | | nsresult GetLoadGroup(nsILoadGroup **aLoadGroup); \ |
107 | | nsresult SetLoadGroup(nsILoadGroup *aLoadGroup); \ |
108 | | nsresult GetLoadFlags(nsLoadFlags *aLoadFlags); \ |
109 | | nsresult SetLoadFlags(nsLoadFlags aLoadFlags); \ |
110 | | |
111 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
112 | | #define NS_FORWARD_NSIREQUEST(_to) \ |
113 | 0 | NS_IMETHOD GetName(nsACString& aName) override { return _to GetName(aName); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetName(nsTSubstring<char>&) Unexecuted instantiation: nsIconChannel::GetName(nsTSubstring<char>&) |
114 | 0 | NS_IMETHOD IsPending(bool *_retval) override { return _to IsPending(_retval); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::IsPending(bool*) Unexecuted instantiation: nsIconChannel::IsPending(bool*) |
115 | 0 | NS_IMETHOD GetStatus(nsresult *aStatus) override { return _to GetStatus(aStatus); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetStatus(nsresult*) Unexecuted instantiation: nsIconChannel::GetStatus(nsresult*) |
116 | 0 | NS_IMETHOD Cancel(nsresult aStatus) override { return _to Cancel(aStatus); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::Cancel(nsresult) Unexecuted instantiation: nsIconChannel::Cancel(nsresult) |
117 | 0 | NS_IMETHOD Suspend(void) override { return _to Suspend(); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::Suspend() Unexecuted instantiation: nsIconChannel::Suspend() |
118 | 0 | NS_IMETHOD Resume(void) override { return _to Resume(); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::Resume() Unexecuted instantiation: nsIconChannel::Resume() |
119 | 0 | NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return _to GetLoadGroup(aLoadGroup); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetLoadGroup(nsILoadGroup**) Unexecuted instantiation: nsIconChannel::GetLoadGroup(nsILoadGroup**) |
120 | 0 | NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override { return _to SetLoadGroup(aLoadGroup); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetLoadGroup(nsILoadGroup*) Unexecuted instantiation: nsIconChannel::SetLoadGroup(nsILoadGroup*) |
121 | 0 | NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override { return _to GetLoadFlags(aLoadFlags); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::GetLoadFlags(unsigned int*) Unexecuted instantiation: nsIconChannel::GetLoadFlags(unsigned int*) |
122 | 0 | NS_IMETHOD SetLoadFlags(nsLoadFlags aLoadFlags) override { return _to SetLoadFlags(aLoadFlags); } \ Unexecuted instantiation: mozilla::net::nsSecCheckWrapChannelBase::SetLoadFlags(unsigned int) Unexecuted instantiation: nsIconChannel::SetLoadFlags(unsigned int) |
123 | | |
124 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
125 | | #define NS_FORWARD_SAFE_NSIREQUEST(_to) \ |
126 | 0 | NS_IMETHOD GetName(nsACString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \ Unexecuted instantiation: nsAboutCache::Channel::GetName(nsTSubstring<char>&) Unexecuted instantiation: nsAboutCacheEntry::Channel::GetName(nsTSubstring<char>&) |
127 | 0 | NS_IMETHOD IsPending(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPending(_retval); } \ Unexecuted instantiation: nsAboutCache::Channel::IsPending(bool*) Unexecuted instantiation: nsAboutCacheEntry::Channel::IsPending(bool*) |
128 | 0 | NS_IMETHOD GetStatus(nsresult *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \ Unexecuted instantiation: nsAboutCache::Channel::GetStatus(nsresult*) Unexecuted instantiation: nsAboutCacheEntry::Channel::GetStatus(nsresult*) |
129 | 0 | NS_IMETHOD Cancel(nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aStatus); } \ Unexecuted instantiation: nsAboutCache::Channel::Cancel(nsresult) Unexecuted instantiation: nsAboutCacheEntry::Channel::Cancel(nsresult) |
130 | 0 | NS_IMETHOD Suspend(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Suspend(); } \ Unexecuted instantiation: nsAboutCache::Channel::Suspend() Unexecuted instantiation: nsAboutCacheEntry::Channel::Suspend() |
131 | 0 | NS_IMETHOD Resume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \ Unexecuted instantiation: nsAboutCache::Channel::Resume() Unexecuted instantiation: nsAboutCacheEntry::Channel::Resume() |
132 | 0 | NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \ Unexecuted instantiation: nsAboutCache::Channel::GetLoadGroup(nsILoadGroup**) Unexecuted instantiation: nsAboutCacheEntry::Channel::GetLoadGroup(nsILoadGroup**) |
133 | 0 | NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadGroup(aLoadGroup); } \ Unexecuted instantiation: nsAboutCache::Channel::SetLoadGroup(nsILoadGroup*) Unexecuted instantiation: nsAboutCacheEntry::Channel::SetLoadGroup(nsILoadGroup*) |
134 | 0 | NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadFlags(aLoadFlags); } \ Unexecuted instantiation: nsAboutCache::Channel::GetLoadFlags(unsigned int*) Unexecuted instantiation: nsAboutCacheEntry::Channel::GetLoadFlags(unsigned int*) |
135 | 0 | NS_IMETHOD SetLoadFlags(nsLoadFlags aLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadFlags(aLoadFlags); } \ Unexecuted instantiation: nsAboutCache::Channel::SetLoadFlags(unsigned int) Unexecuted instantiation: nsAboutCacheEntry::Channel::SetLoadFlags(unsigned int) |
136 | | |
137 | | |
138 | | #endif /* __gen_nsIRequest_h__ */ |