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