/work/obj-fuzz/dist/include/nsIWebSocketChannel.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/netwerk/protocol/websocket/nsIWebSocketChannel.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIWebSocketChannel_h__ |
6 | | #define __gen_nsIWebSocketChannel_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 nsIURI; /* forward declaration */ |
20 | | |
21 | | class nsIInterfaceRequestor; /* forward declaration */ |
22 | | |
23 | | class nsILoadGroup; /* forward declaration */ |
24 | | |
25 | | class nsIWebSocketListener; /* forward declaration */ |
26 | | |
27 | | class nsIInputStream; /* forward declaration */ |
28 | | |
29 | | class nsILoadInfo; /* forward declaration */ |
30 | | |
31 | | class nsIPrincipal; /* forward declaration */ |
32 | | |
33 | | class nsITransportProvider; /* forward declaration */ |
34 | | |
35 | | class nsINode; /* webidl Node */ |
36 | | |
37 | | |
38 | | /* starting interface: nsIWebSocketChannel */ |
39 | | #define NS_IWEBSOCKETCHANNEL_IID_STR "ce71d028-322a-4105-a947-a894689b52bf" |
40 | | |
41 | | #define NS_IWEBSOCKETCHANNEL_IID \ |
42 | | {0xce71d028, 0x322a, 0x4105, \ |
43 | | { 0xa9, 0x47, 0xa8, 0x94, 0x68, 0x9b, 0x52, 0xbf }} |
44 | | |
45 | | class nsIWebSocketChannel : public nsISupports { |
46 | | public: |
47 | | |
48 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBSOCKETCHANNEL_IID) |
49 | | |
50 | | /* [must_use] readonly attribute nsIURI originalURI; */ |
51 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) = 0; |
52 | | |
53 | | /* [must_use] readonly attribute nsIURI URI; */ |
54 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI **aURI) = 0; |
55 | | |
56 | | /* [must_use] attribute nsIInterfaceRequestor notificationCallbacks; */ |
57 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) = 0; |
58 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0; |
59 | | |
60 | | /* [must_use] readonly attribute nsISupports securityInfo; */ |
61 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) = 0; |
62 | | |
63 | | /* [must_use] attribute nsILoadGroup loadGroup; */ |
64 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) = 0; |
65 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) = 0; |
66 | | |
67 | | /* [must_use] attribute nsILoadInfo loadInfo; */ |
68 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) = 0; |
69 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) = 0; |
70 | | |
71 | | /* [must_use] attribute ACString protocol; */ |
72 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString& aProtocol) = 0; |
73 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString& aProtocol) = 0; |
74 | | |
75 | | /* [must_use] readonly attribute ACString extensions; */ |
76 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString& aExtensions) = 0; |
77 | | |
78 | | /* [must_use] void initLoadInfo (in Node aLoadingNode, in nsIPrincipal aLoadingPrincipal, in nsIPrincipal aTriggeringPrincipal, in unsigned long aSecurityFlags, in unsigned long aContentPolicyType); */ |
79 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) = 0; |
80 | | |
81 | | /* [must_use] void asyncOpen (in nsIURI aURI, in ACString aOrigin, in unsigned long long aInnerWindowID, in nsIWebSocketListener aListener, in nsISupports aContext); */ |
82 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString& aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) = 0; |
83 | | |
84 | | /* [must_use] void close (in unsigned short aCode, in AUTF8String aReason); */ |
85 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString& aReason) = 0; |
86 | | |
87 | | enum { |
88 | | CLOSE_NORMAL = 1000U, |
89 | | CLOSE_GOING_AWAY = 1001U, |
90 | | CLOSE_PROTOCOL_ERROR = 1002U, |
91 | | CLOSE_UNSUPPORTED_DATATYPE = 1003U, |
92 | | CLOSE_NO_STATUS = 1005U, |
93 | | CLOSE_ABNORMAL = 1006U, |
94 | | CLOSE_INVALID_PAYLOAD = 1007U, |
95 | | CLOSE_POLICY_VIOLATION = 1008U, |
96 | | CLOSE_TOO_LARGE = 1009U, |
97 | | CLOSE_EXTENSION_MISSING = 1010U, |
98 | | CLOSE_INTERNAL_ERROR = 1011U, |
99 | | CLOSE_TLS_FAILED = 1015U |
100 | | }; |
101 | | |
102 | | /* [must_use] void sendMsg (in AUTF8String aMsg); */ |
103 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString& aMsg) = 0; |
104 | | |
105 | | /* [must_use] void sendBinaryMsg (in ACString aMsg); */ |
106 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString& aMsg) = 0; |
107 | | |
108 | | /* [must_use] void sendBinaryStream (in nsIInputStream aStream, in unsigned long length); */ |
109 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) = 0; |
110 | | |
111 | | /* [must_use] attribute unsigned long pingInterval; */ |
112 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) = 0; |
113 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) = 0; |
114 | | |
115 | | /* [must_use] attribute unsigned long pingTimeout; */ |
116 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) = 0; |
117 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) = 0; |
118 | | |
119 | | /* [must_use] attribute unsigned long serial; */ |
120 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) = 0; |
121 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) = 0; |
122 | | |
123 | | /* [must_use] void setServerParameters (in nsITransportProvider aProvider, in ACString aNegotiatedExtensions); */ |
124 | | JS_HAZ_CAN_RUN_SCRIPT MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString& aNegotiatedExtensions) = 0; |
125 | | |
126 | | inline uint32_t Serial() |
127 | 0 | { |
128 | 0 | uint32_t serial; |
129 | 0 | nsresult rv = GetSerial(&serial); |
130 | 0 | if (NS_WARN_IF(NS_FAILED(rv))) { |
131 | 0 | return 0; |
132 | 0 | } |
133 | 0 | return serial; |
134 | 0 | } |
135 | | }; |
136 | | |
137 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebSocketChannel, NS_IWEBSOCKETCHANNEL_IID) |
138 | | |
139 | | /* Use this macro when declaring classes that implement this interface. */ |
140 | | #define NS_DECL_NSIWEBSOCKETCHANNEL \ |
141 | | MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) override; \ |
142 | | MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI **aURI) override; \ |
143 | | MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override; \ |
144 | | MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override; \ |
145 | | MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) override; \ |
146 | | MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override; \ |
147 | | MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override; \ |
148 | | MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) override; \ |
149 | | MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override; \ |
150 | | MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString& aProtocol) override; \ |
151 | | MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString& aProtocol) override; \ |
152 | | MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString& aExtensions) override; \ |
153 | | MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) override; \ |
154 | | MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString& aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) override; \ |
155 | | MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString& aReason) override; \ |
156 | | MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString& aMsg) override; \ |
157 | | MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString& aMsg) override; \ |
158 | | MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) override; \ |
159 | | MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) override; \ |
160 | | MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) override; \ |
161 | | MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) override; \ |
162 | | MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) override; \ |
163 | | MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) override; \ |
164 | | MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) override; \ |
165 | | MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString& aNegotiatedExtensions) override; \ |
166 | | |
167 | | /* Use this macro when declaring the members of this interface when the |
168 | | class doesn't implement the interface. This is useful for forwarding. */ |
169 | | #define NS_DECL_NON_VIRTUAL_NSIWEBSOCKETCHANNEL \ |
170 | | MOZ_MUST_USE nsresult GetOriginalURI(nsIURI **aOriginalURI); \ |
171 | | MOZ_MUST_USE nsresult GetURI(nsIURI **aURI); \ |
172 | | MOZ_MUST_USE nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks); \ |
173 | | MOZ_MUST_USE nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \ |
174 | | MOZ_MUST_USE nsresult GetSecurityInfo(nsISupports **aSecurityInfo); \ |
175 | | MOZ_MUST_USE nsresult GetLoadGroup(nsILoadGroup **aLoadGroup); \ |
176 | | MOZ_MUST_USE nsresult SetLoadGroup(nsILoadGroup *aLoadGroup); \ |
177 | | MOZ_MUST_USE nsresult GetLoadInfo(nsILoadInfo **aLoadInfo); \ |
178 | | MOZ_MUST_USE nsresult SetLoadInfo(nsILoadInfo *aLoadInfo); \ |
179 | | MOZ_MUST_USE nsresult GetProtocol(nsACString& aProtocol); \ |
180 | | MOZ_MUST_USE nsresult SetProtocol(const nsACString& aProtocol); \ |
181 | | MOZ_MUST_USE nsresult GetExtensions(nsACString& aExtensions); \ |
182 | | MOZ_MUST_USE nsresult InitLoadInfo(nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType); \ |
183 | | MOZ_MUST_USE nsresult AsyncOpen(nsIURI *aURI, const nsACString& aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext); \ |
184 | | MOZ_MUST_USE nsresult Close(uint16_t aCode, const nsACString& aReason); \ |
185 | | MOZ_MUST_USE nsresult SendMsg(const nsACString& aMsg); \ |
186 | | MOZ_MUST_USE nsresult SendBinaryMsg(const nsACString& aMsg); \ |
187 | | MOZ_MUST_USE nsresult SendBinaryStream(nsIInputStream *aStream, uint32_t length); \ |
188 | | MOZ_MUST_USE nsresult GetPingInterval(uint32_t *aPingInterval); \ |
189 | | MOZ_MUST_USE nsresult SetPingInterval(uint32_t aPingInterval); \ |
190 | | MOZ_MUST_USE nsresult GetPingTimeout(uint32_t *aPingTimeout); \ |
191 | | MOZ_MUST_USE nsresult SetPingTimeout(uint32_t aPingTimeout); \ |
192 | | MOZ_MUST_USE nsresult GetSerial(uint32_t *aSerial); \ |
193 | | MOZ_MUST_USE nsresult SetSerial(uint32_t aSerial); \ |
194 | | MOZ_MUST_USE nsresult SetServerParameters(nsITransportProvider *aProvider, const nsACString& aNegotiatedExtensions); \ |
195 | | |
196 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
197 | | #define NS_FORWARD_NSIWEBSOCKETCHANNEL(_to) \ |
198 | | MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) override { return _to GetOriginalURI(aOriginalURI); } \ |
199 | | MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI **aURI) override { return _to GetURI(aURI); } \ |
200 | | MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \ |
201 | | MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return _to SetNotificationCallbacks(aNotificationCallbacks); } \ |
202 | | MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) override { return _to GetSecurityInfo(aSecurityInfo); } \ |
203 | | MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return _to GetLoadGroup(aLoadGroup); } \ |
204 | | MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override { return _to SetLoadGroup(aLoadGroup); } \ |
205 | | MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) override { return _to GetLoadInfo(aLoadInfo); } \ |
206 | | MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return _to SetLoadInfo(aLoadInfo); } \ |
207 | | MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString& aProtocol) override { return _to GetProtocol(aProtocol); } \ |
208 | | MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString& aProtocol) override { return _to SetProtocol(aProtocol); } \ |
209 | | MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString& aExtensions) override { return _to GetExtensions(aExtensions); } \ |
210 | | MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) override { return _to InitLoadInfo(aLoadingNode, aLoadingPrincipal, aTriggeringPrincipal, aSecurityFlags, aContentPolicyType); } \ |
211 | | MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString& aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) override { return _to AsyncOpen(aURI, aOrigin, aInnerWindowID, aListener, aContext); } \ |
212 | | MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString& aReason) override { return _to Close(aCode, aReason); } \ |
213 | | MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString& aMsg) override { return _to SendMsg(aMsg); } \ |
214 | | MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString& aMsg) override { return _to SendBinaryMsg(aMsg); } \ |
215 | | MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) override { return _to SendBinaryStream(aStream, length); } \ |
216 | | MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) override { return _to GetPingInterval(aPingInterval); } \ |
217 | | MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) override { return _to SetPingInterval(aPingInterval); } \ |
218 | | MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) override { return _to GetPingTimeout(aPingTimeout); } \ |
219 | | MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) override { return _to SetPingTimeout(aPingTimeout); } \ |
220 | | MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) override { return _to GetSerial(aSerial); } \ |
221 | | MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) override { return _to SetSerial(aSerial); } \ |
222 | | MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString& aNegotiatedExtensions) override { return _to SetServerParameters(aProvider, aNegotiatedExtensions); } \ |
223 | | |
224 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
225 | | #define NS_FORWARD_SAFE_NSIWEBSOCKETCHANNEL(_to) \ |
226 | | MOZ_MUST_USE NS_IMETHOD GetOriginalURI(nsIURI **aOriginalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginalURI(aOriginalURI); } \ |
227 | | MOZ_MUST_USE NS_IMETHOD GetURI(nsIURI **aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \ |
228 | | MOZ_MUST_USE NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \ |
229 | | MOZ_MUST_USE NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \ |
230 | | MOZ_MUST_USE NS_IMETHOD GetSecurityInfo(nsISupports **aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \ |
231 | | MOZ_MUST_USE NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \ |
232 | | MOZ_MUST_USE NS_IMETHOD SetLoadGroup(nsILoadGroup *aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadGroup(aLoadGroup); } \ |
233 | | MOZ_MUST_USE NS_IMETHOD GetLoadInfo(nsILoadInfo **aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadInfo(aLoadInfo); } \ |
234 | | MOZ_MUST_USE NS_IMETHOD SetLoadInfo(nsILoadInfo *aLoadInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadInfo(aLoadInfo); } \ |
235 | | MOZ_MUST_USE NS_IMETHOD GetProtocol(nsACString& aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \ |
236 | | MOZ_MUST_USE NS_IMETHOD SetProtocol(const nsACString& aProtocol) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtocol(aProtocol); } \ |
237 | | MOZ_MUST_USE NS_IMETHOD GetExtensions(nsACString& aExtensions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExtensions(aExtensions); } \ |
238 | | MOZ_MUST_USE NS_IMETHOD InitLoadInfo(nsINode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitLoadInfo(aLoadingNode, aLoadingPrincipal, aTriggeringPrincipal, aSecurityFlags, aContentPolicyType); } \ |
239 | | MOZ_MUST_USE NS_IMETHOD AsyncOpen(nsIURI *aURI, const nsACString& aOrigin, uint64_t aInnerWindowID, nsIWebSocketListener *aListener, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncOpen(aURI, aOrigin, aInnerWindowID, aListener, aContext); } \ |
240 | | MOZ_MUST_USE NS_IMETHOD Close(uint16_t aCode, const nsACString& aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(aCode, aReason); } \ |
241 | | MOZ_MUST_USE NS_IMETHOD SendMsg(const nsACString& aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMsg(aMsg); } \ |
242 | | MOZ_MUST_USE NS_IMETHOD SendBinaryMsg(const nsACString& aMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendBinaryMsg(aMsg); } \ |
243 | | MOZ_MUST_USE NS_IMETHOD SendBinaryStream(nsIInputStream *aStream, uint32_t length) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendBinaryStream(aStream, length); } \ |
244 | | MOZ_MUST_USE NS_IMETHOD GetPingInterval(uint32_t *aPingInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPingInterval(aPingInterval); } \ |
245 | | MOZ_MUST_USE NS_IMETHOD SetPingInterval(uint32_t aPingInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPingInterval(aPingInterval); } \ |
246 | | MOZ_MUST_USE NS_IMETHOD GetPingTimeout(uint32_t *aPingTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPingTimeout(aPingTimeout); } \ |
247 | | MOZ_MUST_USE NS_IMETHOD SetPingTimeout(uint32_t aPingTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPingTimeout(aPingTimeout); } \ |
248 | | MOZ_MUST_USE NS_IMETHOD GetSerial(uint32_t *aSerial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSerial(aSerial); } \ |
249 | | MOZ_MUST_USE NS_IMETHOD SetSerial(uint32_t aSerial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSerial(aSerial); } \ |
250 | | MOZ_MUST_USE NS_IMETHOD SetServerParameters(nsITransportProvider *aProvider, const nsACString& aNegotiatedExtensions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServerParameters(aProvider, aNegotiatedExtensions); } \ |
251 | | |
252 | | |
253 | | #endif /* __gen_nsIWebSocketChannel_h__ */ |