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