/work/obj-fuzz/dist/include/nsILoadContextInfo.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/base/nsILoadContextInfo.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsILoadContextInfo_h__ |
6 | | #define __gen_nsILoadContextInfo_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsISupports_h__ |
10 | | #include "nsISupports.h" |
11 | | #endif |
12 | | |
13 | | #include "js/Value.h" |
14 | | |
15 | | #include "js/GCAnnotations.h" |
16 | | |
17 | | /* For IDL files that don't want to include root IDL files. */ |
18 | | #ifndef NS_NO_VTABLE |
19 | | #define NS_NO_VTABLE |
20 | | #endif |
21 | | #include "mozilla/BasePrincipal.h" |
22 | | class nsILoadContext; /* forward declaration */ |
23 | | |
24 | | class nsIDOMWindow; /* forward declaration */ |
25 | | |
26 | | |
27 | | /* starting interface: nsILoadContextInfo */ |
28 | | #define NS_ILOADCONTEXTINFO_IID_STR "555e2f8a-a1f6-41dd-88ca-ed4ed6b98a22" |
29 | | |
30 | | #define NS_ILOADCONTEXTINFO_IID \ |
31 | | {0x555e2f8a, 0xa1f6, 0x41dd, \ |
32 | | { 0x88, 0xca, 0xed, 0x4e, 0xd6, 0xb9, 0x8a, 0x22 }} |
33 | | |
34 | | class nsILoadContextInfo : public nsISupports { |
35 | | public: |
36 | | |
37 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOADCONTEXTINFO_IID) |
38 | | |
39 | | enum { |
40 | | NO_APP_ID = 0U, |
41 | | UNKNOWN_APP_ID = 4294967295U |
42 | | }; |
43 | | |
44 | | /* readonly attribute boolean isPrivate; */ |
45 | | NS_IMETHOD GetIsPrivate(bool *aIsPrivate) = 0; |
46 | | |
47 | | /* readonly attribute boolean isAnonymous; */ |
48 | | NS_IMETHOD GetIsAnonymous(bool *aIsAnonymous) = 0; |
49 | | |
50 | | /* [implicit_jscontext] readonly attribute jsval originAttributes; */ |
51 | | NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) = 0; |
52 | | |
53 | | /* [binaryname(OriginAttributesPtr),noscript,nostdcall,notxpcom] OriginAttributesNativePtr binaryOriginAttributesPtr (); */ |
54 | | virtual const mozilla::OriginAttributes* OriginAttributesPtr(void) = 0; |
55 | | |
56 | | /** |
57 | | * De-XPCOMed getters |
58 | | */ |
59 | | bool IsPrivate() |
60 | 0 | { |
61 | 0 | bool pb; |
62 | 0 | GetIsPrivate(&pb); |
63 | 0 | return pb; |
64 | 0 | } |
65 | | bool IsAnonymous() |
66 | 0 | { |
67 | 0 | bool anon; |
68 | 0 | GetIsAnonymous(&anon); |
69 | 0 | return anon; |
70 | 0 | } |
71 | | bool Equals(nsILoadContextInfo *aOther) |
72 | 0 | { |
73 | 0 | return IsAnonymous() == aOther->IsAnonymous() && |
74 | 0 | *OriginAttributesPtr() == *aOther->OriginAttributesPtr(); |
75 | 0 | } |
76 | | }; |
77 | | |
78 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsILoadContextInfo, NS_ILOADCONTEXTINFO_IID) |
79 | | |
80 | | /* Use this macro when declaring classes that implement this interface. */ |
81 | | #define NS_DECL_NSILOADCONTEXTINFO \ |
82 | | NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override; \ |
83 | | NS_IMETHOD GetIsAnonymous(bool *aIsAnonymous) override; \ |
84 | | NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override; \ |
85 | | virtual const mozilla::OriginAttributes* OriginAttributesPtr(void) override; \ |
86 | | |
87 | | /* Use this macro when declaring the members of this interface when the |
88 | | class doesn't implement the interface. This is useful for forwarding. */ |
89 | | #define NS_DECL_NON_VIRTUAL_NSILOADCONTEXTINFO \ |
90 | | nsresult GetIsPrivate(bool *aIsPrivate); \ |
91 | | nsresult GetIsAnonymous(bool *aIsAnonymous); \ |
92 | | nsresult GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes); \ |
93 | | const mozilla::OriginAttributes* OriginAttributesPtr(void); \ |
94 | | |
95 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
96 | | #define NS_FORWARD_NSILOADCONTEXTINFO(_to) \ |
97 | | NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override { return _to GetIsPrivate(aIsPrivate); } \ |
98 | | NS_IMETHOD GetIsAnonymous(bool *aIsAnonymous) override { return _to GetIsAnonymous(aIsAnonymous); } \ |
99 | | NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return _to GetOriginAttributes(cx, aOriginAttributes); } \ |
100 | | virtual const mozilla::OriginAttributes* OriginAttributesPtr(void) override { return _to OriginAttributesPtr(); } \ |
101 | | |
102 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
103 | | #define NS_FORWARD_SAFE_NSILOADCONTEXTINFO(_to) \ |
104 | | NS_IMETHOD GetIsPrivate(bool *aIsPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPrivate(aIsPrivate); } \ |
105 | | NS_IMETHOD GetIsAnonymous(bool *aIsAnonymous) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAnonymous(aIsAnonymous); } \ |
106 | | NS_IMETHOD GetOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginAttributes(cx, aOriginAttributes); } \ |
107 | | virtual const mozilla::OriginAttributes* OriginAttributesPtr(void) override; \ |
108 | | |
109 | | |
110 | | /* starting interface: nsILoadContextInfoFactory */ |
111 | | #define NS_ILOADCONTEXTINFOFACTORY_IID_STR "c1c7023d-4318-4f99-8307-b5ccf0558793" |
112 | | |
113 | | #define NS_ILOADCONTEXTINFOFACTORY_IID \ |
114 | | {0xc1c7023d, 0x4318, 0x4f99, \ |
115 | | { 0x83, 0x07, 0xb5, 0xcc, 0xf0, 0x55, 0x87, 0x93 }} |
116 | | |
117 | | class NS_NO_VTABLE nsILoadContextInfoFactory : public nsISupports { |
118 | | public: |
119 | | |
120 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOADCONTEXTINFOFACTORY_IID) |
121 | | |
122 | | /* readonly attribute nsILoadContextInfo default; */ |
123 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefault(nsILoadContextInfo **aDefault) = 0; |
124 | | |
125 | | /* readonly attribute nsILoadContextInfo private; */ |
126 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrivate(nsILoadContextInfo **aPrivate) = 0; |
127 | | |
128 | | /* readonly attribute nsILoadContextInfo anonymous; */ |
129 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAnonymous(nsILoadContextInfo **aAnonymous) = 0; |
130 | | |
131 | | /* [implicit_jscontext] nsILoadContextInfo custom (in boolean aAnonymous, in jsval aOriginAttributes); */ |
132 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Custom(bool aAnonymous, JS::HandleValue aOriginAttributes, JSContext* cx, nsILoadContextInfo **_retval) = 0; |
133 | | |
134 | | /* nsILoadContextInfo fromLoadContext (in nsILoadContext aLoadContext, in boolean aAnonymous); */ |
135 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FromLoadContext(nsILoadContext *aLoadContext, bool aAnonymous, nsILoadContextInfo **_retval) = 0; |
136 | | |
137 | | /* nsILoadContextInfo fromWindow (in nsIDOMWindow aWindow, in boolean aAnonymous); */ |
138 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FromWindow(nsIDOMWindow *aWindow, bool aAnonymous, nsILoadContextInfo **_retval) = 0; |
139 | | |
140 | | }; |
141 | | |
142 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsILoadContextInfoFactory, NS_ILOADCONTEXTINFOFACTORY_IID) |
143 | | |
144 | | /* Use this macro when declaring classes that implement this interface. */ |
145 | | #define NS_DECL_NSILOADCONTEXTINFOFACTORY \ |
146 | | NS_IMETHOD GetDefault(nsILoadContextInfo **aDefault) override; \ |
147 | | NS_IMETHOD GetPrivate(nsILoadContextInfo **aPrivate) override; \ |
148 | | NS_IMETHOD GetAnonymous(nsILoadContextInfo **aAnonymous) override; \ |
149 | | NS_IMETHOD Custom(bool aAnonymous, JS::HandleValue aOriginAttributes, JSContext* cx, nsILoadContextInfo **_retval) override; \ |
150 | | NS_IMETHOD FromLoadContext(nsILoadContext *aLoadContext, bool aAnonymous, nsILoadContextInfo **_retval) override; \ |
151 | | NS_IMETHOD FromWindow(nsIDOMWindow *aWindow, bool aAnonymous, nsILoadContextInfo **_retval) override; |
152 | | |
153 | | /* Use this macro when declaring the members of this interface when the |
154 | | class doesn't implement the interface. This is useful for forwarding. */ |
155 | | #define NS_DECL_NON_VIRTUAL_NSILOADCONTEXTINFOFACTORY \ |
156 | | nsresult GetDefault(nsILoadContextInfo **aDefault); \ |
157 | | nsresult GetPrivate(nsILoadContextInfo **aPrivate); \ |
158 | | nsresult GetAnonymous(nsILoadContextInfo **aAnonymous); \ |
159 | | nsresult Custom(bool aAnonymous, JS::HandleValue aOriginAttributes, JSContext* cx, nsILoadContextInfo **_retval); \ |
160 | | nsresult FromLoadContext(nsILoadContext *aLoadContext, bool aAnonymous, nsILoadContextInfo **_retval); \ |
161 | | nsresult FromWindow(nsIDOMWindow *aWindow, bool aAnonymous, nsILoadContextInfo **_retval); |
162 | | |
163 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
164 | | #define NS_FORWARD_NSILOADCONTEXTINFOFACTORY(_to) \ |
165 | | NS_IMETHOD GetDefault(nsILoadContextInfo **aDefault) override { return _to GetDefault(aDefault); } \ |
166 | | NS_IMETHOD GetPrivate(nsILoadContextInfo **aPrivate) override { return _to GetPrivate(aPrivate); } \ |
167 | | NS_IMETHOD GetAnonymous(nsILoadContextInfo **aAnonymous) override { return _to GetAnonymous(aAnonymous); } \ |
168 | | NS_IMETHOD Custom(bool aAnonymous, JS::HandleValue aOriginAttributes, JSContext* cx, nsILoadContextInfo **_retval) override { return _to Custom(aAnonymous, aOriginAttributes, cx, _retval); } \ |
169 | | NS_IMETHOD FromLoadContext(nsILoadContext *aLoadContext, bool aAnonymous, nsILoadContextInfo **_retval) override { return _to FromLoadContext(aLoadContext, aAnonymous, _retval); } \ |
170 | | NS_IMETHOD FromWindow(nsIDOMWindow *aWindow, bool aAnonymous, nsILoadContextInfo **_retval) override { return _to FromWindow(aWindow, aAnonymous, _retval); } |
171 | | |
172 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
173 | | #define NS_FORWARD_SAFE_NSILOADCONTEXTINFOFACTORY(_to) \ |
174 | | NS_IMETHOD GetDefault(nsILoadContextInfo **aDefault) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefault(aDefault); } \ |
175 | | NS_IMETHOD GetPrivate(nsILoadContextInfo **aPrivate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrivate(aPrivate); } \ |
176 | | NS_IMETHOD GetAnonymous(nsILoadContextInfo **aAnonymous) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnonymous(aAnonymous); } \ |
177 | | NS_IMETHOD Custom(bool aAnonymous, JS::HandleValue aOriginAttributes, JSContext* cx, nsILoadContextInfo **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Custom(aAnonymous, aOriginAttributes, cx, _retval); } \ |
178 | | NS_IMETHOD FromLoadContext(nsILoadContext *aLoadContext, bool aAnonymous, nsILoadContextInfo **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FromLoadContext(aLoadContext, aAnonymous, _retval); } \ |
179 | | NS_IMETHOD FromWindow(nsIDOMWindow *aWindow, bool aAnonymous, nsILoadContextInfo **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FromWindow(aWindow, aAnonymous, _retval); } |
180 | | |
181 | | |
182 | | #endif /* __gen_nsILoadContextInfo_h__ */ |