Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/net/PRtspChannelChild.h"
8 :
9 : #include "mozilla/net/PNeckoChild.h"
10 :
11 : #include "nsIFile.h"
12 : #include "GeckoProfiler.h"
13 :
14 : namespace mozilla {
15 : namespace net {
16 :
17 :
18 0 : auto PRtspChannelChild::ActorDestroy(ActorDestroyReason aWhy) -> void
19 : {
20 0 : }
21 :
22 0 : MOZ_IMPLICIT PRtspChannelChild::PRtspChannelChild() :
23 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
24 0 : mState(PRtspChannel::__Dead)
25 : {
26 0 : MOZ_COUNT_CTOR(PRtspChannelChild);
27 0 : }
28 :
29 0 : PRtspChannelChild::~PRtspChannelChild()
30 : {
31 0 : MOZ_COUNT_DTOR(PRtspChannelChild);
32 0 : }
33 :
34 0 : auto PRtspChannelChild::Manager() const -> PNeckoChild*
35 : {
36 0 : return static_cast<PNeckoChild*>(IProtocol::Manager());
37 : }
38 :
39 0 : auto PRtspChannelChild::Send__delete__(PRtspChannelChild* actor) -> bool
40 : {
41 0 : if ((!(actor))) {
42 0 : return false;
43 : }
44 :
45 0 : IPC::Message* msg__ = PRtspChannel::Msg___delete__((actor)->Id());
46 :
47 0 : (actor)->Write(actor, msg__, false);
48 : // Sentinel = 'actor'
49 0 : (msg__)->WriteSentinel(875202478);
50 :
51 :
52 :
53 0 : if (mozilla::ipc::LoggingEnabledFor("PRtspChannelChild")) {
54 0 : mozilla::ipc::LogMessageForProtocol("PRtspChannelChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
55 : }
56 0 : AUTO_PROFILER_LABEL("PRtspChannel::Msg___delete__", OTHER);
57 0 : PRtspChannel::Transition(PRtspChannel::Msg___delete____ID, (&((actor)->mState)));
58 :
59 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
60 :
61 0 : IProtocol* mgr = (actor)->Manager();
62 0 : (actor)->DestroySubtree(Deletion);
63 0 : (actor)->DeallocSubtree();
64 0 : (mgr)->RemoveManagee(PRtspChannelMsgStart, actor);
65 0 : return sendok__;
66 : }
67 :
68 0 : auto PRtspChannelChild::RemoveManagee(
69 : int32_t aProtocolId,
70 : ProtocolBase* aListener) -> void
71 : {
72 0 : FatalError("unreached");
73 0 : return;
74 : }
75 :
76 0 : auto PRtspChannelChild::OnMessageReceived(const Message& msg__) -> PRtspChannelChild::Result
77 : {
78 0 : switch ((msg__).type()) {
79 : case PRtspChannel::Reply___delete____ID:
80 : {
81 0 : return MsgProcessed;
82 : }
83 : default:
84 : {
85 0 : return MsgNotKnown;
86 : }
87 : }
88 : }
89 :
90 0 : auto PRtspChannelChild::OnMessageReceived(
91 : const Message& msg__,
92 : Message*& reply__) -> PRtspChannelChild::Result
93 : {
94 0 : return MsgNotKnown;
95 : }
96 :
97 0 : auto PRtspChannelChild::OnCallReceived(
98 : const Message& msg__,
99 : Message*& reply__) -> PRtspChannelChild::Result
100 : {
101 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
102 : return MsgNotKnown;
103 : }
104 :
105 0 : auto PRtspChannelChild::GetProtocolTypeId() -> int32_t
106 : {
107 0 : return PRtspChannelMsgStart;
108 : }
109 :
110 0 : auto PRtspChannelChild::ProtocolName() const -> const char*
111 : {
112 0 : return "PRtspChannelChild";
113 : }
114 :
115 0 : auto PRtspChannelChild::DestroySubtree(ActorDestroyReason why) -> void
116 : {
117 : // Unregister from our manager.
118 0 : Unregister(Id());
119 :
120 : // Reject owning pending promises.
121 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
122 :
123 : // Finally, destroy "us".
124 0 : ActorDestroy(why);
125 0 : }
126 :
127 0 : auto PRtspChannelChild::DeallocSubtree() -> void
128 : {
129 0 : }
130 :
131 0 : auto PRtspChannelChild::Write(
132 : const PRtspChannelChild* v__,
133 : Message* msg__,
134 : bool nullable__) -> void
135 : {
136 : int32_t id;
137 0 : if ((!(v__))) {
138 0 : if ((!(nullable__))) {
139 0 : FatalError("NULL actor value passed to non-nullable param");
140 : }
141 0 : id = 0;
142 : }
143 : else {
144 0 : id = (v__)->Id();
145 0 : if ((1) == (id)) {
146 0 : FatalError("actor has been |delete|d");
147 : }
148 : }
149 :
150 0 : Write(id, msg__);
151 0 : }
152 :
153 0 : auto PRtspChannelChild::Read(
154 : PRtspChannelChild** v__,
155 : const Message* msg__,
156 : PickleIterator* iter__,
157 : bool nullable__) -> bool
158 : {
159 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PRtspChannel", PRtspChannelMsgStart);
160 0 : if ((actor).isNothing()) {
161 0 : return false;
162 : }
163 :
164 0 : (*(v__)) = static_cast<PRtspChannelChild*>((actor).value());
165 0 : return true;
166 : }
167 :
168 :
169 :
170 : } // namespace net
171 : } // namespace mozilla
|