/work/obj-fuzz/ipc/ipdl/PHandlerService.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/dom/PContentParent.h" |
8 | | #include "mozilla/dom/PContentChild.h" |
9 | | #include "mozilla/dom/PHandlerService.h" |
10 | | |
11 | | namespace mozilla { |
12 | | namespace dom { |
13 | | namespace PHandlerService { |
14 | | |
15 | | nsresult |
16 | | CreateEndpoints( |
17 | | base::ProcessId aParentDestPid, |
18 | | base::ProcessId aChildDestPid, |
19 | | mozilla::ipc::Endpoint<mozilla::dom::PHandlerServiceParent>* aParent, |
20 | | mozilla::ipc::Endpoint<mozilla::dom::PHandlerServiceChild>* aChild) |
21 | 0 | { |
22 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
23 | 0 | } |
24 | | IPC::Message* |
25 | | Msg_FillHandlerInfo(int32_t routingId) |
26 | 0 | { |
27 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_FillHandlerInfo__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
28 | 0 | } |
29 | | IPC::Message* |
30 | | Reply_FillHandlerInfo(int32_t routingId) |
31 | 0 | { |
32 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_FillHandlerInfo__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
33 | 0 | } |
34 | | IPC::Message* |
35 | | Msg_ExistsForProtocol(int32_t routingId) |
36 | 0 | { |
37 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_ExistsForProtocol__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
38 | 0 | } |
39 | | IPC::Message* |
40 | | Reply_ExistsForProtocol(int32_t routingId) |
41 | 0 | { |
42 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_ExistsForProtocol__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
43 | 0 | } |
44 | | IPC::Message* |
45 | | Msg_Exists(int32_t routingId) |
46 | 0 | { |
47 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_Exists__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
48 | 0 | } |
49 | | IPC::Message* |
50 | | Reply_Exists(int32_t routingId) |
51 | 0 | { |
52 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_Exists__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
53 | 0 | } |
54 | | IPC::Message* |
55 | | Msg_GetTypeFromExtension(int32_t routingId) |
56 | 0 | { |
57 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_GetTypeFromExtension__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
58 | 0 | } |
59 | | IPC::Message* |
60 | | Reply_GetTypeFromExtension(int32_t routingId) |
61 | 0 | { |
62 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_GetTypeFromExtension__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::SYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
63 | 0 | } |
64 | | IPC::Message* |
65 | | Msg___delete__(int32_t routingId) |
66 | 0 | { |
67 | 0 | return IPC::Message::IPDLMessage(routingId, Msg___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
68 | 0 | } |
69 | | IPC::Message* |
70 | | Reply___delete__(int32_t routingId) |
71 | 0 | { |
72 | 0 | return IPC::Message::IPDLMessage(routingId, Reply___delete____ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
73 | 0 | } |
74 | | |
75 | | } // namespace PHandlerService |
76 | | } // namespace dom |
77 | | } // namespace mozilla |
78 | | |
79 | | //----------------------------------------------------------------------------- |
80 | | // Method definitions for the IPDL type |struct HandlerApp| |
81 | | // |
82 | | namespace mozilla { |
83 | | namespace dom { |
84 | | auto HandlerApp::operator==(const HandlerApp& _o) const -> bool |
85 | 0 | { |
86 | 0 | if ((!((name()) == ((_o).name())))) { |
87 | 0 | return false; |
88 | 0 | } |
89 | 0 | if ((!((detailedDescription()) == ((_o).detailedDescription())))) { |
90 | 0 | return false; |
91 | 0 | } |
92 | 0 | return true; |
93 | 0 | } |
94 | | |
95 | | auto HandlerApp::operator!=(const HandlerApp& _o) const -> bool |
96 | 0 | { |
97 | 0 | return (!(operator==(_o))); |
98 | 0 | } |
99 | | |
100 | | } // namespace dom |
101 | | } // namespace mozilla |
102 | | |
103 | | namespace mozilla { |
104 | | namespace ipc { |
105 | | auto IPDLParamTraits<mozilla::dom::HandlerApp>::Write( |
106 | | IPC::Message* aMsg, |
107 | | mozilla::ipc::IProtocol* aActor, |
108 | | const paramType& aVar) -> void |
109 | 0 | { |
110 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).name()); |
111 | 0 | // Sentinel = 'name' |
112 | 0 | (aMsg)->WriteSentinel(15034981); |
113 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).detailedDescription()); |
114 | 0 | // Sentinel = 'detailedDescription' |
115 | 0 | (aMsg)->WriteSentinel(4289276469); |
116 | 0 | } |
117 | | |
118 | | auto IPDLParamTraits<mozilla::dom::HandlerApp>::Read( |
119 | | const IPC::Message* aMsg, |
120 | | PickleIterator* aIter, |
121 | | mozilla::ipc::IProtocol* aActor, |
122 | | paramType* aVar) -> bool |
123 | 0 | { |
124 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->name())))))) { |
125 | 0 | (aActor)->FatalError("Error deserializing 'name' (nsString) member of 'HandlerApp'"); |
126 | 0 | return false; |
127 | 0 | } |
128 | 0 | // Sentinel = 'name' |
129 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 15034981)))) { |
130 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'HandlerApp'"); |
131 | 0 | return false; |
132 | 0 | } |
133 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->detailedDescription())))))) { |
134 | 0 | (aActor)->FatalError("Error deserializing 'detailedDescription' (nsString) member of 'HandlerApp'"); |
135 | 0 | return false; |
136 | 0 | } |
137 | 0 | // Sentinel = 'detailedDescription' |
138 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4289276469)))) { |
139 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'detailedDescription' (nsString) member of 'HandlerApp'"); |
140 | 0 | return false; |
141 | 0 | } |
142 | 0 | return true; |
143 | 0 | } |
144 | | |
145 | | } // namespace ipc |
146 | | } // namespace mozilla |
147 | | |
148 | | //----------------------------------------------------------------------------- |
149 | | // Method definitions for the IPDL type |struct HandlerInfo| |
150 | | // |
151 | | namespace mozilla { |
152 | | namespace dom { |
153 | | auto HandlerInfo::operator==(const HandlerInfo& _o) const -> bool |
154 | 0 | { |
155 | 0 | if ((!((type()) == ((_o).type())))) { |
156 | 0 | return false; |
157 | 0 | } |
158 | 0 | if ((!((isMIMEInfo()) == ((_o).isMIMEInfo())))) { |
159 | 0 | return false; |
160 | 0 | } |
161 | 0 | if ((!((description()) == ((_o).description())))) { |
162 | 0 | return false; |
163 | 0 | } |
164 | 0 | if ((!((alwaysAskBeforeHandling()) == ((_o).alwaysAskBeforeHandling())))) { |
165 | 0 | return false; |
166 | 0 | } |
167 | 0 | if ((!((extensions()) == ((_o).extensions())))) { |
168 | 0 | return false; |
169 | 0 | } |
170 | 0 | if ((!((preferredApplicationHandler()) == ((_o).preferredApplicationHandler())))) { |
171 | 0 | return false; |
172 | 0 | } |
173 | 0 | if ((!((possibleApplicationHandlers()) == ((_o).possibleApplicationHandlers())))) { |
174 | 0 | return false; |
175 | 0 | } |
176 | 0 | if ((!((preferredAction()) == ((_o).preferredAction())))) { |
177 | 0 | return false; |
178 | 0 | } |
179 | 0 | return true; |
180 | 0 | } |
181 | | |
182 | | auto HandlerInfo::operator!=(const HandlerInfo& _o) const -> bool |
183 | 0 | { |
184 | 0 | return (!(operator==(_o))); |
185 | 0 | } |
186 | | |
187 | | } // namespace dom |
188 | | } // namespace mozilla |
189 | | |
190 | | namespace mozilla { |
191 | | namespace ipc { |
192 | | auto IPDLParamTraits<mozilla::dom::HandlerInfo>::Write( |
193 | | IPC::Message* aMsg, |
194 | | mozilla::ipc::IProtocol* aActor, |
195 | | const paramType& aVar) -> void |
196 | 0 | { |
197 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).type()); |
198 | 0 | // Sentinel = 'type' |
199 | 0 | (aMsg)->WriteSentinel(2982068540); |
200 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).isMIMEInfo()); |
201 | 0 | // Sentinel = 'isMIMEInfo' |
202 | 0 | (aMsg)->WriteSentinel(1069536950); |
203 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).description()); |
204 | 0 | // Sentinel = 'description' |
205 | 0 | (aMsg)->WriteSentinel(962879941); |
206 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).alwaysAskBeforeHandling()); |
207 | 0 | // Sentinel = 'alwaysAskBeforeHandling' |
208 | 0 | (aMsg)->WriteSentinel(1120635835); |
209 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).extensions()); |
210 | 0 | // Sentinel = 'extensions' |
211 | 0 | (aMsg)->WriteSentinel(743266036); |
212 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).preferredApplicationHandler()); |
213 | 0 | // Sentinel = 'preferredApplicationHandler' |
214 | 0 | (aMsg)->WriteSentinel(2543375802); |
215 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).possibleApplicationHandlers()); |
216 | 0 | // Sentinel = 'possibleApplicationHandlers' |
217 | 0 | (aMsg)->WriteSentinel(608941865); |
218 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).preferredAction()); |
219 | 0 | // Sentinel = 'preferredAction' |
220 | 0 | (aMsg)->WriteSentinel(3465546922); |
221 | 0 | } |
222 | | |
223 | | auto IPDLParamTraits<mozilla::dom::HandlerInfo>::Read( |
224 | | const IPC::Message* aMsg, |
225 | | PickleIterator* aIter, |
226 | | mozilla::ipc::IProtocol* aActor, |
227 | | paramType* aVar) -> bool |
228 | 0 | { |
229 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->type())))))) { |
230 | 0 | (aActor)->FatalError("Error deserializing 'type' (nsCString) member of 'HandlerInfo'"); |
231 | 0 | return false; |
232 | 0 | } |
233 | 0 | // Sentinel = 'type' |
234 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2982068540)))) { |
235 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsCString) member of 'HandlerInfo'"); |
236 | 0 | return false; |
237 | 0 | } |
238 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isMIMEInfo())))))) { |
239 | 0 | (aActor)->FatalError("Error deserializing 'isMIMEInfo' (bool) member of 'HandlerInfo'"); |
240 | 0 | return false; |
241 | 0 | } |
242 | 0 | // Sentinel = 'isMIMEInfo' |
243 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1069536950)))) { |
244 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'isMIMEInfo' (bool) member of 'HandlerInfo'"); |
245 | 0 | return false; |
246 | 0 | } |
247 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->description())))))) { |
248 | 0 | (aActor)->FatalError("Error deserializing 'description' (nsString) member of 'HandlerInfo'"); |
249 | 0 | return false; |
250 | 0 | } |
251 | 0 | // Sentinel = 'description' |
252 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 962879941)))) { |
253 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'description' (nsString) member of 'HandlerInfo'"); |
254 | 0 | return false; |
255 | 0 | } |
256 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->alwaysAskBeforeHandling())))))) { |
257 | 0 | (aActor)->FatalError("Error deserializing 'alwaysAskBeforeHandling' (bool) member of 'HandlerInfo'"); |
258 | 0 | return false; |
259 | 0 | } |
260 | 0 | // Sentinel = 'alwaysAskBeforeHandling' |
261 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1120635835)))) { |
262 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'alwaysAskBeforeHandling' (bool) member of 'HandlerInfo'"); |
263 | 0 | return false; |
264 | 0 | } |
265 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->extensions())))))) { |
266 | 0 | (aActor)->FatalError("Error deserializing 'extensions' (nsCString[]) member of 'HandlerInfo'"); |
267 | 0 | return false; |
268 | 0 | } |
269 | 0 | // Sentinel = 'extensions' |
270 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 743266036)))) { |
271 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'extensions' (nsCString[]) member of 'HandlerInfo'"); |
272 | 0 | return false; |
273 | 0 | } |
274 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->preferredApplicationHandler())))))) { |
275 | 0 | (aActor)->FatalError("Error deserializing 'preferredApplicationHandler' (HandlerApp) member of 'HandlerInfo'"); |
276 | 0 | return false; |
277 | 0 | } |
278 | 0 | // Sentinel = 'preferredApplicationHandler' |
279 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2543375802)))) { |
280 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'preferredApplicationHandler' (HandlerApp) member of 'HandlerInfo'"); |
281 | 0 | return false; |
282 | 0 | } |
283 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->possibleApplicationHandlers())))))) { |
284 | 0 | (aActor)->FatalError("Error deserializing 'possibleApplicationHandlers' (HandlerApp[]) member of 'HandlerInfo'"); |
285 | 0 | return false; |
286 | 0 | } |
287 | 0 | // Sentinel = 'possibleApplicationHandlers' |
288 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 608941865)))) { |
289 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'possibleApplicationHandlers' (HandlerApp[]) member of 'HandlerInfo'"); |
290 | 0 | return false; |
291 | 0 | } |
292 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->preferredAction())))))) { |
293 | 0 | (aActor)->FatalError("Error deserializing 'preferredAction' (long) member of 'HandlerInfo'"); |
294 | 0 | return false; |
295 | 0 | } |
296 | 0 | // Sentinel = 'preferredAction' |
297 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3465546922)))) { |
298 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'preferredAction' (long) member of 'HandlerInfo'"); |
299 | 0 | return false; |
300 | 0 | } |
301 | 0 | return true; |
302 | 0 | } |
303 | | |
304 | | } // namespace ipc |
305 | | } // namespace mozilla |