Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PPresentation.h"
8 :
9 : namespace mozilla {
10 : namespace dom {
11 : namespace PPresentation {
12 :
13 : nsresult
14 0 : CreateEndpoints(
15 : base::ProcessId aParentDestPid,
16 : base::ProcessId aChildDestPid,
17 : mozilla::ipc::Endpoint<mozilla::dom::PPresentationParent>* aParent,
18 : mozilla::ipc::Endpoint<mozilla::dom::PPresentationChild>* aChild)
19 : {
20 0 : return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PPresentationMsgStart, PPresentationMsgStartChild, aParent, aChild);
21 : }
22 : void
23 0 : Transition(
24 : MessageType msg,
25 : State* next)
26 : {
27 0 : switch ((*(next))) {
28 : case __Null:
29 0 : if ((Msg___delete____ID) == (msg)) {
30 0 : (*(next)) = __Dead;
31 : }
32 0 : break;
33 : case __Dead:
34 0 : mozilla::ipc::LogicError("__delete__()d actor");
35 0 : break;
36 : default:
37 0 : mozilla::ipc::LogicError("corrupted actor state");
38 0 : break;
39 : }
40 0 : }
41 : IPC::Message*
42 0 : Msg_NotifyAvailableChange(int32_t routingId)
43 : {
44 0 : return new IPC::Message(routingId, Msg_NotifyAvailableChange__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifyAvailableChange", true);
45 : }
46 : IPC::Message*
47 0 : Msg_NotifySessionStateChange(int32_t routingId)
48 : {
49 0 : return new IPC::Message(routingId, Msg_NotifySessionStateChange__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifySessionStateChange", true);
50 : }
51 : IPC::Message*
52 0 : Msg_NotifyMessage(int32_t routingId)
53 : {
54 0 : return new IPC::Message(routingId, Msg_NotifyMessage__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifyMessage", true);
55 : }
56 : IPC::Message*
57 0 : Msg_NotifySessionConnect(int32_t routingId)
58 : {
59 0 : return new IPC::Message(routingId, Msg_NotifySessionConnect__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifySessionConnect", true);
60 : }
61 : IPC::Message*
62 0 : Msg_NotifyCloseSessionTransport(int32_t routingId)
63 : {
64 0 : return new IPC::Message(routingId, Msg_NotifyCloseSessionTransport__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifyCloseSessionTransport", true);
65 : }
66 : IPC::Message*
67 0 : Msg_PPresentationBuilderConstructor(int32_t routingId)
68 : {
69 0 : return new IPC::Message(routingId, Msg_PPresentationBuilderConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_PPresentationBuilderConstructor", true);
70 : }
71 : IPC::Message*
72 0 : Reply_PPresentationBuilderConstructor(int32_t routingId)
73 : {
74 0 : return new IPC::Message(routingId, Reply_PPresentationBuilderConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Reply_PPresentationBuilderConstructor", true);
75 : }
76 : IPC::Message*
77 0 : Msg___delete__(int32_t routingId)
78 : {
79 0 : return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg___delete__", true);
80 : }
81 : IPC::Message*
82 0 : Reply___delete__(int32_t routingId)
83 : {
84 0 : return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Reply___delete__", true);
85 : }
86 : IPC::Message*
87 0 : Msg_RegisterAvailabilityHandler(int32_t routingId)
88 : {
89 0 : return new IPC::Message(routingId, Msg_RegisterAvailabilityHandler__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_RegisterAvailabilityHandler", true);
90 : }
91 : IPC::Message*
92 0 : Msg_UnregisterAvailabilityHandler(int32_t routingId)
93 : {
94 0 : return new IPC::Message(routingId, Msg_UnregisterAvailabilityHandler__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_UnregisterAvailabilityHandler", true);
95 : }
96 : IPC::Message*
97 0 : Msg_RegisterSessionHandler(int32_t routingId)
98 : {
99 0 : return new IPC::Message(routingId, Msg_RegisterSessionHandler__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_RegisterSessionHandler", true);
100 : }
101 : IPC::Message*
102 0 : Msg_UnregisterSessionHandler(int32_t routingId)
103 : {
104 0 : return new IPC::Message(routingId, Msg_UnregisterSessionHandler__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_UnregisterSessionHandler", true);
105 : }
106 : IPC::Message*
107 0 : Msg_RegisterRespondingHandler(int32_t routingId)
108 : {
109 0 : return new IPC::Message(routingId, Msg_RegisterRespondingHandler__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_RegisterRespondingHandler", true);
110 : }
111 : IPC::Message*
112 0 : Msg_UnregisterRespondingHandler(int32_t routingId)
113 : {
114 0 : return new IPC::Message(routingId, Msg_UnregisterRespondingHandler__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_UnregisterRespondingHandler", true);
115 : }
116 : IPC::Message*
117 0 : Msg_PPresentationRequestConstructor(int32_t routingId)
118 : {
119 0 : return new IPC::Message(routingId, Msg_PPresentationRequestConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_PPresentationRequestConstructor", true);
120 : }
121 : IPC::Message*
122 0 : Reply_PPresentationRequestConstructor(int32_t routingId)
123 : {
124 0 : return new IPC::Message(routingId, Reply_PPresentationRequestConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Reply_PPresentationRequestConstructor", true);
125 : }
126 : IPC::Message*
127 0 : Msg_NotifyReceiverReady(int32_t routingId)
128 : {
129 0 : return new IPC::Message(routingId, Msg_NotifyReceiverReady__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifyReceiverReady", true);
130 : }
131 : IPC::Message*
132 0 : Msg_NotifyTransportClosed(int32_t routingId)
133 : {
134 0 : return new IPC::Message(routingId, Msg_NotifyTransportClosed__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPresentation::Msg_NotifyTransportClosed", true);
135 : }
136 :
137 : } // namespace PPresentation
138 : } // namespace dom
139 : } // namespace mozilla
140 :
141 : //-----------------------------------------------------------------------------
142 : // Method definitions for the IPDL type |struct StartSessionRequest|
143 : //
144 : namespace mozilla {
145 : namespace dom {
146 0 : MOZ_IMPLICIT StartSessionRequest::StartSessionRequest() :
147 : sessionId_(),
148 : origin_(),
149 : deviceId_(),
150 : windowId_(),
151 : tabId_(),
152 0 : principal_()
153 : {
154 0 : Init();
155 0 : }
156 :
157 0 : StartSessionRequest::~StartSessionRequest()
158 : {
159 0 : }
160 :
161 0 : auto StartSessionRequest::operator==(const StartSessionRequest& _o) const -> bool
162 : {
163 0 : if ((!((urls()) == ((_o).urls())))) {
164 0 : return false;
165 : }
166 0 : if ((!((sessionId()) == ((_o).sessionId())))) {
167 0 : return false;
168 : }
169 0 : if ((!((origin()) == ((_o).origin())))) {
170 0 : return false;
171 : }
172 0 : if ((!((deviceId()) == ((_o).deviceId())))) {
173 0 : return false;
174 : }
175 0 : if ((!((windowId()) == ((_o).windowId())))) {
176 0 : return false;
177 : }
178 0 : if ((!((tabId()) == ((_o).tabId())))) {
179 0 : return false;
180 : }
181 0 : if ((!((principal()) == ((_o).principal())))) {
182 0 : return false;
183 : }
184 0 : return true;
185 : }
186 :
187 0 : auto StartSessionRequest::operator!=(const StartSessionRequest& _o) const -> bool
188 : {
189 0 : return (!(operator==(_o)));
190 : }
191 :
192 0 : auto StartSessionRequest::Init() -> void
193 : {
194 0 : }
195 :
196 0 : auto StartSessionRequest::Assign(
197 : const nsTArray<nsString>& _urls,
198 : const nsString& _sessionId,
199 : const nsString& _origin,
200 : const nsString& _deviceId,
201 : const uint64_t& _windowId,
202 : const TabId& _tabId,
203 : const Principal& _principal) -> void
204 : {
205 0 : urls_ = _urls;
206 0 : sessionId_ = _sessionId;
207 0 : origin_ = _origin;
208 0 : deviceId_ = _deviceId;
209 0 : windowId_ = _windowId;
210 0 : tabId_ = _tabId;
211 0 : principal_ = _principal;
212 0 : }
213 :
214 : } // namespace dom
215 : } // namespace mozilla
216 :
217 : //-----------------------------------------------------------------------------
218 : // Method definitions for the IPDL type |struct SendSessionMessageRequest|
219 : //
220 : namespace mozilla {
221 : namespace dom {
222 0 : MOZ_IMPLICIT SendSessionMessageRequest::SendSessionMessageRequest() :
223 : sessionId_(),
224 : role_(),
225 0 : data_()
226 : {
227 0 : Init();
228 0 : }
229 :
230 0 : SendSessionMessageRequest::~SendSessionMessageRequest()
231 : {
232 0 : }
233 :
234 0 : auto SendSessionMessageRequest::operator==(const SendSessionMessageRequest& _o) const -> bool
235 : {
236 0 : if ((!((sessionId()) == ((_o).sessionId())))) {
237 0 : return false;
238 : }
239 0 : if ((!((role()) == ((_o).role())))) {
240 0 : return false;
241 : }
242 0 : if ((!((data()) == ((_o).data())))) {
243 0 : return false;
244 : }
245 0 : return true;
246 : }
247 :
248 0 : auto SendSessionMessageRequest::operator!=(const SendSessionMessageRequest& _o) const -> bool
249 : {
250 0 : return (!(operator==(_o)));
251 : }
252 :
253 0 : auto SendSessionMessageRequest::Init() -> void
254 : {
255 0 : }
256 :
257 0 : auto SendSessionMessageRequest::Assign(
258 : const nsString& _sessionId,
259 : const uint8_t& _role,
260 : const nsString& _data) -> void
261 : {
262 0 : sessionId_ = _sessionId;
263 0 : role_ = _role;
264 0 : data_ = _data;
265 0 : }
266 :
267 : } // namespace dom
268 : } // namespace mozilla
269 :
270 : //-----------------------------------------------------------------------------
271 : // Method definitions for the IPDL type |struct CloseSessionRequest|
272 : //
273 : namespace mozilla {
274 : namespace dom {
275 0 : MOZ_IMPLICIT CloseSessionRequest::CloseSessionRequest() :
276 : sessionId_(),
277 : role_(),
278 0 : closedReason_()
279 : {
280 0 : Init();
281 0 : }
282 :
283 0 : CloseSessionRequest::~CloseSessionRequest()
284 : {
285 0 : }
286 :
287 0 : auto CloseSessionRequest::operator==(const CloseSessionRequest& _o) const -> bool
288 : {
289 0 : if ((!((sessionId()) == ((_o).sessionId())))) {
290 0 : return false;
291 : }
292 0 : if ((!((role()) == ((_o).role())))) {
293 0 : return false;
294 : }
295 0 : if ((!((closedReason()) == ((_o).closedReason())))) {
296 0 : return false;
297 : }
298 0 : return true;
299 : }
300 :
301 0 : auto CloseSessionRequest::operator!=(const CloseSessionRequest& _o) const -> bool
302 : {
303 0 : return (!(operator==(_o)));
304 : }
305 :
306 0 : auto CloseSessionRequest::Init() -> void
307 : {
308 0 : }
309 :
310 0 : auto CloseSessionRequest::Assign(
311 : const nsString& _sessionId,
312 : const uint8_t& _role,
313 : const uint8_t& _closedReason) -> void
314 : {
315 0 : sessionId_ = _sessionId;
316 0 : role_ = _role;
317 0 : closedReason_ = _closedReason;
318 0 : }
319 :
320 : } // namespace dom
321 : } // namespace mozilla
322 :
323 : //-----------------------------------------------------------------------------
324 : // Method definitions for the IPDL type |struct TerminateSessionRequest|
325 : //
326 : namespace mozilla {
327 : namespace dom {
328 0 : MOZ_IMPLICIT TerminateSessionRequest::TerminateSessionRequest() :
329 : sessionId_(),
330 0 : role_()
331 : {
332 0 : Init();
333 0 : }
334 :
335 0 : TerminateSessionRequest::~TerminateSessionRequest()
336 : {
337 0 : }
338 :
339 0 : auto TerminateSessionRequest::operator==(const TerminateSessionRequest& _o) const -> bool
340 : {
341 0 : if ((!((sessionId()) == ((_o).sessionId())))) {
342 0 : return false;
343 : }
344 0 : if ((!((role()) == ((_o).role())))) {
345 0 : return false;
346 : }
347 0 : return true;
348 : }
349 :
350 0 : auto TerminateSessionRequest::operator!=(const TerminateSessionRequest& _o) const -> bool
351 : {
352 0 : return (!(operator==(_o)));
353 : }
354 :
355 0 : auto TerminateSessionRequest::Init() -> void
356 : {
357 0 : }
358 :
359 0 : auto TerminateSessionRequest::Assign(
360 : const nsString& _sessionId,
361 : const uint8_t& _role) -> void
362 : {
363 0 : sessionId_ = _sessionId;
364 0 : role_ = _role;
365 0 : }
366 :
367 : } // namespace dom
368 : } // namespace mozilla
369 :
370 : //-----------------------------------------------------------------------------
371 : // Method definitions for the IPDL type |struct ReconnectSessionRequest|
372 : //
373 : namespace mozilla {
374 : namespace dom {
375 0 : MOZ_IMPLICIT ReconnectSessionRequest::ReconnectSessionRequest() :
376 : sessionId_(),
377 0 : role_()
378 : {
379 0 : Init();
380 0 : }
381 :
382 0 : ReconnectSessionRequest::~ReconnectSessionRequest()
383 : {
384 0 : }
385 :
386 0 : auto ReconnectSessionRequest::operator==(const ReconnectSessionRequest& _o) const -> bool
387 : {
388 0 : if ((!((urls()) == ((_o).urls())))) {
389 0 : return false;
390 : }
391 0 : if ((!((sessionId()) == ((_o).sessionId())))) {
392 0 : return false;
393 : }
394 0 : if ((!((role()) == ((_o).role())))) {
395 0 : return false;
396 : }
397 0 : return true;
398 : }
399 :
400 0 : auto ReconnectSessionRequest::operator!=(const ReconnectSessionRequest& _o) const -> bool
401 : {
402 0 : return (!(operator==(_o)));
403 : }
404 :
405 0 : auto ReconnectSessionRequest::Init() -> void
406 : {
407 0 : }
408 :
409 0 : auto ReconnectSessionRequest::Assign(
410 : const nsTArray<nsString>& _urls,
411 : const nsString& _sessionId,
412 : const uint8_t& _role) -> void
413 : {
414 0 : urls_ = _urls;
415 0 : sessionId_ = _sessionId;
416 0 : role_ = _role;
417 0 : }
418 :
419 : } // namespace dom
420 : } // namespace mozilla
421 :
422 : //-----------------------------------------------------------------------------
423 : // Method definitions for the IPDL type |struct BuildTransportRequest|
424 : //
425 : namespace mozilla {
426 : namespace dom {
427 0 : MOZ_IMPLICIT BuildTransportRequest::BuildTransportRequest() :
428 : sessionId_(),
429 0 : role_()
430 : {
431 0 : Init();
432 0 : }
433 :
434 0 : BuildTransportRequest::~BuildTransportRequest()
435 : {
436 0 : }
437 :
438 0 : auto BuildTransportRequest::operator==(const BuildTransportRequest& _o) const -> bool
439 : {
440 0 : if ((!((sessionId()) == ((_o).sessionId())))) {
441 0 : return false;
442 : }
443 0 : if ((!((role()) == ((_o).role())))) {
444 0 : return false;
445 : }
446 0 : return true;
447 : }
448 :
449 0 : auto BuildTransportRequest::operator!=(const BuildTransportRequest& _o) const -> bool
450 : {
451 0 : return (!(operator==(_o)));
452 : }
453 :
454 0 : auto BuildTransportRequest::Init() -> void
455 : {
456 0 : }
457 :
458 0 : auto BuildTransportRequest::Assign(
459 : const nsString& _sessionId,
460 : const uint8_t& _role) -> void
461 : {
462 0 : sessionId_ = _sessionId;
463 0 : role_ = _role;
464 0 : }
465 :
466 : } // namespace dom
467 : } // namespace mozilla
468 :
469 : //-----------------------------------------------------------------------------
470 : // Method definitions for the IPDL type |union PresentationIPCRequest|
471 : //
472 : namespace mozilla {
473 : namespace dom {
474 0 : auto PresentationIPCRequest::MaybeDestroy(Type aNewType) -> bool
475 : {
476 0 : if ((mType) == (T__None)) {
477 0 : return true;
478 : }
479 0 : if ((mType) == (aNewType)) {
480 0 : return false;
481 : }
482 0 : switch (mType) {
483 : case TStartSessionRequest:
484 : {
485 0 : (ptr_StartSessionRequest())->~StartSessionRequest__tdef();
486 0 : break;
487 : }
488 : case TSendSessionMessageRequest:
489 : {
490 0 : (ptr_SendSessionMessageRequest())->~SendSessionMessageRequest__tdef();
491 0 : break;
492 : }
493 : case TCloseSessionRequest:
494 : {
495 0 : (ptr_CloseSessionRequest())->~CloseSessionRequest__tdef();
496 0 : break;
497 : }
498 : case TTerminateSessionRequest:
499 : {
500 0 : (ptr_TerminateSessionRequest())->~TerminateSessionRequest__tdef();
501 0 : break;
502 : }
503 : case TReconnectSessionRequest:
504 : {
505 0 : (ptr_ReconnectSessionRequest())->~ReconnectSessionRequest__tdef();
506 0 : break;
507 : }
508 : case TBuildTransportRequest:
509 : {
510 0 : (ptr_BuildTransportRequest())->~BuildTransportRequest__tdef();
511 0 : break;
512 : }
513 : default:
514 : {
515 0 : mozilla::ipc::LogicError("not reached");
516 0 : break;
517 : }
518 : }
519 0 : return true;
520 : }
521 :
522 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const StartSessionRequest& aOther)
523 : {
524 0 : new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest(aOther);
525 0 : mType = TStartSessionRequest;
526 0 : }
527 :
528 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const SendSessionMessageRequest& aOther)
529 : {
530 0 : new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest(aOther);
531 0 : mType = TSendSessionMessageRequest;
532 0 : }
533 :
534 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const CloseSessionRequest& aOther)
535 : {
536 0 : new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest(aOther);
537 0 : mType = TCloseSessionRequest;
538 0 : }
539 :
540 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const TerminateSessionRequest& aOther)
541 : {
542 0 : new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest(aOther);
543 0 : mType = TTerminateSessionRequest;
544 0 : }
545 :
546 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const ReconnectSessionRequest& aOther)
547 : {
548 0 : new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest(aOther);
549 0 : mType = TReconnectSessionRequest;
550 0 : }
551 :
552 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const BuildTransportRequest& aOther)
553 : {
554 0 : new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest(aOther);
555 0 : mType = TBuildTransportRequest;
556 0 : }
557 :
558 0 : MOZ_IMPLICIT PresentationIPCRequest::PresentationIPCRequest(const PresentationIPCRequest& aOther)
559 : {
560 0 : (aOther).AssertSanity();
561 0 : switch ((aOther).type()) {
562 : case TStartSessionRequest:
563 : {
564 0 : new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest((aOther).get_StartSessionRequest());
565 0 : break;
566 : }
567 : case TSendSessionMessageRequest:
568 : {
569 0 : new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest((aOther).get_SendSessionMessageRequest());
570 0 : break;
571 : }
572 : case TCloseSessionRequest:
573 : {
574 0 : new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest((aOther).get_CloseSessionRequest());
575 0 : break;
576 : }
577 : case TTerminateSessionRequest:
578 : {
579 0 : new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest((aOther).get_TerminateSessionRequest());
580 0 : break;
581 : }
582 : case TReconnectSessionRequest:
583 : {
584 0 : new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest((aOther).get_ReconnectSessionRequest());
585 0 : break;
586 : }
587 : case TBuildTransportRequest:
588 : {
589 0 : new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest((aOther).get_BuildTransportRequest());
590 0 : break;
591 : }
592 : case T__None:
593 : {
594 0 : break;
595 : }
596 : default:
597 : {
598 0 : mozilla::ipc::LogicError("unreached");
599 0 : return;
600 : }
601 : }
602 0 : mType = (aOther).type();
603 : }
604 :
605 0 : PresentationIPCRequest::~PresentationIPCRequest()
606 : {
607 0 : static_cast<void>(MaybeDestroy(T__None));
608 0 : }
609 :
610 0 : auto PresentationIPCRequest::operator=(const StartSessionRequest& aRhs) -> PresentationIPCRequest&
611 : {
612 0 : if (MaybeDestroy(TStartSessionRequest)) {
613 0 : new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest;
614 : }
615 0 : (*(ptr_StartSessionRequest())) = aRhs;
616 0 : mType = TStartSessionRequest;
617 0 : return (*(this));
618 : }
619 :
620 0 : auto PresentationIPCRequest::operator=(const SendSessionMessageRequest& aRhs) -> PresentationIPCRequest&
621 : {
622 0 : if (MaybeDestroy(TSendSessionMessageRequest)) {
623 0 : new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest;
624 : }
625 0 : (*(ptr_SendSessionMessageRequest())) = aRhs;
626 0 : mType = TSendSessionMessageRequest;
627 0 : return (*(this));
628 : }
629 :
630 0 : auto PresentationIPCRequest::operator=(const CloseSessionRequest& aRhs) -> PresentationIPCRequest&
631 : {
632 0 : if (MaybeDestroy(TCloseSessionRequest)) {
633 0 : new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest;
634 : }
635 0 : (*(ptr_CloseSessionRequest())) = aRhs;
636 0 : mType = TCloseSessionRequest;
637 0 : return (*(this));
638 : }
639 :
640 0 : auto PresentationIPCRequest::operator=(const TerminateSessionRequest& aRhs) -> PresentationIPCRequest&
641 : {
642 0 : if (MaybeDestroy(TTerminateSessionRequest)) {
643 0 : new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest;
644 : }
645 0 : (*(ptr_TerminateSessionRequest())) = aRhs;
646 0 : mType = TTerminateSessionRequest;
647 0 : return (*(this));
648 : }
649 :
650 0 : auto PresentationIPCRequest::operator=(const ReconnectSessionRequest& aRhs) -> PresentationIPCRequest&
651 : {
652 0 : if (MaybeDestroy(TReconnectSessionRequest)) {
653 0 : new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest;
654 : }
655 0 : (*(ptr_ReconnectSessionRequest())) = aRhs;
656 0 : mType = TReconnectSessionRequest;
657 0 : return (*(this));
658 : }
659 :
660 0 : auto PresentationIPCRequest::operator=(const BuildTransportRequest& aRhs) -> PresentationIPCRequest&
661 : {
662 0 : if (MaybeDestroy(TBuildTransportRequest)) {
663 0 : new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest;
664 : }
665 0 : (*(ptr_BuildTransportRequest())) = aRhs;
666 0 : mType = TBuildTransportRequest;
667 0 : return (*(this));
668 : }
669 :
670 0 : auto PresentationIPCRequest::operator=(const PresentationIPCRequest& aRhs) -> PresentationIPCRequest&
671 : {
672 0 : (aRhs).AssertSanity();
673 0 : Type t = (aRhs).type();
674 0 : switch (t) {
675 : case TStartSessionRequest:
676 : {
677 0 : if (MaybeDestroy(t)) {
678 0 : new (mozilla::KnownNotNull, ptr_StartSessionRequest()) StartSessionRequest;
679 : }
680 0 : (*(ptr_StartSessionRequest())) = (aRhs).get_StartSessionRequest();
681 0 : break;
682 : }
683 : case TSendSessionMessageRequest:
684 : {
685 0 : if (MaybeDestroy(t)) {
686 0 : new (mozilla::KnownNotNull, ptr_SendSessionMessageRequest()) SendSessionMessageRequest;
687 : }
688 0 : (*(ptr_SendSessionMessageRequest())) = (aRhs).get_SendSessionMessageRequest();
689 0 : break;
690 : }
691 : case TCloseSessionRequest:
692 : {
693 0 : if (MaybeDestroy(t)) {
694 0 : new (mozilla::KnownNotNull, ptr_CloseSessionRequest()) CloseSessionRequest;
695 : }
696 0 : (*(ptr_CloseSessionRequest())) = (aRhs).get_CloseSessionRequest();
697 0 : break;
698 : }
699 : case TTerminateSessionRequest:
700 : {
701 0 : if (MaybeDestroy(t)) {
702 0 : new (mozilla::KnownNotNull, ptr_TerminateSessionRequest()) TerminateSessionRequest;
703 : }
704 0 : (*(ptr_TerminateSessionRequest())) = (aRhs).get_TerminateSessionRequest();
705 0 : break;
706 : }
707 : case TReconnectSessionRequest:
708 : {
709 0 : if (MaybeDestroy(t)) {
710 0 : new (mozilla::KnownNotNull, ptr_ReconnectSessionRequest()) ReconnectSessionRequest;
711 : }
712 0 : (*(ptr_ReconnectSessionRequest())) = (aRhs).get_ReconnectSessionRequest();
713 0 : break;
714 : }
715 : case TBuildTransportRequest:
716 : {
717 0 : if (MaybeDestroy(t)) {
718 0 : new (mozilla::KnownNotNull, ptr_BuildTransportRequest()) BuildTransportRequest;
719 : }
720 0 : (*(ptr_BuildTransportRequest())) = (aRhs).get_BuildTransportRequest();
721 0 : break;
722 : }
723 : case T__None:
724 : {
725 0 : static_cast<void>(MaybeDestroy(t));
726 0 : break;
727 : }
728 : default:
729 : {
730 0 : mozilla::ipc::LogicError("unreached");
731 0 : break;
732 : }
733 : }
734 0 : mType = t;
735 0 : return (*(this));
736 : }
737 :
738 0 : auto PresentationIPCRequest::operator==(const StartSessionRequest& aRhs) const -> bool
739 : {
740 0 : return (get_StartSessionRequest()) == (aRhs);
741 : }
742 :
743 0 : auto PresentationIPCRequest::operator==(const SendSessionMessageRequest& aRhs) const -> bool
744 : {
745 0 : return (get_SendSessionMessageRequest()) == (aRhs);
746 : }
747 :
748 0 : auto PresentationIPCRequest::operator==(const CloseSessionRequest& aRhs) const -> bool
749 : {
750 0 : return (get_CloseSessionRequest()) == (aRhs);
751 : }
752 :
753 0 : auto PresentationIPCRequest::operator==(const TerminateSessionRequest& aRhs) const -> bool
754 : {
755 0 : return (get_TerminateSessionRequest()) == (aRhs);
756 : }
757 :
758 0 : auto PresentationIPCRequest::operator==(const ReconnectSessionRequest& aRhs) const -> bool
759 : {
760 0 : return (get_ReconnectSessionRequest()) == (aRhs);
761 : }
762 :
763 0 : auto PresentationIPCRequest::operator==(const BuildTransportRequest& aRhs) const -> bool
764 : {
765 0 : return (get_BuildTransportRequest()) == (aRhs);
766 : }
767 :
768 0 : auto PresentationIPCRequest::operator==(const PresentationIPCRequest& aRhs) const -> bool
769 : {
770 0 : if ((type()) != ((aRhs).type())) {
771 0 : return false;
772 : }
773 :
774 0 : switch (type()) {
775 : case TStartSessionRequest:
776 : {
777 0 : return (get_StartSessionRequest()) == ((aRhs).get_StartSessionRequest());
778 : }
779 : case TSendSessionMessageRequest:
780 : {
781 0 : return (get_SendSessionMessageRequest()) == ((aRhs).get_SendSessionMessageRequest());
782 : }
783 : case TCloseSessionRequest:
784 : {
785 0 : return (get_CloseSessionRequest()) == ((aRhs).get_CloseSessionRequest());
786 : }
787 : case TTerminateSessionRequest:
788 : {
789 0 : return (get_TerminateSessionRequest()) == ((aRhs).get_TerminateSessionRequest());
790 : }
791 : case TReconnectSessionRequest:
792 : {
793 0 : return (get_ReconnectSessionRequest()) == ((aRhs).get_ReconnectSessionRequest());
794 : }
795 : case TBuildTransportRequest:
796 : {
797 0 : return (get_BuildTransportRequest()) == ((aRhs).get_BuildTransportRequest());
798 : }
799 : default:
800 : {
801 0 : mozilla::ipc::LogicError("unreached");
802 0 : return false;
803 : }
804 : }
805 : }
806 :
807 0 : auto PresentationIPCRequest::get(StartSessionRequest* aOutValue) const -> void
808 : {
809 0 : (*(aOutValue)) = get_StartSessionRequest();
810 0 : }
811 :
812 0 : auto PresentationIPCRequest::get(SendSessionMessageRequest* aOutValue) const -> void
813 : {
814 0 : (*(aOutValue)) = get_SendSessionMessageRequest();
815 0 : }
816 :
817 0 : auto PresentationIPCRequest::get(CloseSessionRequest* aOutValue) const -> void
818 : {
819 0 : (*(aOutValue)) = get_CloseSessionRequest();
820 0 : }
821 :
822 0 : auto PresentationIPCRequest::get(TerminateSessionRequest* aOutValue) const -> void
823 : {
824 0 : (*(aOutValue)) = get_TerminateSessionRequest();
825 0 : }
826 :
827 0 : auto PresentationIPCRequest::get(ReconnectSessionRequest* aOutValue) const -> void
828 : {
829 0 : (*(aOutValue)) = get_ReconnectSessionRequest();
830 0 : }
831 :
832 0 : auto PresentationIPCRequest::get(BuildTransportRequest* aOutValue) const -> void
833 : {
834 0 : (*(aOutValue)) = get_BuildTransportRequest();
835 0 : }
836 :
837 : } // namespace dom
838 : } // namespace mozilla
|