Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMessageManager.idl
3 : */
4 :
5 : #ifndef __gen_nsIMessageManager_h__
6 : #define __gen_nsIMessageManager_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "js/Value.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 mozIDOMWindowProxy; /* forward declaration */
20 :
21 : class nsIDocShell; /* forward declaration */
22 :
23 : class nsIContent; /* forward declaration */
24 :
25 : class nsIFrameLoader; /* forward declaration */
26 :
27 : class nsIPrincipal; /* forward declaration */
28 :
29 :
30 : /* starting interface: nsIMessageListener */
31 : #define NS_IMESSAGELISTENER_IID_STR "2b44eb57-a9c6-4773-9a1e-fe0818739a4c"
32 :
33 : #define NS_IMESSAGELISTENER_IID \
34 : {0x2b44eb57, 0xa9c6, 0x4773, \
35 : { 0x9a, 0x1e, 0xfe, 0x08, 0x18, 0x73, 0x9a, 0x4c }}
36 :
37 : class NS_NO_VTABLE nsIMessageListener : public nsISupports {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMESSAGELISTENER_IID)
41 :
42 : /* void receiveMessage (); */
43 : NS_IMETHOD ReceiveMessage(void) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMessageListener, NS_IMESSAGELISTENER_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSIMESSAGELISTENER \
51 : NS_IMETHOD ReceiveMessage(void) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSIMESSAGELISTENER \
56 : nsresult ReceiveMessage(void);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSIMESSAGELISTENER(_to) \
60 : NS_IMETHOD ReceiveMessage(void) override { return _to ReceiveMessage(); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIMESSAGELISTENER(_to) \
64 : NS_IMETHOD ReceiveMessage(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReceiveMessage(); }
65 :
66 : #if 0
67 : /* Use the code below as a template for the implementation class for this interface. */
68 :
69 : /* Header file */
70 : class nsMessageListener : public nsIMessageListener
71 : {
72 : public:
73 : NS_DECL_ISUPPORTS
74 : NS_DECL_NSIMESSAGELISTENER
75 :
76 : nsMessageListener();
77 :
78 : private:
79 : ~nsMessageListener();
80 :
81 : protected:
82 : /* additional members */
83 : };
84 :
85 : /* Implementation file */
86 : NS_IMPL_ISUPPORTS(nsMessageListener, nsIMessageListener)
87 :
88 : nsMessageListener::nsMessageListener()
89 : {
90 : /* member initializers and constructor code */
91 : }
92 :
93 : nsMessageListener::~nsMessageListener()
94 : {
95 : /* destructor code */
96 : }
97 :
98 : /* void receiveMessage (); */
99 : NS_IMETHODIMP nsMessageListener::ReceiveMessage()
100 : {
101 : return NS_ERROR_NOT_IMPLEMENTED;
102 : }
103 :
104 : /* End of implementation class template. */
105 : #endif
106 :
107 :
108 : /* starting interface: nsIMessageListenerManager */
109 : #define NS_IMESSAGELISTENERMANAGER_IID_STR "b949bfec-bb7d-47bc-b387-ac6a9b655072"
110 :
111 : #define NS_IMESSAGELISTENERMANAGER_IID \
112 : {0xb949bfec, 0xbb7d, 0x47bc, \
113 : { 0xb3, 0x87, 0xac, 0x6a, 0x9b, 0x65, 0x50, 0x72 }}
114 :
115 33 : class NS_NO_VTABLE nsIMessageListenerManager : public nsISupports {
116 : public:
117 :
118 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMESSAGELISTENERMANAGER_IID)
119 :
120 : /* void addMessageListener (in AString messageName, in nsIMessageListener listener, [optional] in boolean listenWhenClosed); */
121 : NS_IMETHOD AddMessageListener(const nsAString & messageName, nsIMessageListener *listener, bool listenWhenClosed) = 0;
122 :
123 : /* void removeMessageListener (in AString messageName, in nsIMessageListener listener); */
124 : NS_IMETHOD RemoveMessageListener(const nsAString & messageName, nsIMessageListener *listener) = 0;
125 :
126 : /* void addWeakMessageListener (in AString messageName, in nsIMessageListener listener); */
127 : NS_IMETHOD AddWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) = 0;
128 :
129 : /* void removeWeakMessageListener (in AString messageName, in nsIMessageListener listener); */
130 : NS_IMETHOD RemoveWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) = 0;
131 :
132 : /* [notxpcom] boolean markForCC (); */
133 : NS_IMETHOD_(bool) MarkForCC(void) = 0;
134 :
135 : };
136 :
137 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMessageListenerManager, NS_IMESSAGELISTENERMANAGER_IID)
138 :
139 : /* Use this macro when declaring classes that implement this interface. */
140 : #define NS_DECL_NSIMESSAGELISTENERMANAGER \
141 : NS_IMETHOD AddMessageListener(const nsAString & messageName, nsIMessageListener *listener, bool listenWhenClosed) override; \
142 : NS_IMETHOD RemoveMessageListener(const nsAString & messageName, nsIMessageListener *listener) override; \
143 : NS_IMETHOD AddWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) override; \
144 : NS_IMETHOD RemoveWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) override; \
145 : NS_IMETHOD_(bool) MarkForCC(void) override;
146 :
147 : /* Use this macro when declaring the members of this interface when the
148 : class doesn't implement the interface. This is useful for forwarding. */
149 : #define NS_DECL_NON_VIRTUAL_NSIMESSAGELISTENERMANAGER \
150 : nsresult AddMessageListener(const nsAString & messageName, nsIMessageListener *listener, bool listenWhenClosed); \
151 : nsresult RemoveMessageListener(const nsAString & messageName, nsIMessageListener *listener); \
152 : nsresult AddWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener); \
153 : nsresult RemoveWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener); \
154 : nsresult_(bool) MarkForCC(void);
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
157 : #define NS_FORWARD_NSIMESSAGELISTENERMANAGER(_to) \
158 : NS_IMETHOD AddMessageListener(const nsAString & messageName, nsIMessageListener *listener, bool listenWhenClosed) override { return _to AddMessageListener(messageName, listener, listenWhenClosed); } \
159 : NS_IMETHOD RemoveMessageListener(const nsAString & messageName, nsIMessageListener *listener) override { return _to RemoveMessageListener(messageName, listener); } \
160 : NS_IMETHOD AddWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) override { return _to AddWeakMessageListener(messageName, listener); } \
161 : NS_IMETHOD RemoveWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) override { return _to RemoveWeakMessageListener(messageName, listener); } \
162 : NS_IMETHOD_(bool) MarkForCC(void) override { return _to MarkForCC(); }
163 :
164 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
165 : #define NS_FORWARD_SAFE_NSIMESSAGELISTENERMANAGER(_to) \
166 : NS_IMETHOD AddMessageListener(const nsAString & messageName, nsIMessageListener *listener, bool listenWhenClosed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddMessageListener(messageName, listener, listenWhenClosed); } \
167 : NS_IMETHOD RemoveMessageListener(const nsAString & messageName, nsIMessageListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveMessageListener(messageName, listener); } \
168 : NS_IMETHOD AddWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWeakMessageListener(messageName, listener); } \
169 : NS_IMETHOD RemoveWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWeakMessageListener(messageName, listener); } \
170 : NS_IMETHOD_(bool) MarkForCC(void) override;
171 :
172 : #if 0
173 : /* Use the code below as a template for the implementation class for this interface. */
174 :
175 : /* Header file */
176 : class nsMessageListenerManager : public nsIMessageListenerManager
177 : {
178 : public:
179 : NS_DECL_ISUPPORTS
180 : NS_DECL_NSIMESSAGELISTENERMANAGER
181 :
182 : nsMessageListenerManager();
183 :
184 : private:
185 : ~nsMessageListenerManager();
186 :
187 : protected:
188 : /* additional members */
189 : };
190 :
191 : /* Implementation file */
192 : NS_IMPL_ISUPPORTS(nsMessageListenerManager, nsIMessageListenerManager)
193 :
194 : nsMessageListenerManager::nsMessageListenerManager()
195 : {
196 : /* member initializers and constructor code */
197 : }
198 :
199 : nsMessageListenerManager::~nsMessageListenerManager()
200 : {
201 : /* destructor code */
202 : }
203 :
204 : /* void addMessageListener (in AString messageName, in nsIMessageListener listener, [optional] in boolean listenWhenClosed); */
205 : NS_IMETHODIMP nsMessageListenerManager::AddMessageListener(const nsAString & messageName, nsIMessageListener *listener, bool listenWhenClosed)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* void removeMessageListener (in AString messageName, in nsIMessageListener listener); */
211 : NS_IMETHODIMP nsMessageListenerManager::RemoveMessageListener(const nsAString & messageName, nsIMessageListener *listener)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* void addWeakMessageListener (in AString messageName, in nsIMessageListener listener); */
217 : NS_IMETHODIMP nsMessageListenerManager::AddWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* void removeWeakMessageListener (in AString messageName, in nsIMessageListener listener); */
223 : NS_IMETHODIMP nsMessageListenerManager::RemoveWeakMessageListener(const nsAString & messageName, nsIMessageListener *listener)
224 : {
225 : return NS_ERROR_NOT_IMPLEMENTED;
226 : }
227 :
228 : /* [notxpcom] boolean markForCC (); */
229 : NS_IMETHODIMP_(bool) nsMessageListenerManager::MarkForCC()
230 : {
231 : return NS_ERROR_NOT_IMPLEMENTED;
232 : }
233 :
234 : /* End of implementation class template. */
235 : #endif
236 :
237 :
238 : /* starting interface: nsIMessageSender */
239 : #define NS_IMESSAGESENDER_IID_STR "bb5d79e4-e73c-45e7-9651-4d718f4b994c"
240 :
241 : #define NS_IMESSAGESENDER_IID \
242 : {0xbb5d79e4, 0xe73c, 0x45e7, \
243 : { 0x96, 0x51, 0x4d, 0x71, 0x8f, 0x4b, 0x99, 0x4c }}
244 :
245 19 : class NS_NO_VTABLE nsIMessageSender : public nsIMessageListenerManager {
246 : public:
247 :
248 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMESSAGESENDER_IID)
249 :
250 : /* [implicit_jscontext,optional_argc] void sendAsyncMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsIPrincipal principal, [optional] in jsval transfers); */
251 : NS_IMETHOD SendAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JS::HandleValue transfers, JSContext* cx, uint8_t _argc) = 0;
252 :
253 : /* readonly attribute nsIMessageSender processMessageManager; */
254 : NS_IMETHOD GetProcessMessageManager(nsIMessageSender * *aProcessMessageManager) = 0;
255 :
256 : };
257 :
258 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMessageSender, NS_IMESSAGESENDER_IID)
259 :
260 : /* Use this macro when declaring classes that implement this interface. */
261 : #define NS_DECL_NSIMESSAGESENDER \
262 : NS_IMETHOD SendAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JS::HandleValue transfers, JSContext* cx, uint8_t _argc) override; \
263 : NS_IMETHOD GetProcessMessageManager(nsIMessageSender * *aProcessMessageManager) override;
264 :
265 : /* Use this macro when declaring the members of this interface when the
266 : class doesn't implement the interface. This is useful for forwarding. */
267 : #define NS_DECL_NON_VIRTUAL_NSIMESSAGESENDER \
268 : nsresult SendAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JS::HandleValue transfers, JSContext* cx, uint8_t _argc); \
269 : nsresult GetProcessMessageManager(nsIMessageSender * *aProcessMessageManager);
270 :
271 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
272 : #define NS_FORWARD_NSIMESSAGESENDER(_to) \
273 : NS_IMETHOD SendAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JS::HandleValue transfers, JSContext* cx, uint8_t _argc) override { return _to SendAsyncMessage(messageName, obj, objects, principal, transfers, cx, _argc); } \
274 : NS_IMETHOD GetProcessMessageManager(nsIMessageSender * *aProcessMessageManager) override { return _to GetProcessMessageManager(aProcessMessageManager); }
275 :
276 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
277 : #define NS_FORWARD_SAFE_NSIMESSAGESENDER(_to) \
278 : NS_IMETHOD SendAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JS::HandleValue transfers, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAsyncMessage(messageName, obj, objects, principal, transfers, cx, _argc); } \
279 : NS_IMETHOD GetProcessMessageManager(nsIMessageSender * *aProcessMessageManager) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProcessMessageManager(aProcessMessageManager); }
280 :
281 : #if 0
282 : /* Use the code below as a template for the implementation class for this interface. */
283 :
284 : /* Header file */
285 : class nsMessageSender : public nsIMessageSender
286 : {
287 : public:
288 : NS_DECL_ISUPPORTS
289 : NS_DECL_NSIMESSAGESENDER
290 :
291 : nsMessageSender();
292 :
293 : private:
294 : ~nsMessageSender();
295 :
296 : protected:
297 : /* additional members */
298 : };
299 :
300 : /* Implementation file */
301 : NS_IMPL_ISUPPORTS(nsMessageSender, nsIMessageSender)
302 :
303 : nsMessageSender::nsMessageSender()
304 : {
305 : /* member initializers and constructor code */
306 : }
307 :
308 : nsMessageSender::~nsMessageSender()
309 : {
310 : /* destructor code */
311 : }
312 :
313 : /* [implicit_jscontext,optional_argc] void sendAsyncMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsIPrincipal principal, [optional] in jsval transfers); */
314 : NS_IMETHODIMP nsMessageSender::SendAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JS::HandleValue transfers, JSContext* cx, uint8_t _argc)
315 : {
316 : return NS_ERROR_NOT_IMPLEMENTED;
317 : }
318 :
319 : /* readonly attribute nsIMessageSender processMessageManager; */
320 : NS_IMETHODIMP nsMessageSender::GetProcessMessageManager(nsIMessageSender * *aProcessMessageManager)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* End of implementation class template. */
326 : #endif
327 :
328 :
329 : /* starting interface: nsIMessageBroadcaster */
330 : #define NS_IMESSAGEBROADCASTER_IID_STR "4d7d62ad-4725-4f39-86cf-8fb22bf9c1d8"
331 :
332 : #define NS_IMESSAGEBROADCASTER_IID \
333 : {0x4d7d62ad, 0x4725, 0x4f39, \
334 : { 0x86, 0xcf, 0x8f, 0xb2, 0x2b, 0xf9, 0xc1, 0xd8 }}
335 :
336 14 : class NS_NO_VTABLE nsIMessageBroadcaster : public nsIMessageListenerManager {
337 : public:
338 :
339 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMESSAGEBROADCASTER_IID)
340 :
341 : /* [implicit_jscontext,optional_argc] void broadcastAsyncMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects); */
342 : NS_IMETHOD BroadcastAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, JSContext* cx, uint8_t _argc) = 0;
343 :
344 : /* readonly attribute unsigned long childCount; */
345 : NS_IMETHOD GetChildCount(uint32_t *aChildCount) = 0;
346 :
347 : /* nsIMessageListenerManager getChildAt (in unsigned long aIndex); */
348 : NS_IMETHOD GetChildAt(uint32_t aIndex, nsIMessageListenerManager * *_retval) = 0;
349 :
350 : /* void releaseCachedProcesses (); */
351 : NS_IMETHOD ReleaseCachedProcesses(void) = 0;
352 :
353 : };
354 :
355 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMessageBroadcaster, NS_IMESSAGEBROADCASTER_IID)
356 :
357 : /* Use this macro when declaring classes that implement this interface. */
358 : #define NS_DECL_NSIMESSAGEBROADCASTER \
359 : NS_IMETHOD BroadcastAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, JSContext* cx, uint8_t _argc) override; \
360 : NS_IMETHOD GetChildCount(uint32_t *aChildCount) override; \
361 : NS_IMETHOD GetChildAt(uint32_t aIndex, nsIMessageListenerManager * *_retval) override; \
362 : NS_IMETHOD ReleaseCachedProcesses(void) override;
363 :
364 : /* Use this macro when declaring the members of this interface when the
365 : class doesn't implement the interface. This is useful for forwarding. */
366 : #define NS_DECL_NON_VIRTUAL_NSIMESSAGEBROADCASTER \
367 : nsresult BroadcastAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, JSContext* cx, uint8_t _argc); \
368 : nsresult GetChildCount(uint32_t *aChildCount); \
369 : nsresult GetChildAt(uint32_t aIndex, nsIMessageListenerManager * *_retval); \
370 : nsresult ReleaseCachedProcesses(void);
371 :
372 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
373 : #define NS_FORWARD_NSIMESSAGEBROADCASTER(_to) \
374 : NS_IMETHOD BroadcastAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, JSContext* cx, uint8_t _argc) override { return _to BroadcastAsyncMessage(messageName, obj, objects, cx, _argc); } \
375 : NS_IMETHOD GetChildCount(uint32_t *aChildCount) override { return _to GetChildCount(aChildCount); } \
376 : NS_IMETHOD GetChildAt(uint32_t aIndex, nsIMessageListenerManager * *_retval) override { return _to GetChildAt(aIndex, _retval); } \
377 : NS_IMETHOD ReleaseCachedProcesses(void) override { return _to ReleaseCachedProcesses(); }
378 :
379 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
380 : #define NS_FORWARD_SAFE_NSIMESSAGEBROADCASTER(_to) \
381 : NS_IMETHOD BroadcastAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, JSContext* cx, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BroadcastAsyncMessage(messageName, obj, objects, cx, _argc); } \
382 : NS_IMETHOD GetChildCount(uint32_t *aChildCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildCount(aChildCount); } \
383 : NS_IMETHOD GetChildAt(uint32_t aIndex, nsIMessageListenerManager * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildAt(aIndex, _retval); } \
384 : NS_IMETHOD ReleaseCachedProcesses(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReleaseCachedProcesses(); }
385 :
386 : #if 0
387 : /* Use the code below as a template for the implementation class for this interface. */
388 :
389 : /* Header file */
390 : class nsMessageBroadcaster : public nsIMessageBroadcaster
391 : {
392 : public:
393 : NS_DECL_ISUPPORTS
394 : NS_DECL_NSIMESSAGEBROADCASTER
395 :
396 : nsMessageBroadcaster();
397 :
398 : private:
399 : ~nsMessageBroadcaster();
400 :
401 : protected:
402 : /* additional members */
403 : };
404 :
405 : /* Implementation file */
406 : NS_IMPL_ISUPPORTS(nsMessageBroadcaster, nsIMessageBroadcaster)
407 :
408 : nsMessageBroadcaster::nsMessageBroadcaster()
409 : {
410 : /* member initializers and constructor code */
411 : }
412 :
413 : nsMessageBroadcaster::~nsMessageBroadcaster()
414 : {
415 : /* destructor code */
416 : }
417 :
418 : /* [implicit_jscontext,optional_argc] void broadcastAsyncMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects); */
419 : NS_IMETHODIMP nsMessageBroadcaster::BroadcastAsyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, JSContext* cx, uint8_t _argc)
420 : {
421 : return NS_ERROR_NOT_IMPLEMENTED;
422 : }
423 :
424 : /* readonly attribute unsigned long childCount; */
425 : NS_IMETHODIMP nsMessageBroadcaster::GetChildCount(uint32_t *aChildCount)
426 : {
427 : return NS_ERROR_NOT_IMPLEMENTED;
428 : }
429 :
430 : /* nsIMessageListenerManager getChildAt (in unsigned long aIndex); */
431 : NS_IMETHODIMP nsMessageBroadcaster::GetChildAt(uint32_t aIndex, nsIMessageListenerManager * *_retval)
432 : {
433 : return NS_ERROR_NOT_IMPLEMENTED;
434 : }
435 :
436 : /* void releaseCachedProcesses (); */
437 : NS_IMETHODIMP nsMessageBroadcaster::ReleaseCachedProcesses()
438 : {
439 : return NS_ERROR_NOT_IMPLEMENTED;
440 : }
441 :
442 : /* End of implementation class template. */
443 : #endif
444 :
445 :
446 : /* starting interface: nsISyncMessageSender */
447 : #define NS_ISYNCMESSAGESENDER_IID_STR "0e602c9e-1977-422a-a8e4-fe0d4a4f78d0"
448 :
449 : #define NS_ISYNCMESSAGESENDER_IID \
450 : {0x0e602c9e, 0x1977, 0x422a, \
451 : { 0xa8, 0xe4, 0xfe, 0x0d, 0x4a, 0x4f, 0x78, 0xd0 }}
452 :
453 19 : class NS_NO_VTABLE nsISyncMessageSender : public nsIMessageSender {
454 : public:
455 :
456 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISYNCMESSAGESENDER_IID)
457 :
458 : /* [implicit_jscontext,optional_argc] jsval sendSyncMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsIPrincipal principal); */
459 : NS_IMETHOD SendSyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
460 :
461 : /* [implicit_jscontext,optional_argc] jsval sendRpcMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsIPrincipal principal); */
462 : NS_IMETHOD SendRpcMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) = 0;
463 :
464 : };
465 :
466 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISyncMessageSender, NS_ISYNCMESSAGESENDER_IID)
467 :
468 : /* Use this macro when declaring classes that implement this interface. */
469 : #define NS_DECL_NSISYNCMESSAGESENDER \
470 : NS_IMETHOD SendSyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override; \
471 : NS_IMETHOD SendRpcMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override;
472 :
473 : /* Use this macro when declaring the members of this interface when the
474 : class doesn't implement the interface. This is useful for forwarding. */
475 : #define NS_DECL_NON_VIRTUAL_NSISYNCMESSAGESENDER \
476 : nsresult SendSyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval); \
477 : nsresult SendRpcMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval);
478 :
479 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
480 : #define NS_FORWARD_NSISYNCMESSAGESENDER(_to) \
481 : NS_IMETHOD SendSyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to SendSyncMessage(messageName, obj, objects, principal, cx, _argc, _retval); } \
482 : NS_IMETHOD SendRpcMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return _to SendRpcMessage(messageName, obj, objects, principal, cx, _argc, _retval); }
483 :
484 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
485 : #define NS_FORWARD_SAFE_NSISYNCMESSAGESENDER(_to) \
486 : NS_IMETHOD SendSyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSyncMessage(messageName, obj, objects, principal, cx, _argc, _retval); } \
487 : NS_IMETHOD SendRpcMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendRpcMessage(messageName, obj, objects, principal, cx, _argc, _retval); }
488 :
489 : #if 0
490 : /* Use the code below as a template for the implementation class for this interface. */
491 :
492 : /* Header file */
493 : class nsSyncMessageSender : public nsISyncMessageSender
494 : {
495 : public:
496 : NS_DECL_ISUPPORTS
497 : NS_DECL_NSISYNCMESSAGESENDER
498 :
499 : nsSyncMessageSender();
500 :
501 : private:
502 : ~nsSyncMessageSender();
503 :
504 : protected:
505 : /* additional members */
506 : };
507 :
508 : /* Implementation file */
509 : NS_IMPL_ISUPPORTS(nsSyncMessageSender, nsISyncMessageSender)
510 :
511 : nsSyncMessageSender::nsSyncMessageSender()
512 : {
513 : /* member initializers and constructor code */
514 : }
515 :
516 : nsSyncMessageSender::~nsSyncMessageSender()
517 : {
518 : /* destructor code */
519 : }
520 :
521 : /* [implicit_jscontext,optional_argc] jsval sendSyncMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsIPrincipal principal); */
522 : NS_IMETHODIMP nsSyncMessageSender::SendSyncMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
523 : {
524 : return NS_ERROR_NOT_IMPLEMENTED;
525 : }
526 :
527 : /* [implicit_jscontext,optional_argc] jsval sendRpcMessage ([optional] in AString messageName, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsIPrincipal principal); */
528 : NS_IMETHODIMP nsSyncMessageSender::SendRpcMessage(const nsAString & messageName, JS::HandleValue obj, JS::HandleValue objects, nsIPrincipal *principal, JSContext* cx, uint8_t _argc, JS::MutableHandleValue _retval)
529 : {
530 : return NS_ERROR_NOT_IMPLEMENTED;
531 : }
532 :
533 : /* End of implementation class template. */
534 : #endif
535 :
536 :
537 : /* starting interface: nsIMessageManagerGlobal */
538 : #define NS_IMESSAGEMANAGERGLOBAL_IID_STR "13f3555f-769e-44ea-b607-5239230c3162"
539 :
540 : #define NS_IMESSAGEMANAGERGLOBAL_IID \
541 : {0x13f3555f, 0x769e, 0x44ea, \
542 : { 0xb6, 0x07, 0x52, 0x39, 0x23, 0x0c, 0x31, 0x62 }}
543 :
544 19 : class NS_NO_VTABLE nsIMessageManagerGlobal : public nsISyncMessageSender {
545 : public:
546 :
547 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMESSAGEMANAGERGLOBAL_IID)
548 :
549 : /* void dump (in DOMString aStr); */
550 : NS_IMETHOD Dump(const nsAString & aStr) = 0;
551 :
552 : /* void privateNoteIntentionalCrash (); */
553 : NS_IMETHOD PrivateNoteIntentionalCrash(void) = 0;
554 :
555 : /* DOMString atob (in DOMString aAsciiString); */
556 : NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval) = 0;
557 :
558 : /* DOMString btoa (in DOMString aBase64Data); */
559 : NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval) = 0;
560 :
561 : };
562 :
563 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMessageManagerGlobal, NS_IMESSAGEMANAGERGLOBAL_IID)
564 :
565 : /* Use this macro when declaring classes that implement this interface. */
566 : #define NS_DECL_NSIMESSAGEMANAGERGLOBAL \
567 : NS_IMETHOD Dump(const nsAString & aStr) override; \
568 : NS_IMETHOD PrivateNoteIntentionalCrash(void) override; \
569 : NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval) override; \
570 : NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval) override;
571 :
572 : /* Use this macro when declaring the members of this interface when the
573 : class doesn't implement the interface. This is useful for forwarding. */
574 : #define NS_DECL_NON_VIRTUAL_NSIMESSAGEMANAGERGLOBAL \
575 : nsresult Dump(const nsAString & aStr); \
576 : nsresult PrivateNoteIntentionalCrash(void); \
577 : nsresult Atob(const nsAString & aAsciiString, nsAString & _retval); \
578 : nsresult Btoa(const nsAString & aBase64Data, nsAString & _retval);
579 :
580 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
581 : #define NS_FORWARD_NSIMESSAGEMANAGERGLOBAL(_to) \
582 : NS_IMETHOD Dump(const nsAString & aStr) override { return _to Dump(aStr); } \
583 : NS_IMETHOD PrivateNoteIntentionalCrash(void) override { return _to PrivateNoteIntentionalCrash(); } \
584 : NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval) override { return _to Atob(aAsciiString, _retval); } \
585 : NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval) override { return _to Btoa(aBase64Data, _retval); }
586 :
587 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
588 : #define NS_FORWARD_SAFE_NSIMESSAGEMANAGERGLOBAL(_to) \
589 : NS_IMETHOD Dump(const nsAString & aStr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Dump(aStr); } \
590 : NS_IMETHOD PrivateNoteIntentionalCrash(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrivateNoteIntentionalCrash(); } \
591 : NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Atob(aAsciiString, _retval); } \
592 : NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Btoa(aBase64Data, _retval); }
593 :
594 : #if 0
595 : /* Use the code below as a template for the implementation class for this interface. */
596 :
597 : /* Header file */
598 : class nsMessageManagerGlobal : public nsIMessageManagerGlobal
599 : {
600 : public:
601 : NS_DECL_ISUPPORTS
602 : NS_DECL_NSIMESSAGEMANAGERGLOBAL
603 :
604 : nsMessageManagerGlobal();
605 :
606 : private:
607 : ~nsMessageManagerGlobal();
608 :
609 : protected:
610 : /* additional members */
611 : };
612 :
613 : /* Implementation file */
614 : NS_IMPL_ISUPPORTS(nsMessageManagerGlobal, nsIMessageManagerGlobal)
615 :
616 : nsMessageManagerGlobal::nsMessageManagerGlobal()
617 : {
618 : /* member initializers and constructor code */
619 : }
620 :
621 : nsMessageManagerGlobal::~nsMessageManagerGlobal()
622 : {
623 : /* destructor code */
624 : }
625 :
626 : /* void dump (in DOMString aStr); */
627 : NS_IMETHODIMP nsMessageManagerGlobal::Dump(const nsAString & aStr)
628 : {
629 : return NS_ERROR_NOT_IMPLEMENTED;
630 : }
631 :
632 : /* void privateNoteIntentionalCrash (); */
633 : NS_IMETHODIMP nsMessageManagerGlobal::PrivateNoteIntentionalCrash()
634 : {
635 : return NS_ERROR_NOT_IMPLEMENTED;
636 : }
637 :
638 : /* DOMString atob (in DOMString aAsciiString); */
639 : NS_IMETHODIMP nsMessageManagerGlobal::Atob(const nsAString & aAsciiString, nsAString & _retval)
640 : {
641 : return NS_ERROR_NOT_IMPLEMENTED;
642 : }
643 :
644 : /* DOMString btoa (in DOMString aBase64Data); */
645 : NS_IMETHODIMP nsMessageManagerGlobal::Btoa(const nsAString & aBase64Data, nsAString & _retval)
646 : {
647 : return NS_ERROR_NOT_IMPLEMENTED;
648 : }
649 :
650 : /* End of implementation class template. */
651 : #endif
652 :
653 :
654 : /* starting interface: nsIContentFrameMessageManager */
655 : #define NS_ICONTENTFRAMEMESSAGEMANAGER_IID_STR "694e367c-aa25-4446-8499-2c527c4bd838"
656 :
657 : #define NS_ICONTENTFRAMEMESSAGEMANAGER_IID \
658 : {0x694e367c, 0xaa25, 0x4446, \
659 : { 0x84, 0x99, 0x2c, 0x52, 0x7c, 0x4b, 0xd8, 0x38 }}
660 :
661 16 : class NS_NO_VTABLE nsIContentFrameMessageManager : public nsIMessageManagerGlobal {
662 : public:
663 :
664 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTFRAMEMESSAGEMANAGER_IID)
665 :
666 : /* readonly attribute mozIDOMWindowProxy content; */
667 : NS_IMETHOD GetContent(mozIDOMWindowProxy * *aContent) = 0;
668 :
669 : /* readonly attribute nsIDocShell docShell; */
670 : NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) = 0;
671 :
672 : };
673 :
674 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentFrameMessageManager, NS_ICONTENTFRAMEMESSAGEMANAGER_IID)
675 :
676 : /* Use this macro when declaring classes that implement this interface. */
677 : #define NS_DECL_NSICONTENTFRAMEMESSAGEMANAGER \
678 : NS_IMETHOD GetContent(mozIDOMWindowProxy * *aContent) override; \
679 : NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) override;
680 :
681 : /* Use this macro when declaring the members of this interface when the
682 : class doesn't implement the interface. This is useful for forwarding. */
683 : #define NS_DECL_NON_VIRTUAL_NSICONTENTFRAMEMESSAGEMANAGER \
684 : nsresult GetContent(mozIDOMWindowProxy * *aContent); \
685 : nsresult GetDocShell(nsIDocShell * *aDocShell);
686 :
687 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
688 : #define NS_FORWARD_NSICONTENTFRAMEMESSAGEMANAGER(_to) \
689 : NS_IMETHOD GetContent(mozIDOMWindowProxy * *aContent) override { return _to GetContent(aContent); } \
690 : NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) override { return _to GetDocShell(aDocShell); }
691 :
692 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
693 : #define NS_FORWARD_SAFE_NSICONTENTFRAMEMESSAGEMANAGER(_to) \
694 : NS_IMETHOD GetContent(mozIDOMWindowProxy * *aContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContent(aContent); } \
695 : NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShell(aDocShell); }
696 :
697 : #if 0
698 : /* Use the code below as a template for the implementation class for this interface. */
699 :
700 : /* Header file */
701 : class nsContentFrameMessageManager : public nsIContentFrameMessageManager
702 : {
703 : public:
704 : NS_DECL_ISUPPORTS
705 : NS_DECL_NSICONTENTFRAMEMESSAGEMANAGER
706 :
707 : nsContentFrameMessageManager();
708 :
709 : private:
710 : ~nsContentFrameMessageManager();
711 :
712 : protected:
713 : /* additional members */
714 : };
715 :
716 : /* Implementation file */
717 : NS_IMPL_ISUPPORTS(nsContentFrameMessageManager, nsIContentFrameMessageManager)
718 :
719 : nsContentFrameMessageManager::nsContentFrameMessageManager()
720 : {
721 : /* member initializers and constructor code */
722 : }
723 :
724 : nsContentFrameMessageManager::~nsContentFrameMessageManager()
725 : {
726 : /* destructor code */
727 : }
728 :
729 : /* readonly attribute mozIDOMWindowProxy content; */
730 : NS_IMETHODIMP nsContentFrameMessageManager::GetContent(mozIDOMWindowProxy * *aContent)
731 : {
732 : return NS_ERROR_NOT_IMPLEMENTED;
733 : }
734 :
735 : /* readonly attribute nsIDocShell docShell; */
736 : NS_IMETHODIMP nsContentFrameMessageManager::GetDocShell(nsIDocShell * *aDocShell)
737 : {
738 : return NS_ERROR_NOT_IMPLEMENTED;
739 : }
740 :
741 : /* End of implementation class template. */
742 : #endif
743 :
744 :
745 : /* starting interface: nsIInProcessContentFrameMessageManager */
746 : #define NS_IINPROCESSCONTENTFRAMEMESSAGEMANAGER_IID_STR "b39a3324-b574-4f85-8cdb-274d04f807ef"
747 :
748 : #define NS_IINPROCESSCONTENTFRAMEMESSAGEMANAGER_IID \
749 : {0xb39a3324, 0xb574, 0x4f85, \
750 : { 0x8c, 0xdb, 0x27, 0x4d, 0x04, 0xf8, 0x07, 0xef }}
751 :
752 1 : class NS_NO_VTABLE nsIInProcessContentFrameMessageManager : public nsIContentFrameMessageManager {
753 : public:
754 :
755 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPROCESSCONTENTFRAMEMESSAGEMANAGER_IID)
756 :
757 : /* [notxpcom] nsIContent getOwnerContent (); */
758 : NS_IMETHOD_(nsIContent *) GetOwnerContent(void) = 0;
759 :
760 : /* [notxpcom] void cacheFrameLoader (in nsIFrameLoader aFrameLoader); */
761 : NS_IMETHOD_(void) CacheFrameLoader(nsIFrameLoader *aFrameLoader) = 0;
762 :
763 : };
764 :
765 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIInProcessContentFrameMessageManager, NS_IINPROCESSCONTENTFRAMEMESSAGEMANAGER_IID)
766 :
767 : /* Use this macro when declaring classes that implement this interface. */
768 : #define NS_DECL_NSIINPROCESSCONTENTFRAMEMESSAGEMANAGER \
769 : NS_IMETHOD_(nsIContent *) GetOwnerContent(void) override; \
770 : NS_IMETHOD_(void) CacheFrameLoader(nsIFrameLoader *aFrameLoader) override;
771 :
772 : /* Use this macro when declaring the members of this interface when the
773 : class doesn't implement the interface. This is useful for forwarding. */
774 : #define NS_DECL_NON_VIRTUAL_NSIINPROCESSCONTENTFRAMEMESSAGEMANAGER \
775 : nsresult_(nsIContent *) GetOwnerContent(void); \
776 : nsresult_(void) CacheFrameLoader(nsIFrameLoader *aFrameLoader);
777 :
778 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
779 : #define NS_FORWARD_NSIINPROCESSCONTENTFRAMEMESSAGEMANAGER(_to) \
780 : NS_IMETHOD_(nsIContent *) GetOwnerContent(void) override { return _to GetOwnerContent(); } \
781 : NS_IMETHOD_(void) CacheFrameLoader(nsIFrameLoader *aFrameLoader) override { return _to CacheFrameLoader(aFrameLoader); }
782 :
783 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
784 : #define NS_FORWARD_SAFE_NSIINPROCESSCONTENTFRAMEMESSAGEMANAGER(_to) \
785 : NS_IMETHOD_(nsIContent *) GetOwnerContent(void) override; \
786 : NS_IMETHOD_(void) CacheFrameLoader(nsIFrameLoader *aFrameLoader) override;
787 :
788 : #if 0
789 : /* Use the code below as a template for the implementation class for this interface. */
790 :
791 : /* Header file */
792 : class nsInProcessContentFrameMessageManager : public nsIInProcessContentFrameMessageManager
793 : {
794 : public:
795 : NS_DECL_ISUPPORTS
796 : NS_DECL_NSIINPROCESSCONTENTFRAMEMESSAGEMANAGER
797 :
798 : nsInProcessContentFrameMessageManager();
799 :
800 : private:
801 : ~nsInProcessContentFrameMessageManager();
802 :
803 : protected:
804 : /* additional members */
805 : };
806 :
807 : /* Implementation file */
808 : NS_IMPL_ISUPPORTS(nsInProcessContentFrameMessageManager, nsIInProcessContentFrameMessageManager)
809 :
810 : nsInProcessContentFrameMessageManager::nsInProcessContentFrameMessageManager()
811 : {
812 : /* member initializers and constructor code */
813 : }
814 :
815 : nsInProcessContentFrameMessageManager::~nsInProcessContentFrameMessageManager()
816 : {
817 : /* destructor code */
818 : }
819 :
820 : /* [notxpcom] nsIContent getOwnerContent (); */
821 : NS_IMETHODIMP_(nsIContent *) nsInProcessContentFrameMessageManager::GetOwnerContent()
822 : {
823 : return NS_ERROR_NOT_IMPLEMENTED;
824 : }
825 :
826 : /* [notxpcom] void cacheFrameLoader (in nsIFrameLoader aFrameLoader); */
827 : NS_IMETHODIMP_(void) nsInProcessContentFrameMessageManager::CacheFrameLoader(nsIFrameLoader *aFrameLoader)
828 : {
829 : return NS_ERROR_NOT_IMPLEMENTED;
830 : }
831 :
832 : /* End of implementation class template. */
833 : #endif
834 :
835 :
836 : /* starting interface: nsIContentProcessMessageManager */
837 : #define NS_ICONTENTPROCESSMESSAGEMANAGER_IID_STR "6d12e467-2446-46db-9965-e4e93cb87ca5"
838 :
839 : #define NS_ICONTENTPROCESSMESSAGEMANAGER_IID \
840 : {0x6d12e467, 0x2446, 0x46db, \
841 : { 0x99, 0x65, 0xe4, 0xe9, 0x3c, 0xb8, 0x7c, 0xa5 }}
842 :
843 3 : class NS_NO_VTABLE nsIContentProcessMessageManager : public nsIMessageManagerGlobal {
844 : public:
845 :
846 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTPROCESSMESSAGEMANAGER_IID)
847 :
848 : /* [implicit_jscontext] readonly attribute jsval initialProcessData; */
849 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) = 0;
850 :
851 : };
852 :
853 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentProcessMessageManager, NS_ICONTENTPROCESSMESSAGEMANAGER_IID)
854 :
855 : /* Use this macro when declaring classes that implement this interface. */
856 : #define NS_DECL_NSICONTENTPROCESSMESSAGEMANAGER \
857 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) override;
858 :
859 : /* Use this macro when declaring the members of this interface when the
860 : class doesn't implement the interface. This is useful for forwarding. */
861 : #define NS_DECL_NON_VIRTUAL_NSICONTENTPROCESSMESSAGEMANAGER \
862 : nsresult GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData);
863 :
864 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
865 : #define NS_FORWARD_NSICONTENTPROCESSMESSAGEMANAGER(_to) \
866 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) override { return _to GetInitialProcessData(cx, aInitialProcessData); }
867 :
868 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
869 : #define NS_FORWARD_SAFE_NSICONTENTPROCESSMESSAGEMANAGER(_to) \
870 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitialProcessData(cx, aInitialProcessData); }
871 :
872 : #if 0
873 : /* Use the code below as a template for the implementation class for this interface. */
874 :
875 : /* Header file */
876 : class nsContentProcessMessageManager : public nsIContentProcessMessageManager
877 : {
878 : public:
879 : NS_DECL_ISUPPORTS
880 : NS_DECL_NSICONTENTPROCESSMESSAGEMANAGER
881 :
882 : nsContentProcessMessageManager();
883 :
884 : private:
885 : ~nsContentProcessMessageManager();
886 :
887 : protected:
888 : /* additional members */
889 : };
890 :
891 : /* Implementation file */
892 : NS_IMPL_ISUPPORTS(nsContentProcessMessageManager, nsIContentProcessMessageManager)
893 :
894 : nsContentProcessMessageManager::nsContentProcessMessageManager()
895 : {
896 : /* member initializers and constructor code */
897 : }
898 :
899 : nsContentProcessMessageManager::~nsContentProcessMessageManager()
900 : {
901 : /* destructor code */
902 : }
903 :
904 : /* [implicit_jscontext] readonly attribute jsval initialProcessData; */
905 : NS_IMETHODIMP nsContentProcessMessageManager::GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData)
906 : {
907 : return NS_ERROR_NOT_IMPLEMENTED;
908 : }
909 :
910 : /* End of implementation class template. */
911 : #endif
912 :
913 :
914 : /* starting interface: nsIFrameScriptLoader */
915 : #define NS_IFRAMESCRIPTLOADER_IID_STR "bf61446b-ba24-4b1d-88c7-4f94724b9ce1"
916 :
917 : #define NS_IFRAMESCRIPTLOADER_IID \
918 : {0xbf61446b, 0xba24, 0x4b1d, \
919 : { 0x88, 0xc7, 0x4f, 0x94, 0x72, 0x4b, 0x9c, 0xe1 }}
920 :
921 14 : class NS_NO_VTABLE nsIFrameScriptLoader : public nsISupports {
922 : public:
923 :
924 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFRAMESCRIPTLOADER_IID)
925 :
926 : /* void loadFrameScript (in AString aURL, in boolean aAllowDelayedLoad, [optional] in boolean aRunInGlobalScope); */
927 : NS_IMETHOD LoadFrameScript(const nsAString & aURL, bool aAllowDelayedLoad, bool aRunInGlobalScope) = 0;
928 :
929 : /* void removeDelayedFrameScript (in AString aURL); */
930 : NS_IMETHOD RemoveDelayedFrameScript(const nsAString & aURL) = 0;
931 :
932 : /* [implicit_jscontext] jsval getDelayedFrameScripts (); */
933 : NS_IMETHOD GetDelayedFrameScripts(JSContext* cx, JS::MutableHandleValue _retval) = 0;
934 :
935 : };
936 :
937 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFrameScriptLoader, NS_IFRAMESCRIPTLOADER_IID)
938 :
939 : /* Use this macro when declaring classes that implement this interface. */
940 : #define NS_DECL_NSIFRAMESCRIPTLOADER \
941 : NS_IMETHOD LoadFrameScript(const nsAString & aURL, bool aAllowDelayedLoad, bool aRunInGlobalScope) override; \
942 : NS_IMETHOD RemoveDelayedFrameScript(const nsAString & aURL) override; \
943 : NS_IMETHOD GetDelayedFrameScripts(JSContext* cx, JS::MutableHandleValue _retval) override;
944 :
945 : /* Use this macro when declaring the members of this interface when the
946 : class doesn't implement the interface. This is useful for forwarding. */
947 : #define NS_DECL_NON_VIRTUAL_NSIFRAMESCRIPTLOADER \
948 : nsresult LoadFrameScript(const nsAString & aURL, bool aAllowDelayedLoad, bool aRunInGlobalScope); \
949 : nsresult RemoveDelayedFrameScript(const nsAString & aURL); \
950 : nsresult GetDelayedFrameScripts(JSContext* cx, JS::MutableHandleValue _retval);
951 :
952 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
953 : #define NS_FORWARD_NSIFRAMESCRIPTLOADER(_to) \
954 : NS_IMETHOD LoadFrameScript(const nsAString & aURL, bool aAllowDelayedLoad, bool aRunInGlobalScope) override { return _to LoadFrameScript(aURL, aAllowDelayedLoad, aRunInGlobalScope); } \
955 : NS_IMETHOD RemoveDelayedFrameScript(const nsAString & aURL) override { return _to RemoveDelayedFrameScript(aURL); } \
956 : NS_IMETHOD GetDelayedFrameScripts(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetDelayedFrameScripts(cx, _retval); }
957 :
958 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
959 : #define NS_FORWARD_SAFE_NSIFRAMESCRIPTLOADER(_to) \
960 : NS_IMETHOD LoadFrameScript(const nsAString & aURL, bool aAllowDelayedLoad, bool aRunInGlobalScope) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadFrameScript(aURL, aAllowDelayedLoad, aRunInGlobalScope); } \
961 : NS_IMETHOD RemoveDelayedFrameScript(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDelayedFrameScript(aURL); } \
962 : NS_IMETHOD GetDelayedFrameScripts(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDelayedFrameScripts(cx, _retval); }
963 :
964 : #if 0
965 : /* Use the code below as a template for the implementation class for this interface. */
966 :
967 : /* Header file */
968 : class nsFrameScriptLoader : public nsIFrameScriptLoader
969 : {
970 : public:
971 : NS_DECL_ISUPPORTS
972 : NS_DECL_NSIFRAMESCRIPTLOADER
973 :
974 : nsFrameScriptLoader();
975 :
976 : private:
977 : ~nsFrameScriptLoader();
978 :
979 : protected:
980 : /* additional members */
981 : };
982 :
983 : /* Implementation file */
984 : NS_IMPL_ISUPPORTS(nsFrameScriptLoader, nsIFrameScriptLoader)
985 :
986 : nsFrameScriptLoader::nsFrameScriptLoader()
987 : {
988 : /* member initializers and constructor code */
989 : }
990 :
991 : nsFrameScriptLoader::~nsFrameScriptLoader()
992 : {
993 : /* destructor code */
994 : }
995 :
996 : /* void loadFrameScript (in AString aURL, in boolean aAllowDelayedLoad, [optional] in boolean aRunInGlobalScope); */
997 : NS_IMETHODIMP nsFrameScriptLoader::LoadFrameScript(const nsAString & aURL, bool aAllowDelayedLoad, bool aRunInGlobalScope)
998 : {
999 : return NS_ERROR_NOT_IMPLEMENTED;
1000 : }
1001 :
1002 : /* void removeDelayedFrameScript (in AString aURL); */
1003 : NS_IMETHODIMP nsFrameScriptLoader::RemoveDelayedFrameScript(const nsAString & aURL)
1004 : {
1005 : return NS_ERROR_NOT_IMPLEMENTED;
1006 : }
1007 :
1008 : /* [implicit_jscontext] jsval getDelayedFrameScripts (); */
1009 : NS_IMETHODIMP nsFrameScriptLoader::GetDelayedFrameScripts(JSContext* cx, JS::MutableHandleValue _retval)
1010 : {
1011 : return NS_ERROR_NOT_IMPLEMENTED;
1012 : }
1013 :
1014 : /* End of implementation class template. */
1015 : #endif
1016 :
1017 :
1018 : /* starting interface: nsIProcessScriptLoader */
1019 : #define NS_IPROCESSSCRIPTLOADER_IID_STR "7e1e1a20-b24f-11e4-ab27-0800200c9a66"
1020 :
1021 : #define NS_IPROCESSSCRIPTLOADER_IID \
1022 : {0x7e1e1a20, 0xb24f, 0x11e4, \
1023 : { 0xab, 0x27, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
1024 :
1025 14 : class NS_NO_VTABLE nsIProcessScriptLoader : public nsISupports {
1026 : public:
1027 :
1028 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROCESSSCRIPTLOADER_IID)
1029 :
1030 : /* void loadProcessScript (in AString aURL, in boolean aAllowDelayedLoad); */
1031 : NS_IMETHOD LoadProcessScript(const nsAString & aURL, bool aAllowDelayedLoad) = 0;
1032 :
1033 : /* void removeDelayedProcessScript (in AString aURL); */
1034 : NS_IMETHOD RemoveDelayedProcessScript(const nsAString & aURL) = 0;
1035 :
1036 : /* [implicit_jscontext] jsval getDelayedProcessScripts (); */
1037 : NS_IMETHOD GetDelayedProcessScripts(JSContext* cx, JS::MutableHandleValue _retval) = 0;
1038 :
1039 : };
1040 :
1041 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProcessScriptLoader, NS_IPROCESSSCRIPTLOADER_IID)
1042 :
1043 : /* Use this macro when declaring classes that implement this interface. */
1044 : #define NS_DECL_NSIPROCESSSCRIPTLOADER \
1045 : NS_IMETHOD LoadProcessScript(const nsAString & aURL, bool aAllowDelayedLoad) override; \
1046 : NS_IMETHOD RemoveDelayedProcessScript(const nsAString & aURL) override; \
1047 : NS_IMETHOD GetDelayedProcessScripts(JSContext* cx, JS::MutableHandleValue _retval) override;
1048 :
1049 : /* Use this macro when declaring the members of this interface when the
1050 : class doesn't implement the interface. This is useful for forwarding. */
1051 : #define NS_DECL_NON_VIRTUAL_NSIPROCESSSCRIPTLOADER \
1052 : nsresult LoadProcessScript(const nsAString & aURL, bool aAllowDelayedLoad); \
1053 : nsresult RemoveDelayedProcessScript(const nsAString & aURL); \
1054 : nsresult GetDelayedProcessScripts(JSContext* cx, JS::MutableHandleValue _retval);
1055 :
1056 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1057 : #define NS_FORWARD_NSIPROCESSSCRIPTLOADER(_to) \
1058 : NS_IMETHOD LoadProcessScript(const nsAString & aURL, bool aAllowDelayedLoad) override { return _to LoadProcessScript(aURL, aAllowDelayedLoad); } \
1059 : NS_IMETHOD RemoveDelayedProcessScript(const nsAString & aURL) override { return _to RemoveDelayedProcessScript(aURL); } \
1060 : NS_IMETHOD GetDelayedProcessScripts(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetDelayedProcessScripts(cx, _retval); }
1061 :
1062 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1063 : #define NS_FORWARD_SAFE_NSIPROCESSSCRIPTLOADER(_to) \
1064 : NS_IMETHOD LoadProcessScript(const nsAString & aURL, bool aAllowDelayedLoad) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadProcessScript(aURL, aAllowDelayedLoad); } \
1065 : NS_IMETHOD RemoveDelayedProcessScript(const nsAString & aURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDelayedProcessScript(aURL); } \
1066 : NS_IMETHOD GetDelayedProcessScripts(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDelayedProcessScripts(cx, _retval); }
1067 :
1068 : #if 0
1069 : /* Use the code below as a template for the implementation class for this interface. */
1070 :
1071 : /* Header file */
1072 : class nsProcessScriptLoader : public nsIProcessScriptLoader
1073 : {
1074 : public:
1075 : NS_DECL_ISUPPORTS
1076 : NS_DECL_NSIPROCESSSCRIPTLOADER
1077 :
1078 : nsProcessScriptLoader();
1079 :
1080 : private:
1081 : ~nsProcessScriptLoader();
1082 :
1083 : protected:
1084 : /* additional members */
1085 : };
1086 :
1087 : /* Implementation file */
1088 : NS_IMPL_ISUPPORTS(nsProcessScriptLoader, nsIProcessScriptLoader)
1089 :
1090 : nsProcessScriptLoader::nsProcessScriptLoader()
1091 : {
1092 : /* member initializers and constructor code */
1093 : }
1094 :
1095 : nsProcessScriptLoader::~nsProcessScriptLoader()
1096 : {
1097 : /* destructor code */
1098 : }
1099 :
1100 : /* void loadProcessScript (in AString aURL, in boolean aAllowDelayedLoad); */
1101 : NS_IMETHODIMP nsProcessScriptLoader::LoadProcessScript(const nsAString & aURL, bool aAllowDelayedLoad)
1102 : {
1103 : return NS_ERROR_NOT_IMPLEMENTED;
1104 : }
1105 :
1106 : /* void removeDelayedProcessScript (in AString aURL); */
1107 : NS_IMETHODIMP nsProcessScriptLoader::RemoveDelayedProcessScript(const nsAString & aURL)
1108 : {
1109 : return NS_ERROR_NOT_IMPLEMENTED;
1110 : }
1111 :
1112 : /* [implicit_jscontext] jsval getDelayedProcessScripts (); */
1113 : NS_IMETHODIMP nsProcessScriptLoader::GetDelayedProcessScripts(JSContext* cx, JS::MutableHandleValue _retval)
1114 : {
1115 : return NS_ERROR_NOT_IMPLEMENTED;
1116 : }
1117 :
1118 : /* End of implementation class template. */
1119 : #endif
1120 :
1121 :
1122 : /* starting interface: nsIGlobalProcessScriptLoader */
1123 : #define NS_IGLOBALPROCESSSCRIPTLOADER_IID_STR "5b390753-abb3-49b0-ae3b-b803dab58144"
1124 :
1125 : #define NS_IGLOBALPROCESSSCRIPTLOADER_IID \
1126 : {0x5b390753, 0xabb3, 0x49b0, \
1127 : { 0xae, 0x3b, 0xb8, 0x03, 0xda, 0xb5, 0x81, 0x44 }}
1128 :
1129 14 : class NS_NO_VTABLE nsIGlobalProcessScriptLoader : public nsIProcessScriptLoader {
1130 : public:
1131 :
1132 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGLOBALPROCESSSCRIPTLOADER_IID)
1133 :
1134 : /* [implicit_jscontext] readonly attribute jsval initialProcessData; */
1135 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) = 0;
1136 :
1137 : };
1138 :
1139 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIGlobalProcessScriptLoader, NS_IGLOBALPROCESSSCRIPTLOADER_IID)
1140 :
1141 : /* Use this macro when declaring classes that implement this interface. */
1142 : #define NS_DECL_NSIGLOBALPROCESSSCRIPTLOADER \
1143 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) override;
1144 :
1145 : /* Use this macro when declaring the members of this interface when the
1146 : class doesn't implement the interface. This is useful for forwarding. */
1147 : #define NS_DECL_NON_VIRTUAL_NSIGLOBALPROCESSSCRIPTLOADER \
1148 : nsresult GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData);
1149 :
1150 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
1151 : #define NS_FORWARD_NSIGLOBALPROCESSSCRIPTLOADER(_to) \
1152 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) override { return _to GetInitialProcessData(cx, aInitialProcessData); }
1153 :
1154 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
1155 : #define NS_FORWARD_SAFE_NSIGLOBALPROCESSSCRIPTLOADER(_to) \
1156 : NS_IMETHOD GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitialProcessData(cx, aInitialProcessData); }
1157 :
1158 : #if 0
1159 : /* Use the code below as a template for the implementation class for this interface. */
1160 :
1161 : /* Header file */
1162 : class nsGlobalProcessScriptLoader : public nsIGlobalProcessScriptLoader
1163 : {
1164 : public:
1165 : NS_DECL_ISUPPORTS
1166 : NS_DECL_NSIGLOBALPROCESSSCRIPTLOADER
1167 :
1168 : nsGlobalProcessScriptLoader();
1169 :
1170 : private:
1171 : ~nsGlobalProcessScriptLoader();
1172 :
1173 : protected:
1174 : /* additional members */
1175 : };
1176 :
1177 : /* Implementation file */
1178 : NS_IMPL_ISUPPORTS(nsGlobalProcessScriptLoader, nsIGlobalProcessScriptLoader)
1179 :
1180 : nsGlobalProcessScriptLoader::nsGlobalProcessScriptLoader()
1181 : {
1182 : /* member initializers and constructor code */
1183 : }
1184 :
1185 : nsGlobalProcessScriptLoader::~nsGlobalProcessScriptLoader()
1186 : {
1187 : /* destructor code */
1188 : }
1189 :
1190 : /* [implicit_jscontext] readonly attribute jsval initialProcessData; */
1191 : NS_IMETHODIMP nsGlobalProcessScriptLoader::GetInitialProcessData(JSContext* cx, JS::MutableHandleValue aInitialProcessData)
1192 : {
1193 : return NS_ERROR_NOT_IMPLEMENTED;
1194 : }
1195 :
1196 : /* End of implementation class template. */
1197 : #endif
1198 :
1199 :
1200 : #endif /* __gen_nsIMessageManager_h__ */
|