/work/obj-fuzz/ipc/ipdl/PQuota.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/quota/SerializationHelpers.h" |
8 | | #include "mozilla/ipc/PBackgroundParent.h" |
9 | | #include "mozilla/ipc/PBackgroundChild.h" |
10 | | #include "mozilla/dom/quota/PQuotaRequestParent.h" |
11 | | #include "mozilla/dom/quota/PQuotaRequestChild.h" |
12 | | #include "mozilla/dom/quota/PQuotaUsageRequestParent.h" |
13 | | #include "mozilla/dom/quota/PQuotaUsageRequestChild.h" |
14 | | #include "mozilla/dom/quota/PQuota.h" |
15 | | |
16 | | namespace mozilla { |
17 | | namespace dom { |
18 | | namespace quota { |
19 | | namespace PQuota { |
20 | | |
21 | | nsresult |
22 | | CreateEndpoints( |
23 | | base::ProcessId aParentDestPid, |
24 | | base::ProcessId aChildDestPid, |
25 | | mozilla::ipc::Endpoint<mozilla::dom::quota::PQuotaParent>* aParent, |
26 | | mozilla::ipc::Endpoint<mozilla::dom::quota::PQuotaChild>* aChild) |
27 | 0 | { |
28 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
29 | 0 | } |
30 | | IPC::Message* |
31 | | Msg___delete__(int32_t routingId) |
32 | 0 | { |
33 | 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)); |
34 | 0 | } |
35 | | IPC::Message* |
36 | | Reply___delete__(int32_t routingId) |
37 | 0 | { |
38 | 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)); |
39 | 0 | } |
40 | | IPC::Message* |
41 | | Msg_PQuotaUsageRequestConstructor(int32_t routingId) |
42 | 0 | { |
43 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_PQuotaUsageRequestConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
44 | 0 | } |
45 | | IPC::Message* |
46 | | Reply_PQuotaUsageRequestConstructor(int32_t routingId) |
47 | 0 | { |
48 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_PQuotaUsageRequestConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
49 | 0 | } |
50 | | IPC::Message* |
51 | | Msg_PQuotaRequestConstructor(int32_t routingId) |
52 | 0 | { |
53 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_PQuotaRequestConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::NOT_REPLY)); |
54 | 0 | } |
55 | | IPC::Message* |
56 | | Reply_PQuotaRequestConstructor(int32_t routingId) |
57 | 0 | { |
58 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_PQuotaRequestConstructor__ID, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_INTERRUPT, IPC::Message::REPLY)); |
59 | 0 | } |
60 | | IPC::Message* |
61 | | Msg_StartIdleMaintenance(int32_t routingId) |
62 | 0 | { |
63 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_StartIdleMaintenance__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)); |
64 | 0 | } |
65 | | IPC::Message* |
66 | | Msg_StopIdleMaintenance(int32_t routingId) |
67 | 0 | { |
68 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_StopIdleMaintenance__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)); |
69 | 0 | } |
70 | | |
71 | | } // namespace PQuota |
72 | | } // namespace quota |
73 | | } // namespace dom |
74 | | } // namespace mozilla |
75 | | |
76 | | //----------------------------------------------------------------------------- |
77 | | // Method definitions for the IPDL type |struct InitParams| |
78 | | // |
79 | | namespace mozilla { |
80 | | namespace dom { |
81 | | namespace quota { |
82 | | auto InitParams::operator==(const InitParams& _o) const -> bool |
83 | 0 | { |
84 | 0 | return true; |
85 | 0 | } |
86 | | |
87 | | auto InitParams::operator!=(const InitParams& _o) const -> bool |
88 | 0 | { |
89 | 0 | return (!(operator==(_o))); |
90 | 0 | } |
91 | | |
92 | | } // namespace quota |
93 | | } // namespace dom |
94 | | } // namespace mozilla |
95 | | |
96 | | namespace mozilla { |
97 | | namespace ipc { |
98 | | auto IPDLParamTraits<mozilla::dom::quota::InitParams>::Write( |
99 | | IPC::Message* aMsg, |
100 | | mozilla::ipc::IProtocol* aActor, |
101 | | const paramType& aVar) -> void |
102 | 0 | { |
103 | 0 | } |
104 | | |
105 | | auto IPDLParamTraits<mozilla::dom::quota::InitParams>::Read( |
106 | | const IPC::Message* aMsg, |
107 | | PickleIterator* aIter, |
108 | | mozilla::ipc::IProtocol* aActor, |
109 | | paramType* aVar) -> bool |
110 | 0 | { |
111 | 0 | return true; |
112 | 0 | } |
113 | | |
114 | | } // namespace ipc |
115 | | } // namespace mozilla |
116 | | |
117 | | //----------------------------------------------------------------------------- |
118 | | // Method definitions for the IPDL type |struct InitOriginParams| |
119 | | // |
120 | | namespace mozilla { |
121 | | namespace dom { |
122 | | namespace quota { |
123 | | auto InitOriginParams::operator==(const InitOriginParams& _o) const -> bool |
124 | 0 | { |
125 | 0 | if ((!((principalInfo()) == ((_o).principalInfo())))) { |
126 | 0 | return false; |
127 | 0 | } |
128 | 0 | if ((!((persistenceType()) == ((_o).persistenceType())))) { |
129 | 0 | return false; |
130 | 0 | } |
131 | 0 | return true; |
132 | 0 | } |
133 | | |
134 | | auto InitOriginParams::operator!=(const InitOriginParams& _o) const -> bool |
135 | 0 | { |
136 | 0 | return (!(operator==(_o))); |
137 | 0 | } |
138 | | |
139 | | } // namespace quota |
140 | | } // namespace dom |
141 | | } // namespace mozilla |
142 | | |
143 | | namespace mozilla { |
144 | | namespace ipc { |
145 | | auto IPDLParamTraits<mozilla::dom::quota::InitOriginParams>::Write( |
146 | | IPC::Message* aMsg, |
147 | | mozilla::ipc::IProtocol* aActor, |
148 | | const paramType& aVar) -> void |
149 | 0 | { |
150 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).principalInfo()); |
151 | 0 | // Sentinel = 'principalInfo' |
152 | 0 | (aMsg)->WriteSentinel(3386633731); |
153 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).persistenceType()); |
154 | 0 | // Sentinel = 'persistenceType' |
155 | 0 | (aMsg)->WriteSentinel(3316493122); |
156 | 0 | } |
157 | | |
158 | | auto IPDLParamTraits<mozilla::dom::quota::InitOriginParams>::Read( |
159 | | const IPC::Message* aMsg, |
160 | | PickleIterator* aIter, |
161 | | mozilla::ipc::IProtocol* aActor, |
162 | | paramType* aVar) -> bool |
163 | 0 | { |
164 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalInfo())))))) { |
165 | 0 | (aActor)->FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'InitOriginParams'"); |
166 | 0 | return false; |
167 | 0 | } |
168 | 0 | // Sentinel = 'principalInfo' |
169 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3386633731)))) { |
170 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'InitOriginParams'"); |
171 | 0 | return false; |
172 | 0 | } |
173 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->persistenceType())))))) { |
174 | 0 | (aActor)->FatalError("Error deserializing 'persistenceType' (PersistenceType) member of 'InitOriginParams'"); |
175 | 0 | return false; |
176 | 0 | } |
177 | 0 | // Sentinel = 'persistenceType' |
178 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3316493122)))) { |
179 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'persistenceType' (PersistenceType) member of 'InitOriginParams'"); |
180 | 0 | return false; |
181 | 0 | } |
182 | 0 | return true; |
183 | 0 | } |
184 | | |
185 | | } // namespace ipc |
186 | | } // namespace mozilla |
187 | | |
188 | | //----------------------------------------------------------------------------- |
189 | | // Method definitions for the IPDL type |struct AllUsageParams| |
190 | | // |
191 | | namespace mozilla { |
192 | | namespace dom { |
193 | | namespace quota { |
194 | | auto AllUsageParams::operator==(const AllUsageParams& _o) const -> bool |
195 | 0 | { |
196 | 0 | if ((!((getAll()) == ((_o).getAll())))) { |
197 | 0 | return false; |
198 | 0 | } |
199 | 0 | return true; |
200 | 0 | } |
201 | | |
202 | | auto AllUsageParams::operator!=(const AllUsageParams& _o) const -> bool |
203 | 0 | { |
204 | 0 | return (!(operator==(_o))); |
205 | 0 | } |
206 | | |
207 | | } // namespace quota |
208 | | } // namespace dom |
209 | | } // namespace mozilla |
210 | | |
211 | | namespace mozilla { |
212 | | namespace ipc { |
213 | | auto IPDLParamTraits<mozilla::dom::quota::AllUsageParams>::Write( |
214 | | IPC::Message* aMsg, |
215 | | mozilla::ipc::IProtocol* aActor, |
216 | | const paramType& aVar) -> void |
217 | 0 | { |
218 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).getAll()); |
219 | 0 | // Sentinel = 'getAll' |
220 | 0 | (aMsg)->WriteSentinel(2658654475); |
221 | 0 | } |
222 | | |
223 | | auto IPDLParamTraits<mozilla::dom::quota::AllUsageParams>::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)->getAll())))))) { |
230 | 0 | (aActor)->FatalError("Error deserializing 'getAll' (bool) member of 'AllUsageParams'"); |
231 | 0 | return false; |
232 | 0 | } |
233 | 0 | // Sentinel = 'getAll' |
234 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2658654475)))) { |
235 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'getAll' (bool) member of 'AllUsageParams'"); |
236 | 0 | return false; |
237 | 0 | } |
238 | 0 | return true; |
239 | 0 | } |
240 | | |
241 | | } // namespace ipc |
242 | | } // namespace mozilla |
243 | | |
244 | | //----------------------------------------------------------------------------- |
245 | | // Method definitions for the IPDL type |struct OriginUsageParams| |
246 | | // |
247 | | namespace mozilla { |
248 | | namespace dom { |
249 | | namespace quota { |
250 | | auto OriginUsageParams::operator==(const OriginUsageParams& _o) const -> bool |
251 | 0 | { |
252 | 0 | if ((!((principalInfo()) == ((_o).principalInfo())))) { |
253 | 0 | return false; |
254 | 0 | } |
255 | 0 | if ((!((getGroupUsage()) == ((_o).getGroupUsage())))) { |
256 | 0 | return false; |
257 | 0 | } |
258 | 0 | return true; |
259 | 0 | } |
260 | | |
261 | | auto OriginUsageParams::operator!=(const OriginUsageParams& _o) const -> bool |
262 | 0 | { |
263 | 0 | return (!(operator==(_o))); |
264 | 0 | } |
265 | | |
266 | | } // namespace quota |
267 | | } // namespace dom |
268 | | } // namespace mozilla |
269 | | |
270 | | namespace mozilla { |
271 | | namespace ipc { |
272 | | auto IPDLParamTraits<mozilla::dom::quota::OriginUsageParams>::Write( |
273 | | IPC::Message* aMsg, |
274 | | mozilla::ipc::IProtocol* aActor, |
275 | | const paramType& aVar) -> void |
276 | 0 | { |
277 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).principalInfo()); |
278 | 0 | // Sentinel = 'principalInfo' |
279 | 0 | (aMsg)->WriteSentinel(3386633731); |
280 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).getGroupUsage()); |
281 | 0 | // Sentinel = 'getGroupUsage' |
282 | 0 | (aMsg)->WriteSentinel(4167744247); |
283 | 0 | } |
284 | | |
285 | | auto IPDLParamTraits<mozilla::dom::quota::OriginUsageParams>::Read( |
286 | | const IPC::Message* aMsg, |
287 | | PickleIterator* aIter, |
288 | | mozilla::ipc::IProtocol* aActor, |
289 | | paramType* aVar) -> bool |
290 | 0 | { |
291 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalInfo())))))) { |
292 | 0 | (aActor)->FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'OriginUsageParams'"); |
293 | 0 | return false; |
294 | 0 | } |
295 | 0 | // Sentinel = 'principalInfo' |
296 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3386633731)))) { |
297 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'OriginUsageParams'"); |
298 | 0 | return false; |
299 | 0 | } |
300 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->getGroupUsage())))))) { |
301 | 0 | (aActor)->FatalError("Error deserializing 'getGroupUsage' (bool) member of 'OriginUsageParams'"); |
302 | 0 | return false; |
303 | 0 | } |
304 | 0 | // Sentinel = 'getGroupUsage' |
305 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4167744247)))) { |
306 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'getGroupUsage' (bool) member of 'OriginUsageParams'"); |
307 | 0 | return false; |
308 | 0 | } |
309 | 0 | return true; |
310 | 0 | } |
311 | | |
312 | | } // namespace ipc |
313 | | } // namespace mozilla |
314 | | |
315 | | //----------------------------------------------------------------------------- |
316 | | // Method definitions for the IPDL type |union UsageRequestParams| |
317 | | // |
318 | | namespace mozilla { |
319 | | namespace dom { |
320 | | namespace quota { |
321 | | auto UsageRequestParams::MaybeDestroy(Type aNewType) -> bool |
322 | 0 | { |
323 | 0 | if ((mType) == (T__None)) { |
324 | 0 | return true; |
325 | 0 | } |
326 | 0 | if ((mType) == (aNewType)) { |
327 | 0 | return false; |
328 | 0 | } |
329 | 0 | switch (mType) { |
330 | 0 | case TAllUsageParams: |
331 | 0 | { |
332 | 0 | (ptr_AllUsageParams())->~AllUsageParams__tdef(); |
333 | 0 | break; |
334 | 0 | } |
335 | 0 | case TOriginUsageParams: |
336 | 0 | { |
337 | 0 | (ptr_OriginUsageParams())->~OriginUsageParams__tdef(); |
338 | 0 | break; |
339 | 0 | } |
340 | 0 | default: |
341 | 0 | { |
342 | 0 | mozilla::ipc::LogicError("not reached"); |
343 | 0 | break; |
344 | 0 | } |
345 | 0 | } |
346 | 0 | return true; |
347 | 0 | } |
348 | | |
349 | | MOZ_IMPLICIT UsageRequestParams::UsageRequestParams(const AllUsageParams& aOther) |
350 | 0 | { |
351 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams(aOther); |
352 | 0 | mType = TAllUsageParams; |
353 | 0 | } |
354 | | |
355 | | MOZ_IMPLICIT UsageRequestParams::UsageRequestParams(AllUsageParams&& aOther) |
356 | 0 | { |
357 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams(std::move(aOther)); |
358 | 0 | mType = TAllUsageParams; |
359 | 0 | } |
360 | | |
361 | | MOZ_IMPLICIT UsageRequestParams::UsageRequestParams(const OriginUsageParams& aOther) |
362 | 0 | { |
363 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams(aOther); |
364 | 0 | mType = TOriginUsageParams; |
365 | 0 | } |
366 | | |
367 | | MOZ_IMPLICIT UsageRequestParams::UsageRequestParams(OriginUsageParams&& aOther) |
368 | 0 | { |
369 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams(std::move(aOther)); |
370 | 0 | mType = TOriginUsageParams; |
371 | 0 | } |
372 | | |
373 | | MOZ_IMPLICIT UsageRequestParams::UsageRequestParams(const UsageRequestParams& aOther) |
374 | 0 | { |
375 | 0 | (aOther).AssertSanity(); |
376 | 0 | switch ((aOther).type()) { |
377 | 0 | case TAllUsageParams: |
378 | 0 | { |
379 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams((aOther).get_AllUsageParams()); |
380 | 0 | break; |
381 | 0 | } |
382 | 0 | case TOriginUsageParams: |
383 | 0 | { |
384 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams((aOther).get_OriginUsageParams()); |
385 | 0 | break; |
386 | 0 | } |
387 | 0 | case T__None: |
388 | 0 | { |
389 | 0 | break; |
390 | 0 | } |
391 | 0 | default: |
392 | 0 | { |
393 | 0 | mozilla::ipc::LogicError("unreached"); |
394 | 0 | return; |
395 | 0 | } |
396 | 0 | } |
397 | 0 | mType = (aOther).type(); |
398 | 0 | } |
399 | | |
400 | | MOZ_IMPLICIT UsageRequestParams::UsageRequestParams(UsageRequestParams&& aOther) |
401 | 0 | { |
402 | 0 | (aOther).AssertSanity(); |
403 | 0 | Type t = (aOther).type(); |
404 | 0 | switch (t) { |
405 | 0 | case TAllUsageParams: |
406 | 0 | { |
407 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams(std::move((aOther).get_AllUsageParams())); |
408 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
409 | 0 | break; |
410 | 0 | } |
411 | 0 | case TOriginUsageParams: |
412 | 0 | { |
413 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams(std::move((aOther).get_OriginUsageParams())); |
414 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
415 | 0 | break; |
416 | 0 | } |
417 | 0 | case T__None: |
418 | 0 | { |
419 | 0 | break; |
420 | 0 | } |
421 | 0 | default: |
422 | 0 | { |
423 | 0 | mozilla::ipc::LogicError("unreached"); |
424 | 0 | return; |
425 | 0 | } |
426 | 0 | } |
427 | 0 | (aOther).mType = T__None; |
428 | 0 | mType = t; |
429 | 0 | } |
430 | | |
431 | | UsageRequestParams::~UsageRequestParams() |
432 | 0 | { |
433 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
434 | 0 | } |
435 | | |
436 | | auto UsageRequestParams::operator=(const AllUsageParams& aRhs) -> UsageRequestParams& |
437 | 0 | { |
438 | 0 | if (MaybeDestroy(TAllUsageParams)) { |
439 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams; |
440 | 0 | } |
441 | 0 | (*(ptr_AllUsageParams())) = aRhs; |
442 | 0 | mType = TAllUsageParams; |
443 | 0 | return (*(this)); |
444 | 0 | } |
445 | | |
446 | | auto UsageRequestParams::operator=(AllUsageParams&& aRhs) -> UsageRequestParams& |
447 | 0 | { |
448 | 0 | if (MaybeDestroy(TAllUsageParams)) { |
449 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams; |
450 | 0 | } |
451 | 0 | (*(ptr_AllUsageParams())) = std::move(aRhs); |
452 | 0 | mType = TAllUsageParams; |
453 | 0 | return (*(this)); |
454 | 0 | } |
455 | | |
456 | | auto UsageRequestParams::operator=(const OriginUsageParams& aRhs) -> UsageRequestParams& |
457 | 0 | { |
458 | 0 | if (MaybeDestroy(TOriginUsageParams)) { |
459 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams; |
460 | 0 | } |
461 | 0 | (*(ptr_OriginUsageParams())) = aRhs; |
462 | 0 | mType = TOriginUsageParams; |
463 | 0 | return (*(this)); |
464 | 0 | } |
465 | | |
466 | | auto UsageRequestParams::operator=(OriginUsageParams&& aRhs) -> UsageRequestParams& |
467 | 0 | { |
468 | 0 | if (MaybeDestroy(TOriginUsageParams)) { |
469 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams; |
470 | 0 | } |
471 | 0 | (*(ptr_OriginUsageParams())) = std::move(aRhs); |
472 | 0 | mType = TOriginUsageParams; |
473 | 0 | return (*(this)); |
474 | 0 | } |
475 | | |
476 | | auto UsageRequestParams::operator=(const UsageRequestParams& aRhs) -> UsageRequestParams& |
477 | 0 | { |
478 | 0 | (aRhs).AssertSanity(); |
479 | 0 | Type t = (aRhs).type(); |
480 | 0 | switch (t) { |
481 | 0 | case TAllUsageParams: |
482 | 0 | { |
483 | 0 | if (MaybeDestroy(t)) { |
484 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams; |
485 | 0 | } |
486 | 0 | (*(ptr_AllUsageParams())) = (aRhs).get_AllUsageParams(); |
487 | 0 | break; |
488 | 0 | } |
489 | 0 | case TOriginUsageParams: |
490 | 0 | { |
491 | 0 | if (MaybeDestroy(t)) { |
492 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams; |
493 | 0 | } |
494 | 0 | (*(ptr_OriginUsageParams())) = (aRhs).get_OriginUsageParams(); |
495 | 0 | break; |
496 | 0 | } |
497 | 0 | case T__None: |
498 | 0 | { |
499 | 0 | static_cast<void>(MaybeDestroy(t)); |
500 | 0 | break; |
501 | 0 | } |
502 | 0 | default: |
503 | 0 | { |
504 | 0 | mozilla::ipc::LogicError("unreached"); |
505 | 0 | break; |
506 | 0 | } |
507 | 0 | } |
508 | 0 | mType = t; |
509 | 0 | return (*(this)); |
510 | 0 | } |
511 | | |
512 | | auto UsageRequestParams::operator=(UsageRequestParams&& aRhs) -> UsageRequestParams& |
513 | 0 | { |
514 | 0 | (aRhs).AssertSanity(); |
515 | 0 | Type t = (aRhs).type(); |
516 | 0 | switch (t) { |
517 | 0 | case TAllUsageParams: |
518 | 0 | { |
519 | 0 | if (MaybeDestroy(t)) { |
520 | 0 | new (mozilla::KnownNotNull, ptr_AllUsageParams()) AllUsageParams; |
521 | 0 | } |
522 | 0 | (*(ptr_AllUsageParams())) = std::move((aRhs).get_AllUsageParams()); |
523 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
524 | 0 | break; |
525 | 0 | } |
526 | 0 | case TOriginUsageParams: |
527 | 0 | { |
528 | 0 | if (MaybeDestroy(t)) { |
529 | 0 | new (mozilla::KnownNotNull, ptr_OriginUsageParams()) OriginUsageParams; |
530 | 0 | } |
531 | 0 | (*(ptr_OriginUsageParams())) = std::move((aRhs).get_OriginUsageParams()); |
532 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
533 | 0 | break; |
534 | 0 | } |
535 | 0 | case T__None: |
536 | 0 | { |
537 | 0 | static_cast<void>(MaybeDestroy(t)); |
538 | 0 | break; |
539 | 0 | } |
540 | 0 | default: |
541 | 0 | { |
542 | 0 | mozilla::ipc::LogicError("unreached"); |
543 | 0 | break; |
544 | 0 | } |
545 | 0 | } |
546 | 0 | (aRhs).mType = T__None; |
547 | 0 | mType = t; |
548 | 0 | return (*(this)); |
549 | 0 | } |
550 | | |
551 | | auto UsageRequestParams::operator==(const AllUsageParams& aRhs) const -> bool |
552 | 0 | { |
553 | 0 | return (get_AllUsageParams()) == (aRhs); |
554 | 0 | } |
555 | | |
556 | | auto UsageRequestParams::operator==(const OriginUsageParams& aRhs) const -> bool |
557 | 0 | { |
558 | 0 | return (get_OriginUsageParams()) == (aRhs); |
559 | 0 | } |
560 | | |
561 | | auto UsageRequestParams::operator==(const UsageRequestParams& aRhs) const -> bool |
562 | 0 | { |
563 | 0 | if ((type()) != ((aRhs).type())) { |
564 | 0 | return false; |
565 | 0 | } |
566 | 0 | |
567 | 0 | switch (type()) { |
568 | 0 | case TAllUsageParams: |
569 | 0 | { |
570 | 0 | return (get_AllUsageParams()) == ((aRhs).get_AllUsageParams()); |
571 | 0 | } |
572 | 0 | case TOriginUsageParams: |
573 | 0 | { |
574 | 0 | return (get_OriginUsageParams()) == ((aRhs).get_OriginUsageParams()); |
575 | 0 | } |
576 | 0 | default: |
577 | 0 | { |
578 | 0 | mozilla::ipc::LogicError("unreached"); |
579 | 0 | return false; |
580 | 0 | } |
581 | 0 | } |
582 | 0 | } |
583 | | |
584 | | auto UsageRequestParams::get(AllUsageParams* aOutValue) const -> void |
585 | 0 | { |
586 | 0 | (*(aOutValue)) = get_AllUsageParams(); |
587 | 0 | } |
588 | | |
589 | | auto UsageRequestParams::get(OriginUsageParams* aOutValue) const -> void |
590 | 0 | { |
591 | 0 | (*(aOutValue)) = get_OriginUsageParams(); |
592 | 0 | } |
593 | | |
594 | | } // namespace quota |
595 | | } // namespace dom |
596 | | } // namespace mozilla |
597 | | |
598 | | namespace mozilla { |
599 | | namespace ipc { |
600 | | auto IPDLParamTraits<mozilla::dom::quota::UsageRequestParams>::Write( |
601 | | IPC::Message* aMsg, |
602 | | mozilla::ipc::IProtocol* aActor, |
603 | | const paramType& aVar) -> void |
604 | | { |
605 | | typedef mozilla::dom::quota::UsageRequestParams union__; |
606 | | int type; |
607 | | type = (aVar).type(); |
608 | | WriteIPDLParam(aMsg, aActor, type); |
609 | | // Sentinel = 'UsageRequestParams' |
610 | | (aMsg)->WriteSentinel(1689888312); |
611 | | |
612 | | switch (type) { |
613 | | case union__::TAllUsageParams: |
614 | | { |
615 | | WriteIPDLParam(aMsg, aActor, (aVar).get_AllUsageParams()); |
616 | | // Sentinel = 'TAllUsageParams' |
617 | | (aMsg)->WriteSentinel(2435528059); |
618 | | return; |
619 | | } |
620 | | case union__::TOriginUsageParams: |
621 | | { |
622 | | WriteIPDLParam(aMsg, aActor, (aVar).get_OriginUsageParams()); |
623 | | // Sentinel = 'TOriginUsageParams' |
624 | | (aMsg)->WriteSentinel(55992623); |
625 | | return; |
626 | | } |
627 | | default: |
628 | | { |
629 | | (aActor)->FatalError("unknown union type"); |
630 | | return; |
631 | | } |
632 | | } |
633 | | } |
634 | | |
635 | | auto IPDLParamTraits<mozilla::dom::quota::UsageRequestParams>::Read( |
636 | | const IPC::Message* aMsg, |
637 | | PickleIterator* aIter, |
638 | | mozilla::ipc::IProtocol* aActor, |
639 | | paramType* aVar) -> bool |
640 | 0 | { |
641 | 0 | typedef mozilla::dom::quota::UsageRequestParams union__; |
642 | 0 | int type; |
643 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
644 | 0 | (aActor)->FatalError("Error deserializing type of union UsageRequestParams"); |
645 | 0 | return false; |
646 | 0 | } |
647 | 0 | // Sentinel = 'UsageRequestParams' |
648 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1689888312)))) { |
649 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union UsageRequestParams"); |
650 | 0 | return false; |
651 | 0 | } |
652 | 0 | |
653 | 0 | switch (type) { |
654 | 0 | case union__::TAllUsageParams: |
655 | 0 | { |
656 | 0 | mozilla::dom::quota::AllUsageParams tmp = mozilla::dom::quota::AllUsageParams(); |
657 | 0 | (*(aVar)) = tmp; |
658 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_AllUsageParams())))))) { |
659 | 0 | (aActor)->FatalError("Error deserializing variant TAllUsageParams of union UsageRequestParams"); |
660 | 0 | return false; |
661 | 0 | } |
662 | 0 | // Sentinel = 'TAllUsageParams' |
663 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2435528059)))) { |
664 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TAllUsageParams of union UsageRequestParams"); |
665 | 0 | return false; |
666 | 0 | } |
667 | 0 | return true; |
668 | 0 | } |
669 | 0 | case union__::TOriginUsageParams: |
670 | 0 | { |
671 | 0 | mozilla::dom::quota::OriginUsageParams tmp = mozilla::dom::quota::OriginUsageParams(); |
672 | 0 | (*(aVar)) = tmp; |
673 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_OriginUsageParams())))))) { |
674 | 0 | (aActor)->FatalError("Error deserializing variant TOriginUsageParams of union UsageRequestParams"); |
675 | 0 | return false; |
676 | 0 | } |
677 | 0 | // Sentinel = 'TOriginUsageParams' |
678 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 55992623)))) { |
679 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TOriginUsageParams of union UsageRequestParams"); |
680 | 0 | return false; |
681 | 0 | } |
682 | 0 | return true; |
683 | 0 | } |
684 | 0 | default: |
685 | 0 | { |
686 | 0 | (aActor)->FatalError("unknown union type"); |
687 | 0 | return false; |
688 | 0 | } |
689 | 0 | } |
690 | 0 | } |
691 | | |
692 | | } // namespace ipc |
693 | | } // namespace mozilla |
694 | | |
695 | | //----------------------------------------------------------------------------- |
696 | | // Method definitions for the IPDL type |struct ClearOriginParams| |
697 | | // |
698 | | namespace mozilla { |
699 | | namespace dom { |
700 | | namespace quota { |
701 | | auto ClearOriginParams::operator==(const ClearOriginParams& _o) const -> bool |
702 | 0 | { |
703 | 0 | if ((!((principalInfo()) == ((_o).principalInfo())))) { |
704 | 0 | return false; |
705 | 0 | } |
706 | 0 | if ((!((persistenceType()) == ((_o).persistenceType())))) { |
707 | 0 | return false; |
708 | 0 | } |
709 | 0 | if ((!((persistenceTypeIsExplicit()) == ((_o).persistenceTypeIsExplicit())))) { |
710 | 0 | return false; |
711 | 0 | } |
712 | 0 | if ((!((clearAll()) == ((_o).clearAll())))) { |
713 | 0 | return false; |
714 | 0 | } |
715 | 0 | return true; |
716 | 0 | } |
717 | | |
718 | | auto ClearOriginParams::operator!=(const ClearOriginParams& _o) const -> bool |
719 | 0 | { |
720 | 0 | return (!(operator==(_o))); |
721 | 0 | } |
722 | | |
723 | | } // namespace quota |
724 | | } // namespace dom |
725 | | } // namespace mozilla |
726 | | |
727 | | namespace mozilla { |
728 | | namespace ipc { |
729 | | auto IPDLParamTraits<mozilla::dom::quota::ClearOriginParams>::Write( |
730 | | IPC::Message* aMsg, |
731 | | mozilla::ipc::IProtocol* aActor, |
732 | | const paramType& aVar) -> void |
733 | 0 | { |
734 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).principalInfo()); |
735 | 0 | // Sentinel = 'principalInfo' |
736 | 0 | (aMsg)->WriteSentinel(3386633731); |
737 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).persistenceType()); |
738 | 0 | // Sentinel = 'persistenceType' |
739 | 0 | (aMsg)->WriteSentinel(3316493122); |
740 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).persistenceTypeIsExplicit()); |
741 | 0 | // Sentinel = 'persistenceTypeIsExplicit' |
742 | 0 | (aMsg)->WriteSentinel(709480568); |
743 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).clearAll()); |
744 | 0 | // Sentinel = 'clearAll' |
745 | 0 | (aMsg)->WriteSentinel(942773884); |
746 | 0 | } |
747 | | |
748 | | auto IPDLParamTraits<mozilla::dom::quota::ClearOriginParams>::Read( |
749 | | const IPC::Message* aMsg, |
750 | | PickleIterator* aIter, |
751 | | mozilla::ipc::IProtocol* aActor, |
752 | | paramType* aVar) -> bool |
753 | 0 | { |
754 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalInfo())))))) { |
755 | 0 | (aActor)->FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'ClearOriginParams'"); |
756 | 0 | return false; |
757 | 0 | } |
758 | 0 | // Sentinel = 'principalInfo' |
759 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3386633731)))) { |
760 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'ClearOriginParams'"); |
761 | 0 | return false; |
762 | 0 | } |
763 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->persistenceType())))))) { |
764 | 0 | (aActor)->FatalError("Error deserializing 'persistenceType' (PersistenceType) member of 'ClearOriginParams'"); |
765 | 0 | return false; |
766 | 0 | } |
767 | 0 | // Sentinel = 'persistenceType' |
768 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3316493122)))) { |
769 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'persistenceType' (PersistenceType) member of 'ClearOriginParams'"); |
770 | 0 | return false; |
771 | 0 | } |
772 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->persistenceTypeIsExplicit())))))) { |
773 | 0 | (aActor)->FatalError("Error deserializing 'persistenceTypeIsExplicit' (bool) member of 'ClearOriginParams'"); |
774 | 0 | return false; |
775 | 0 | } |
776 | 0 | // Sentinel = 'persistenceTypeIsExplicit' |
777 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 709480568)))) { |
778 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'persistenceTypeIsExplicit' (bool) member of 'ClearOriginParams'"); |
779 | 0 | return false; |
780 | 0 | } |
781 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->clearAll())))))) { |
782 | 0 | (aActor)->FatalError("Error deserializing 'clearAll' (bool) member of 'ClearOriginParams'"); |
783 | 0 | return false; |
784 | 0 | } |
785 | 0 | // Sentinel = 'clearAll' |
786 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 942773884)))) { |
787 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'clearAll' (bool) member of 'ClearOriginParams'"); |
788 | 0 | return false; |
789 | 0 | } |
790 | 0 | return true; |
791 | 0 | } |
792 | | |
793 | | } // namespace ipc |
794 | | } // namespace mozilla |
795 | | |
796 | | //----------------------------------------------------------------------------- |
797 | | // Method definitions for the IPDL type |struct ClearDataParams| |
798 | | // |
799 | | namespace mozilla { |
800 | | namespace dom { |
801 | | namespace quota { |
802 | | auto ClearDataParams::operator==(const ClearDataParams& _o) const -> bool |
803 | 0 | { |
804 | 0 | if ((!((pattern()) == ((_o).pattern())))) { |
805 | 0 | return false; |
806 | 0 | } |
807 | 0 | return true; |
808 | 0 | } |
809 | | |
810 | | auto ClearDataParams::operator!=(const ClearDataParams& _o) const -> bool |
811 | 0 | { |
812 | 0 | return (!(operator==(_o))); |
813 | 0 | } |
814 | | |
815 | | } // namespace quota |
816 | | } // namespace dom |
817 | | } // namespace mozilla |
818 | | |
819 | | namespace mozilla { |
820 | | namespace ipc { |
821 | | auto IPDLParamTraits<mozilla::dom::quota::ClearDataParams>::Write( |
822 | | IPC::Message* aMsg, |
823 | | mozilla::ipc::IProtocol* aActor, |
824 | | const paramType& aVar) -> void |
825 | 0 | { |
826 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).pattern()); |
827 | 0 | // Sentinel = 'pattern' |
828 | 0 | (aMsg)->WriteSentinel(2105892009); |
829 | 0 | } |
830 | | |
831 | | auto IPDLParamTraits<mozilla::dom::quota::ClearDataParams>::Read( |
832 | | const IPC::Message* aMsg, |
833 | | PickleIterator* aIter, |
834 | | mozilla::ipc::IProtocol* aActor, |
835 | | paramType* aVar) -> bool |
836 | 0 | { |
837 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->pattern())))))) { |
838 | 0 | (aActor)->FatalError("Error deserializing 'pattern' (nsString) member of 'ClearDataParams'"); |
839 | 0 | return false; |
840 | 0 | } |
841 | 0 | // Sentinel = 'pattern' |
842 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2105892009)))) { |
843 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'pattern' (nsString) member of 'ClearDataParams'"); |
844 | 0 | return false; |
845 | 0 | } |
846 | 0 | return true; |
847 | 0 | } |
848 | | |
849 | | } // namespace ipc |
850 | | } // namespace mozilla |
851 | | |
852 | | //----------------------------------------------------------------------------- |
853 | | // Method definitions for the IPDL type |struct ClearAllParams| |
854 | | // |
855 | | namespace mozilla { |
856 | | namespace dom { |
857 | | namespace quota { |
858 | | auto ClearAllParams::operator==(const ClearAllParams& _o) const -> bool |
859 | 0 | { |
860 | 0 | return true; |
861 | 0 | } |
862 | | |
863 | | auto ClearAllParams::operator!=(const ClearAllParams& _o) const -> bool |
864 | 0 | { |
865 | 0 | return (!(operator==(_o))); |
866 | 0 | } |
867 | | |
868 | | } // namespace quota |
869 | | } // namespace dom |
870 | | } // namespace mozilla |
871 | | |
872 | | namespace mozilla { |
873 | | namespace ipc { |
874 | | auto IPDLParamTraits<mozilla::dom::quota::ClearAllParams>::Write( |
875 | | IPC::Message* aMsg, |
876 | | mozilla::ipc::IProtocol* aActor, |
877 | | const paramType& aVar) -> void |
878 | 0 | { |
879 | 0 | } |
880 | | |
881 | | auto IPDLParamTraits<mozilla::dom::quota::ClearAllParams>::Read( |
882 | | const IPC::Message* aMsg, |
883 | | PickleIterator* aIter, |
884 | | mozilla::ipc::IProtocol* aActor, |
885 | | paramType* aVar) -> bool |
886 | 0 | { |
887 | 0 | return true; |
888 | 0 | } |
889 | | |
890 | | } // namespace ipc |
891 | | } // namespace mozilla |
892 | | |
893 | | //----------------------------------------------------------------------------- |
894 | | // Method definitions for the IPDL type |struct ResetAllParams| |
895 | | // |
896 | | namespace mozilla { |
897 | | namespace dom { |
898 | | namespace quota { |
899 | | auto ResetAllParams::operator==(const ResetAllParams& _o) const -> bool |
900 | 0 | { |
901 | 0 | return true; |
902 | 0 | } |
903 | | |
904 | | auto ResetAllParams::operator!=(const ResetAllParams& _o) const -> bool |
905 | 0 | { |
906 | 0 | return (!(operator==(_o))); |
907 | 0 | } |
908 | | |
909 | | } // namespace quota |
910 | | } // namespace dom |
911 | | } // namespace mozilla |
912 | | |
913 | | namespace mozilla { |
914 | | namespace ipc { |
915 | | auto IPDLParamTraits<mozilla::dom::quota::ResetAllParams>::Write( |
916 | | IPC::Message* aMsg, |
917 | | mozilla::ipc::IProtocol* aActor, |
918 | | const paramType& aVar) -> void |
919 | 0 | { |
920 | 0 | } |
921 | | |
922 | | auto IPDLParamTraits<mozilla::dom::quota::ResetAllParams>::Read( |
923 | | const IPC::Message* aMsg, |
924 | | PickleIterator* aIter, |
925 | | mozilla::ipc::IProtocol* aActor, |
926 | | paramType* aVar) -> bool |
927 | 0 | { |
928 | 0 | return true; |
929 | 0 | } |
930 | | |
931 | | } // namespace ipc |
932 | | } // namespace mozilla |
933 | | |
934 | | //----------------------------------------------------------------------------- |
935 | | // Method definitions for the IPDL type |struct PersistedParams| |
936 | | // |
937 | | namespace mozilla { |
938 | | namespace dom { |
939 | | namespace quota { |
940 | | auto PersistedParams::operator==(const PersistedParams& _o) const -> bool |
941 | 0 | { |
942 | 0 | if ((!((principalInfo()) == ((_o).principalInfo())))) { |
943 | 0 | return false; |
944 | 0 | } |
945 | 0 | return true; |
946 | 0 | } |
947 | | |
948 | | auto PersistedParams::operator!=(const PersistedParams& _o) const -> bool |
949 | 0 | { |
950 | 0 | return (!(operator==(_o))); |
951 | 0 | } |
952 | | |
953 | | } // namespace quota |
954 | | } // namespace dom |
955 | | } // namespace mozilla |
956 | | |
957 | | namespace mozilla { |
958 | | namespace ipc { |
959 | | auto IPDLParamTraits<mozilla::dom::quota::PersistedParams>::Write( |
960 | | IPC::Message* aMsg, |
961 | | mozilla::ipc::IProtocol* aActor, |
962 | | const paramType& aVar) -> void |
963 | 0 | { |
964 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).principalInfo()); |
965 | 0 | // Sentinel = 'principalInfo' |
966 | 0 | (aMsg)->WriteSentinel(3386633731); |
967 | 0 | } |
968 | | |
969 | | auto IPDLParamTraits<mozilla::dom::quota::PersistedParams>::Read( |
970 | | const IPC::Message* aMsg, |
971 | | PickleIterator* aIter, |
972 | | mozilla::ipc::IProtocol* aActor, |
973 | | paramType* aVar) -> bool |
974 | 0 | { |
975 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalInfo())))))) { |
976 | 0 | (aActor)->FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistedParams'"); |
977 | 0 | return false; |
978 | 0 | } |
979 | 0 | // Sentinel = 'principalInfo' |
980 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3386633731)))) { |
981 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistedParams'"); |
982 | 0 | return false; |
983 | 0 | } |
984 | 0 | return true; |
985 | 0 | } |
986 | | |
987 | | } // namespace ipc |
988 | | } // namespace mozilla |
989 | | |
990 | | //----------------------------------------------------------------------------- |
991 | | // Method definitions for the IPDL type |struct PersistParams| |
992 | | // |
993 | | namespace mozilla { |
994 | | namespace dom { |
995 | | namespace quota { |
996 | | auto PersistParams::operator==(const PersistParams& _o) const -> bool |
997 | 0 | { |
998 | 0 | if ((!((principalInfo()) == ((_o).principalInfo())))) { |
999 | 0 | return false; |
1000 | 0 | } |
1001 | 0 | return true; |
1002 | 0 | } |
1003 | | |
1004 | | auto PersistParams::operator!=(const PersistParams& _o) const -> bool |
1005 | 0 | { |
1006 | 0 | return (!(operator==(_o))); |
1007 | 0 | } |
1008 | | |
1009 | | } // namespace quota |
1010 | | } // namespace dom |
1011 | | } // namespace mozilla |
1012 | | |
1013 | | namespace mozilla { |
1014 | | namespace ipc { |
1015 | | auto IPDLParamTraits<mozilla::dom::quota::PersistParams>::Write( |
1016 | | IPC::Message* aMsg, |
1017 | | mozilla::ipc::IProtocol* aActor, |
1018 | | const paramType& aVar) -> void |
1019 | 0 | { |
1020 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).principalInfo()); |
1021 | 0 | // Sentinel = 'principalInfo' |
1022 | 0 | (aMsg)->WriteSentinel(3386633731); |
1023 | 0 | } |
1024 | | |
1025 | | auto IPDLParamTraits<mozilla::dom::quota::PersistParams>::Read( |
1026 | | const IPC::Message* aMsg, |
1027 | | PickleIterator* aIter, |
1028 | | mozilla::ipc::IProtocol* aActor, |
1029 | | paramType* aVar) -> bool |
1030 | 0 | { |
1031 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principalInfo())))))) { |
1032 | 0 | (aActor)->FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistParams'"); |
1033 | 0 | return false; |
1034 | 0 | } |
1035 | 0 | // Sentinel = 'principalInfo' |
1036 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3386633731)))) { |
1037 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistParams'"); |
1038 | 0 | return false; |
1039 | 0 | } |
1040 | 0 | return true; |
1041 | 0 | } |
1042 | | |
1043 | | } // namespace ipc |
1044 | | } // namespace mozilla |
1045 | | |
1046 | | //----------------------------------------------------------------------------- |
1047 | | // Method definitions for the IPDL type |union RequestParams| |
1048 | | // |
1049 | | namespace mozilla { |
1050 | | namespace dom { |
1051 | | namespace quota { |
1052 | | auto RequestParams::MaybeDestroy(Type aNewType) -> bool |
1053 | 0 | { |
1054 | 0 | if ((mType) == (T__None)) { |
1055 | 0 | return true; |
1056 | 0 | } |
1057 | 0 | if ((mType) == (aNewType)) { |
1058 | 0 | return false; |
1059 | 0 | } |
1060 | 0 | switch (mType) { |
1061 | 0 | case TInitParams: |
1062 | 0 | { |
1063 | 0 | (ptr_InitParams())->~InitParams__tdef(); |
1064 | 0 | break; |
1065 | 0 | } |
1066 | 0 | case TInitOriginParams: |
1067 | 0 | { |
1068 | 0 | (ptr_InitOriginParams())->~InitOriginParams__tdef(); |
1069 | 0 | break; |
1070 | 0 | } |
1071 | 0 | case TClearOriginParams: |
1072 | 0 | { |
1073 | 0 | (ptr_ClearOriginParams())->~ClearOriginParams__tdef(); |
1074 | 0 | break; |
1075 | 0 | } |
1076 | 0 | case TClearDataParams: |
1077 | 0 | { |
1078 | 0 | (ptr_ClearDataParams())->~ClearDataParams__tdef(); |
1079 | 0 | break; |
1080 | 0 | } |
1081 | 0 | case TClearAllParams: |
1082 | 0 | { |
1083 | 0 | (ptr_ClearAllParams())->~ClearAllParams__tdef(); |
1084 | 0 | break; |
1085 | 0 | } |
1086 | 0 | case TResetAllParams: |
1087 | 0 | { |
1088 | 0 | (ptr_ResetAllParams())->~ResetAllParams__tdef(); |
1089 | 0 | break; |
1090 | 0 | } |
1091 | 0 | case TPersistedParams: |
1092 | 0 | { |
1093 | 0 | (ptr_PersistedParams())->~PersistedParams__tdef(); |
1094 | 0 | break; |
1095 | 0 | } |
1096 | 0 | case TPersistParams: |
1097 | 0 | { |
1098 | 0 | (ptr_PersistParams())->~PersistParams__tdef(); |
1099 | 0 | break; |
1100 | 0 | } |
1101 | 0 | default: |
1102 | 0 | { |
1103 | 0 | mozilla::ipc::LogicError("not reached"); |
1104 | 0 | break; |
1105 | 0 | } |
1106 | 0 | } |
1107 | 0 | return true; |
1108 | 0 | } |
1109 | | |
1110 | | MOZ_IMPLICIT RequestParams::RequestParams(const InitParams& aOther) |
1111 | 0 | { |
1112 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams(aOther); |
1113 | 0 | mType = TInitParams; |
1114 | 0 | } |
1115 | | |
1116 | | MOZ_IMPLICIT RequestParams::RequestParams(InitParams&& aOther) |
1117 | 0 | { |
1118 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams(std::move(aOther)); |
1119 | 0 | mType = TInitParams; |
1120 | 0 | } |
1121 | | |
1122 | | MOZ_IMPLICIT RequestParams::RequestParams(const InitOriginParams& aOther) |
1123 | 0 | { |
1124 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams(aOther); |
1125 | 0 | mType = TInitOriginParams; |
1126 | 0 | } |
1127 | | |
1128 | | MOZ_IMPLICIT RequestParams::RequestParams(InitOriginParams&& aOther) |
1129 | 0 | { |
1130 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams(std::move(aOther)); |
1131 | 0 | mType = TInitOriginParams; |
1132 | 0 | } |
1133 | | |
1134 | | MOZ_IMPLICIT RequestParams::RequestParams(const ClearOriginParams& aOther) |
1135 | 0 | { |
1136 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams(aOther); |
1137 | 0 | mType = TClearOriginParams; |
1138 | 0 | } |
1139 | | |
1140 | | MOZ_IMPLICIT RequestParams::RequestParams(ClearOriginParams&& aOther) |
1141 | 0 | { |
1142 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams(std::move(aOther)); |
1143 | 0 | mType = TClearOriginParams; |
1144 | 0 | } |
1145 | | |
1146 | | MOZ_IMPLICIT RequestParams::RequestParams(const ClearDataParams& aOther) |
1147 | 0 | { |
1148 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams(aOther); |
1149 | 0 | mType = TClearDataParams; |
1150 | 0 | } |
1151 | | |
1152 | | MOZ_IMPLICIT RequestParams::RequestParams(ClearDataParams&& aOther) |
1153 | 0 | { |
1154 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams(std::move(aOther)); |
1155 | 0 | mType = TClearDataParams; |
1156 | 0 | } |
1157 | | |
1158 | | MOZ_IMPLICIT RequestParams::RequestParams(const ClearAllParams& aOther) |
1159 | 0 | { |
1160 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams(aOther); |
1161 | 0 | mType = TClearAllParams; |
1162 | 0 | } |
1163 | | |
1164 | | MOZ_IMPLICIT RequestParams::RequestParams(ClearAllParams&& aOther) |
1165 | 0 | { |
1166 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams(std::move(aOther)); |
1167 | 0 | mType = TClearAllParams; |
1168 | 0 | } |
1169 | | |
1170 | | MOZ_IMPLICIT RequestParams::RequestParams(const ResetAllParams& aOther) |
1171 | 0 | { |
1172 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams(aOther); |
1173 | 0 | mType = TResetAllParams; |
1174 | 0 | } |
1175 | | |
1176 | | MOZ_IMPLICIT RequestParams::RequestParams(ResetAllParams&& aOther) |
1177 | 0 | { |
1178 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams(std::move(aOther)); |
1179 | 0 | mType = TResetAllParams; |
1180 | 0 | } |
1181 | | |
1182 | | MOZ_IMPLICIT RequestParams::RequestParams(const PersistedParams& aOther) |
1183 | 0 | { |
1184 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams(aOther); |
1185 | 0 | mType = TPersistedParams; |
1186 | 0 | } |
1187 | | |
1188 | | MOZ_IMPLICIT RequestParams::RequestParams(PersistedParams&& aOther) |
1189 | 0 | { |
1190 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams(std::move(aOther)); |
1191 | 0 | mType = TPersistedParams; |
1192 | 0 | } |
1193 | | |
1194 | | MOZ_IMPLICIT RequestParams::RequestParams(const PersistParams& aOther) |
1195 | 0 | { |
1196 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams(aOther); |
1197 | 0 | mType = TPersistParams; |
1198 | 0 | } |
1199 | | |
1200 | | MOZ_IMPLICIT RequestParams::RequestParams(PersistParams&& aOther) |
1201 | 0 | { |
1202 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams(std::move(aOther)); |
1203 | 0 | mType = TPersistParams; |
1204 | 0 | } |
1205 | | |
1206 | | MOZ_IMPLICIT RequestParams::RequestParams(const RequestParams& aOther) |
1207 | 0 | { |
1208 | 0 | (aOther).AssertSanity(); |
1209 | 0 | switch ((aOther).type()) { |
1210 | 0 | case TInitParams: |
1211 | 0 | { |
1212 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams((aOther).get_InitParams()); |
1213 | 0 | break; |
1214 | 0 | } |
1215 | 0 | case TInitOriginParams: |
1216 | 0 | { |
1217 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams((aOther).get_InitOriginParams()); |
1218 | 0 | break; |
1219 | 0 | } |
1220 | 0 | case TClearOriginParams: |
1221 | 0 | { |
1222 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams((aOther).get_ClearOriginParams()); |
1223 | 0 | break; |
1224 | 0 | } |
1225 | 0 | case TClearDataParams: |
1226 | 0 | { |
1227 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams((aOther).get_ClearDataParams()); |
1228 | 0 | break; |
1229 | 0 | } |
1230 | 0 | case TClearAllParams: |
1231 | 0 | { |
1232 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams((aOther).get_ClearAllParams()); |
1233 | 0 | break; |
1234 | 0 | } |
1235 | 0 | case TResetAllParams: |
1236 | 0 | { |
1237 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams((aOther).get_ResetAllParams()); |
1238 | 0 | break; |
1239 | 0 | } |
1240 | 0 | case TPersistedParams: |
1241 | 0 | { |
1242 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams((aOther).get_PersistedParams()); |
1243 | 0 | break; |
1244 | 0 | } |
1245 | 0 | case TPersistParams: |
1246 | 0 | { |
1247 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams((aOther).get_PersistParams()); |
1248 | 0 | break; |
1249 | 0 | } |
1250 | 0 | case T__None: |
1251 | 0 | { |
1252 | 0 | break; |
1253 | 0 | } |
1254 | 0 | default: |
1255 | 0 | { |
1256 | 0 | mozilla::ipc::LogicError("unreached"); |
1257 | 0 | return; |
1258 | 0 | } |
1259 | 0 | } |
1260 | 0 | mType = (aOther).type(); |
1261 | 0 | } |
1262 | | |
1263 | | MOZ_IMPLICIT RequestParams::RequestParams(RequestParams&& aOther) |
1264 | 0 | { |
1265 | 0 | (aOther).AssertSanity(); |
1266 | 0 | Type t = (aOther).type(); |
1267 | 0 | switch (t) { |
1268 | 0 | case TInitParams: |
1269 | 0 | { |
1270 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams(std::move((aOther).get_InitParams())); |
1271 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1272 | 0 | break; |
1273 | 0 | } |
1274 | 0 | case TInitOriginParams: |
1275 | 0 | { |
1276 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams(std::move((aOther).get_InitOriginParams())); |
1277 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1278 | 0 | break; |
1279 | 0 | } |
1280 | 0 | case TClearOriginParams: |
1281 | 0 | { |
1282 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams(std::move((aOther).get_ClearOriginParams())); |
1283 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1284 | 0 | break; |
1285 | 0 | } |
1286 | 0 | case TClearDataParams: |
1287 | 0 | { |
1288 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams(std::move((aOther).get_ClearDataParams())); |
1289 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1290 | 0 | break; |
1291 | 0 | } |
1292 | 0 | case TClearAllParams: |
1293 | 0 | { |
1294 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams(std::move((aOther).get_ClearAllParams())); |
1295 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1296 | 0 | break; |
1297 | 0 | } |
1298 | 0 | case TResetAllParams: |
1299 | 0 | { |
1300 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams(std::move((aOther).get_ResetAllParams())); |
1301 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1302 | 0 | break; |
1303 | 0 | } |
1304 | 0 | case TPersistedParams: |
1305 | 0 | { |
1306 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams(std::move((aOther).get_PersistedParams())); |
1307 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1308 | 0 | break; |
1309 | 0 | } |
1310 | 0 | case TPersistParams: |
1311 | 0 | { |
1312 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams(std::move((aOther).get_PersistParams())); |
1313 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
1314 | 0 | break; |
1315 | 0 | } |
1316 | 0 | case T__None: |
1317 | 0 | { |
1318 | 0 | break; |
1319 | 0 | } |
1320 | 0 | default: |
1321 | 0 | { |
1322 | 0 | mozilla::ipc::LogicError("unreached"); |
1323 | 0 | return; |
1324 | 0 | } |
1325 | 0 | } |
1326 | 0 | (aOther).mType = T__None; |
1327 | 0 | mType = t; |
1328 | 0 | } |
1329 | | |
1330 | | RequestParams::~RequestParams() |
1331 | 0 | { |
1332 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
1333 | 0 | } |
1334 | | |
1335 | | auto RequestParams::operator=(const InitParams& aRhs) -> RequestParams& |
1336 | 0 | { |
1337 | 0 | if (MaybeDestroy(TInitParams)) { |
1338 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams; |
1339 | 0 | } |
1340 | 0 | (*(ptr_InitParams())) = aRhs; |
1341 | 0 | mType = TInitParams; |
1342 | 0 | return (*(this)); |
1343 | 0 | } |
1344 | | |
1345 | | auto RequestParams::operator=(InitParams&& aRhs) -> RequestParams& |
1346 | 0 | { |
1347 | 0 | if (MaybeDestroy(TInitParams)) { |
1348 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams; |
1349 | 0 | } |
1350 | 0 | (*(ptr_InitParams())) = std::move(aRhs); |
1351 | 0 | mType = TInitParams; |
1352 | 0 | return (*(this)); |
1353 | 0 | } |
1354 | | |
1355 | | auto RequestParams::operator=(const InitOriginParams& aRhs) -> RequestParams& |
1356 | 0 | { |
1357 | 0 | if (MaybeDestroy(TInitOriginParams)) { |
1358 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams; |
1359 | 0 | } |
1360 | 0 | (*(ptr_InitOriginParams())) = aRhs; |
1361 | 0 | mType = TInitOriginParams; |
1362 | 0 | return (*(this)); |
1363 | 0 | } |
1364 | | |
1365 | | auto RequestParams::operator=(InitOriginParams&& aRhs) -> RequestParams& |
1366 | 0 | { |
1367 | 0 | if (MaybeDestroy(TInitOriginParams)) { |
1368 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams; |
1369 | 0 | } |
1370 | 0 | (*(ptr_InitOriginParams())) = std::move(aRhs); |
1371 | 0 | mType = TInitOriginParams; |
1372 | 0 | return (*(this)); |
1373 | 0 | } |
1374 | | |
1375 | | auto RequestParams::operator=(const ClearOriginParams& aRhs) -> RequestParams& |
1376 | 0 | { |
1377 | 0 | if (MaybeDestroy(TClearOriginParams)) { |
1378 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams; |
1379 | 0 | } |
1380 | 0 | (*(ptr_ClearOriginParams())) = aRhs; |
1381 | 0 | mType = TClearOriginParams; |
1382 | 0 | return (*(this)); |
1383 | 0 | } |
1384 | | |
1385 | | auto RequestParams::operator=(ClearOriginParams&& aRhs) -> RequestParams& |
1386 | 0 | { |
1387 | 0 | if (MaybeDestroy(TClearOriginParams)) { |
1388 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams; |
1389 | 0 | } |
1390 | 0 | (*(ptr_ClearOriginParams())) = std::move(aRhs); |
1391 | 0 | mType = TClearOriginParams; |
1392 | 0 | return (*(this)); |
1393 | 0 | } |
1394 | | |
1395 | | auto RequestParams::operator=(const ClearDataParams& aRhs) -> RequestParams& |
1396 | 0 | { |
1397 | 0 | if (MaybeDestroy(TClearDataParams)) { |
1398 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams; |
1399 | 0 | } |
1400 | 0 | (*(ptr_ClearDataParams())) = aRhs; |
1401 | 0 | mType = TClearDataParams; |
1402 | 0 | return (*(this)); |
1403 | 0 | } |
1404 | | |
1405 | | auto RequestParams::operator=(ClearDataParams&& aRhs) -> RequestParams& |
1406 | 0 | { |
1407 | 0 | if (MaybeDestroy(TClearDataParams)) { |
1408 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams; |
1409 | 0 | } |
1410 | 0 | (*(ptr_ClearDataParams())) = std::move(aRhs); |
1411 | 0 | mType = TClearDataParams; |
1412 | 0 | return (*(this)); |
1413 | 0 | } |
1414 | | |
1415 | | auto RequestParams::operator=(const ClearAllParams& aRhs) -> RequestParams& |
1416 | 0 | { |
1417 | 0 | if (MaybeDestroy(TClearAllParams)) { |
1418 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams; |
1419 | 0 | } |
1420 | 0 | (*(ptr_ClearAllParams())) = aRhs; |
1421 | 0 | mType = TClearAllParams; |
1422 | 0 | return (*(this)); |
1423 | 0 | } |
1424 | | |
1425 | | auto RequestParams::operator=(ClearAllParams&& aRhs) -> RequestParams& |
1426 | 0 | { |
1427 | 0 | if (MaybeDestroy(TClearAllParams)) { |
1428 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams; |
1429 | 0 | } |
1430 | 0 | (*(ptr_ClearAllParams())) = std::move(aRhs); |
1431 | 0 | mType = TClearAllParams; |
1432 | 0 | return (*(this)); |
1433 | 0 | } |
1434 | | |
1435 | | auto RequestParams::operator=(const ResetAllParams& aRhs) -> RequestParams& |
1436 | 0 | { |
1437 | 0 | if (MaybeDestroy(TResetAllParams)) { |
1438 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams; |
1439 | 0 | } |
1440 | 0 | (*(ptr_ResetAllParams())) = aRhs; |
1441 | 0 | mType = TResetAllParams; |
1442 | 0 | return (*(this)); |
1443 | 0 | } |
1444 | | |
1445 | | auto RequestParams::operator=(ResetAllParams&& aRhs) -> RequestParams& |
1446 | 0 | { |
1447 | 0 | if (MaybeDestroy(TResetAllParams)) { |
1448 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams; |
1449 | 0 | } |
1450 | 0 | (*(ptr_ResetAllParams())) = std::move(aRhs); |
1451 | 0 | mType = TResetAllParams; |
1452 | 0 | return (*(this)); |
1453 | 0 | } |
1454 | | |
1455 | | auto RequestParams::operator=(const PersistedParams& aRhs) -> RequestParams& |
1456 | 0 | { |
1457 | 0 | if (MaybeDestroy(TPersistedParams)) { |
1458 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams; |
1459 | 0 | } |
1460 | 0 | (*(ptr_PersistedParams())) = aRhs; |
1461 | 0 | mType = TPersistedParams; |
1462 | 0 | return (*(this)); |
1463 | 0 | } |
1464 | | |
1465 | | auto RequestParams::operator=(PersistedParams&& aRhs) -> RequestParams& |
1466 | 0 | { |
1467 | 0 | if (MaybeDestroy(TPersistedParams)) { |
1468 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams; |
1469 | 0 | } |
1470 | 0 | (*(ptr_PersistedParams())) = std::move(aRhs); |
1471 | 0 | mType = TPersistedParams; |
1472 | 0 | return (*(this)); |
1473 | 0 | } |
1474 | | |
1475 | | auto RequestParams::operator=(const PersistParams& aRhs) -> RequestParams& |
1476 | 0 | { |
1477 | 0 | if (MaybeDestroy(TPersistParams)) { |
1478 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams; |
1479 | 0 | } |
1480 | 0 | (*(ptr_PersistParams())) = aRhs; |
1481 | 0 | mType = TPersistParams; |
1482 | 0 | return (*(this)); |
1483 | 0 | } |
1484 | | |
1485 | | auto RequestParams::operator=(PersistParams&& aRhs) -> RequestParams& |
1486 | 0 | { |
1487 | 0 | if (MaybeDestroy(TPersistParams)) { |
1488 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams; |
1489 | 0 | } |
1490 | 0 | (*(ptr_PersistParams())) = std::move(aRhs); |
1491 | 0 | mType = TPersistParams; |
1492 | 0 | return (*(this)); |
1493 | 0 | } |
1494 | | |
1495 | | auto RequestParams::operator=(const RequestParams& aRhs) -> RequestParams& |
1496 | 0 | { |
1497 | 0 | (aRhs).AssertSanity(); |
1498 | 0 | Type t = (aRhs).type(); |
1499 | 0 | switch (t) { |
1500 | 0 | case TInitParams: |
1501 | 0 | { |
1502 | 0 | if (MaybeDestroy(t)) { |
1503 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams; |
1504 | 0 | } |
1505 | 0 | (*(ptr_InitParams())) = (aRhs).get_InitParams(); |
1506 | 0 | break; |
1507 | 0 | } |
1508 | 0 | case TInitOriginParams: |
1509 | 0 | { |
1510 | 0 | if (MaybeDestroy(t)) { |
1511 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams; |
1512 | 0 | } |
1513 | 0 | (*(ptr_InitOriginParams())) = (aRhs).get_InitOriginParams(); |
1514 | 0 | break; |
1515 | 0 | } |
1516 | 0 | case TClearOriginParams: |
1517 | 0 | { |
1518 | 0 | if (MaybeDestroy(t)) { |
1519 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams; |
1520 | 0 | } |
1521 | 0 | (*(ptr_ClearOriginParams())) = (aRhs).get_ClearOriginParams(); |
1522 | 0 | break; |
1523 | 0 | } |
1524 | 0 | case TClearDataParams: |
1525 | 0 | { |
1526 | 0 | if (MaybeDestroy(t)) { |
1527 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams; |
1528 | 0 | } |
1529 | 0 | (*(ptr_ClearDataParams())) = (aRhs).get_ClearDataParams(); |
1530 | 0 | break; |
1531 | 0 | } |
1532 | 0 | case TClearAllParams: |
1533 | 0 | { |
1534 | 0 | if (MaybeDestroy(t)) { |
1535 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams; |
1536 | 0 | } |
1537 | 0 | (*(ptr_ClearAllParams())) = (aRhs).get_ClearAllParams(); |
1538 | 0 | break; |
1539 | 0 | } |
1540 | 0 | case TResetAllParams: |
1541 | 0 | { |
1542 | 0 | if (MaybeDestroy(t)) { |
1543 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams; |
1544 | 0 | } |
1545 | 0 | (*(ptr_ResetAllParams())) = (aRhs).get_ResetAllParams(); |
1546 | 0 | break; |
1547 | 0 | } |
1548 | 0 | case TPersistedParams: |
1549 | 0 | { |
1550 | 0 | if (MaybeDestroy(t)) { |
1551 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams; |
1552 | 0 | } |
1553 | 0 | (*(ptr_PersistedParams())) = (aRhs).get_PersistedParams(); |
1554 | 0 | break; |
1555 | 0 | } |
1556 | 0 | case TPersistParams: |
1557 | 0 | { |
1558 | 0 | if (MaybeDestroy(t)) { |
1559 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams; |
1560 | 0 | } |
1561 | 0 | (*(ptr_PersistParams())) = (aRhs).get_PersistParams(); |
1562 | 0 | break; |
1563 | 0 | } |
1564 | 0 | case T__None: |
1565 | 0 | { |
1566 | 0 | static_cast<void>(MaybeDestroy(t)); |
1567 | 0 | break; |
1568 | 0 | } |
1569 | 0 | default: |
1570 | 0 | { |
1571 | 0 | mozilla::ipc::LogicError("unreached"); |
1572 | 0 | break; |
1573 | 0 | } |
1574 | 0 | } |
1575 | 0 | mType = t; |
1576 | 0 | return (*(this)); |
1577 | 0 | } |
1578 | | |
1579 | | auto RequestParams::operator=(RequestParams&& aRhs) -> RequestParams& |
1580 | 0 | { |
1581 | 0 | (aRhs).AssertSanity(); |
1582 | 0 | Type t = (aRhs).type(); |
1583 | 0 | switch (t) { |
1584 | 0 | case TInitParams: |
1585 | 0 | { |
1586 | 0 | if (MaybeDestroy(t)) { |
1587 | 0 | new (mozilla::KnownNotNull, ptr_InitParams()) InitParams; |
1588 | 0 | } |
1589 | 0 | (*(ptr_InitParams())) = std::move((aRhs).get_InitParams()); |
1590 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1591 | 0 | break; |
1592 | 0 | } |
1593 | 0 | case TInitOriginParams: |
1594 | 0 | { |
1595 | 0 | if (MaybeDestroy(t)) { |
1596 | 0 | new (mozilla::KnownNotNull, ptr_InitOriginParams()) InitOriginParams; |
1597 | 0 | } |
1598 | 0 | (*(ptr_InitOriginParams())) = std::move((aRhs).get_InitOriginParams()); |
1599 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1600 | 0 | break; |
1601 | 0 | } |
1602 | 0 | case TClearOriginParams: |
1603 | 0 | { |
1604 | 0 | if (MaybeDestroy(t)) { |
1605 | 0 | new (mozilla::KnownNotNull, ptr_ClearOriginParams()) ClearOriginParams; |
1606 | 0 | } |
1607 | 0 | (*(ptr_ClearOriginParams())) = std::move((aRhs).get_ClearOriginParams()); |
1608 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1609 | 0 | break; |
1610 | 0 | } |
1611 | 0 | case TClearDataParams: |
1612 | 0 | { |
1613 | 0 | if (MaybeDestroy(t)) { |
1614 | 0 | new (mozilla::KnownNotNull, ptr_ClearDataParams()) ClearDataParams; |
1615 | 0 | } |
1616 | 0 | (*(ptr_ClearDataParams())) = std::move((aRhs).get_ClearDataParams()); |
1617 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1618 | 0 | break; |
1619 | 0 | } |
1620 | 0 | case TClearAllParams: |
1621 | 0 | { |
1622 | 0 | if (MaybeDestroy(t)) { |
1623 | 0 | new (mozilla::KnownNotNull, ptr_ClearAllParams()) ClearAllParams; |
1624 | 0 | } |
1625 | 0 | (*(ptr_ClearAllParams())) = std::move((aRhs).get_ClearAllParams()); |
1626 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1627 | 0 | break; |
1628 | 0 | } |
1629 | 0 | case TResetAllParams: |
1630 | 0 | { |
1631 | 0 | if (MaybeDestroy(t)) { |
1632 | 0 | new (mozilla::KnownNotNull, ptr_ResetAllParams()) ResetAllParams; |
1633 | 0 | } |
1634 | 0 | (*(ptr_ResetAllParams())) = std::move((aRhs).get_ResetAllParams()); |
1635 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1636 | 0 | break; |
1637 | 0 | } |
1638 | 0 | case TPersistedParams: |
1639 | 0 | { |
1640 | 0 | if (MaybeDestroy(t)) { |
1641 | 0 | new (mozilla::KnownNotNull, ptr_PersistedParams()) PersistedParams; |
1642 | 0 | } |
1643 | 0 | (*(ptr_PersistedParams())) = std::move((aRhs).get_PersistedParams()); |
1644 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1645 | 0 | break; |
1646 | 0 | } |
1647 | 0 | case TPersistParams: |
1648 | 0 | { |
1649 | 0 | if (MaybeDestroy(t)) { |
1650 | 0 | new (mozilla::KnownNotNull, ptr_PersistParams()) PersistParams; |
1651 | 0 | } |
1652 | 0 | (*(ptr_PersistParams())) = std::move((aRhs).get_PersistParams()); |
1653 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1654 | 0 | break; |
1655 | 0 | } |
1656 | 0 | case T__None: |
1657 | 0 | { |
1658 | 0 | static_cast<void>(MaybeDestroy(t)); |
1659 | 0 | break; |
1660 | 0 | } |
1661 | 0 | default: |
1662 | 0 | { |
1663 | 0 | mozilla::ipc::LogicError("unreached"); |
1664 | 0 | break; |
1665 | 0 | } |
1666 | 0 | } |
1667 | 0 | (aRhs).mType = T__None; |
1668 | 0 | mType = t; |
1669 | 0 | return (*(this)); |
1670 | 0 | } |
1671 | | |
1672 | | auto RequestParams::operator==(const InitParams& aRhs) const -> bool |
1673 | 0 | { |
1674 | 0 | return (get_InitParams()) == (aRhs); |
1675 | 0 | } |
1676 | | |
1677 | | auto RequestParams::operator==(const InitOriginParams& aRhs) const -> bool |
1678 | 0 | { |
1679 | 0 | return (get_InitOriginParams()) == (aRhs); |
1680 | 0 | } |
1681 | | |
1682 | | auto RequestParams::operator==(const ClearOriginParams& aRhs) const -> bool |
1683 | 0 | { |
1684 | 0 | return (get_ClearOriginParams()) == (aRhs); |
1685 | 0 | } |
1686 | | |
1687 | | auto RequestParams::operator==(const ClearDataParams& aRhs) const -> bool |
1688 | 0 | { |
1689 | 0 | return (get_ClearDataParams()) == (aRhs); |
1690 | 0 | } |
1691 | | |
1692 | | auto RequestParams::operator==(const ClearAllParams& aRhs) const -> bool |
1693 | 0 | { |
1694 | 0 | return (get_ClearAllParams()) == (aRhs); |
1695 | 0 | } |
1696 | | |
1697 | | auto RequestParams::operator==(const ResetAllParams& aRhs) const -> bool |
1698 | 0 | { |
1699 | 0 | return (get_ResetAllParams()) == (aRhs); |
1700 | 0 | } |
1701 | | |
1702 | | auto RequestParams::operator==(const PersistedParams& aRhs) const -> bool |
1703 | 0 | { |
1704 | 0 | return (get_PersistedParams()) == (aRhs); |
1705 | 0 | } |
1706 | | |
1707 | | auto RequestParams::operator==(const PersistParams& aRhs) const -> bool |
1708 | 0 | { |
1709 | 0 | return (get_PersistParams()) == (aRhs); |
1710 | 0 | } |
1711 | | |
1712 | | auto RequestParams::operator==(const RequestParams& aRhs) const -> bool |
1713 | 0 | { |
1714 | 0 | if ((type()) != ((aRhs).type())) { |
1715 | 0 | return false; |
1716 | 0 | } |
1717 | 0 | |
1718 | 0 | switch (type()) { |
1719 | 0 | case TInitParams: |
1720 | 0 | { |
1721 | 0 | return (get_InitParams()) == ((aRhs).get_InitParams()); |
1722 | 0 | } |
1723 | 0 | case TInitOriginParams: |
1724 | 0 | { |
1725 | 0 | return (get_InitOriginParams()) == ((aRhs).get_InitOriginParams()); |
1726 | 0 | } |
1727 | 0 | case TClearOriginParams: |
1728 | 0 | { |
1729 | 0 | return (get_ClearOriginParams()) == ((aRhs).get_ClearOriginParams()); |
1730 | 0 | } |
1731 | 0 | case TClearDataParams: |
1732 | 0 | { |
1733 | 0 | return (get_ClearDataParams()) == ((aRhs).get_ClearDataParams()); |
1734 | 0 | } |
1735 | 0 | case TClearAllParams: |
1736 | 0 | { |
1737 | 0 | return (get_ClearAllParams()) == ((aRhs).get_ClearAllParams()); |
1738 | 0 | } |
1739 | 0 | case TResetAllParams: |
1740 | 0 | { |
1741 | 0 | return (get_ResetAllParams()) == ((aRhs).get_ResetAllParams()); |
1742 | 0 | } |
1743 | 0 | case TPersistedParams: |
1744 | 0 | { |
1745 | 0 | return (get_PersistedParams()) == ((aRhs).get_PersistedParams()); |
1746 | 0 | } |
1747 | 0 | case TPersistParams: |
1748 | 0 | { |
1749 | 0 | return (get_PersistParams()) == ((aRhs).get_PersistParams()); |
1750 | 0 | } |
1751 | 0 | default: |
1752 | 0 | { |
1753 | 0 | mozilla::ipc::LogicError("unreached"); |
1754 | 0 | return false; |
1755 | 0 | } |
1756 | 0 | } |
1757 | 0 | } |
1758 | | |
1759 | | auto RequestParams::get(InitParams* aOutValue) const -> void |
1760 | 0 | { |
1761 | 0 | (*(aOutValue)) = get_InitParams(); |
1762 | 0 | } |
1763 | | |
1764 | | auto RequestParams::get(InitOriginParams* aOutValue) const -> void |
1765 | 0 | { |
1766 | 0 | (*(aOutValue)) = get_InitOriginParams(); |
1767 | 0 | } |
1768 | | |
1769 | | auto RequestParams::get(ClearOriginParams* aOutValue) const -> void |
1770 | 0 | { |
1771 | 0 | (*(aOutValue)) = get_ClearOriginParams(); |
1772 | 0 | } |
1773 | | |
1774 | | auto RequestParams::get(ClearDataParams* aOutValue) const -> void |
1775 | 0 | { |
1776 | 0 | (*(aOutValue)) = get_ClearDataParams(); |
1777 | 0 | } |
1778 | | |
1779 | | auto RequestParams::get(ClearAllParams* aOutValue) const -> void |
1780 | 0 | { |
1781 | 0 | (*(aOutValue)) = get_ClearAllParams(); |
1782 | 0 | } |
1783 | | |
1784 | | auto RequestParams::get(ResetAllParams* aOutValue) const -> void |
1785 | 0 | { |
1786 | 0 | (*(aOutValue)) = get_ResetAllParams(); |
1787 | 0 | } |
1788 | | |
1789 | | auto RequestParams::get(PersistedParams* aOutValue) const -> void |
1790 | 0 | { |
1791 | 0 | (*(aOutValue)) = get_PersistedParams(); |
1792 | 0 | } |
1793 | | |
1794 | | auto RequestParams::get(PersistParams* aOutValue) const -> void |
1795 | 0 | { |
1796 | 0 | (*(aOutValue)) = get_PersistParams(); |
1797 | 0 | } |
1798 | | |
1799 | | } // namespace quota |
1800 | | } // namespace dom |
1801 | | } // namespace mozilla |
1802 | | |
1803 | | namespace mozilla { |
1804 | | namespace ipc { |
1805 | | auto IPDLParamTraits<mozilla::dom::quota::RequestParams>::Write( |
1806 | | IPC::Message* aMsg, |
1807 | | mozilla::ipc::IProtocol* aActor, |
1808 | | const paramType& aVar) -> void |
1809 | | { |
1810 | | typedef mozilla::dom::quota::RequestParams union__; |
1811 | | int type; |
1812 | | type = (aVar).type(); |
1813 | | WriteIPDLParam(aMsg, aActor, type); |
1814 | | // Sentinel = 'RequestParams' |
1815 | | (aMsg)->WriteSentinel(2934802656); |
1816 | | |
1817 | | switch (type) { |
1818 | | case union__::TInitParams: |
1819 | | { |
1820 | | WriteIPDLParam(aMsg, aActor, (aVar).get_InitParams()); |
1821 | | // Sentinel = 'TInitParams' |
1822 | | (aMsg)->WriteSentinel(1465472583); |
1823 | | return; |
1824 | | } |
1825 | | case union__::TInitOriginParams: |
1826 | | { |
1827 | | WriteIPDLParam(aMsg, aActor, (aVar).get_InitOriginParams()); |
1828 | | // Sentinel = 'TInitOriginParams' |
1829 | | (aMsg)->WriteSentinel(2172042059); |
1830 | | return; |
1831 | | } |
1832 | | case union__::TClearOriginParams: |
1833 | | { |
1834 | | WriteIPDLParam(aMsg, aActor, (aVar).get_ClearOriginParams()); |
1835 | | // Sentinel = 'TClearOriginParams' |
1836 | | (aMsg)->WriteSentinel(2428997745); |
1837 | | return; |
1838 | | } |
1839 | | case union__::TClearDataParams: |
1840 | | { |
1841 | | WriteIPDLParam(aMsg, aActor, (aVar).get_ClearDataParams()); |
1842 | | // Sentinel = 'TClearDataParams' |
1843 | | (aMsg)->WriteSentinel(2645415261); |
1844 | | return; |
1845 | | } |
1846 | | case union__::TClearAllParams: |
1847 | | { |
1848 | | WriteIPDLParam(aMsg, aActor, (aVar).get_ClearAllParams()); |
1849 | | // Sentinel = 'TClearAllParams' |
1850 | | (aMsg)->WriteSentinel(4218667221); |
1851 | | return; |
1852 | | } |
1853 | | case union__::TResetAllParams: |
1854 | | { |
1855 | | WriteIPDLParam(aMsg, aActor, (aVar).get_ResetAllParams()); |
1856 | | // Sentinel = 'TResetAllParams' |
1857 | | (aMsg)->WriteSentinel(1597774515); |
1858 | | return; |
1859 | | } |
1860 | | case union__::TPersistedParams: |
1861 | | { |
1862 | | WriteIPDLParam(aMsg, aActor, (aVar).get_PersistedParams()); |
1863 | | // Sentinel = 'TPersistedParams' |
1864 | | (aMsg)->WriteSentinel(2151579009); |
1865 | | return; |
1866 | | } |
1867 | | case union__::TPersistParams: |
1868 | | { |
1869 | | WriteIPDLParam(aMsg, aActor, (aVar).get_PersistParams()); |
1870 | | // Sentinel = 'TPersistParams' |
1871 | | (aMsg)->WriteSentinel(610120232); |
1872 | | return; |
1873 | | } |
1874 | | default: |
1875 | | { |
1876 | | (aActor)->FatalError("unknown union type"); |
1877 | | return; |
1878 | | } |
1879 | | } |
1880 | | } |
1881 | | |
1882 | | auto IPDLParamTraits<mozilla::dom::quota::RequestParams>::Read( |
1883 | | const IPC::Message* aMsg, |
1884 | | PickleIterator* aIter, |
1885 | | mozilla::ipc::IProtocol* aActor, |
1886 | | paramType* aVar) -> bool |
1887 | 0 | { |
1888 | 0 | typedef mozilla::dom::quota::RequestParams union__; |
1889 | 0 | int type; |
1890 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
1891 | 0 | (aActor)->FatalError("Error deserializing type of union RequestParams"); |
1892 | 0 | return false; |
1893 | 0 | } |
1894 | 0 | // Sentinel = 'RequestParams' |
1895 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2934802656)))) { |
1896 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union RequestParams"); |
1897 | 0 | return false; |
1898 | 0 | } |
1899 | 0 | |
1900 | 0 | switch (type) { |
1901 | 0 | case union__::TInitParams: |
1902 | 0 | { |
1903 | 0 | mozilla::dom::quota::InitParams tmp = mozilla::dom::quota::InitParams(); |
1904 | 0 | (*(aVar)) = tmp; |
1905 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_InitParams())))))) { |
1906 | 0 | (aActor)->FatalError("Error deserializing variant TInitParams of union RequestParams"); |
1907 | 0 | return false; |
1908 | 0 | } |
1909 | 0 | // Sentinel = 'TInitParams' |
1910 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1465472583)))) { |
1911 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TInitParams of union RequestParams"); |
1912 | 0 | return false; |
1913 | 0 | } |
1914 | 0 | return true; |
1915 | 0 | } |
1916 | 0 | case union__::TInitOriginParams: |
1917 | 0 | { |
1918 | 0 | mozilla::dom::quota::InitOriginParams tmp = mozilla::dom::quota::InitOriginParams(); |
1919 | 0 | (*(aVar)) = tmp; |
1920 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_InitOriginParams())))))) { |
1921 | 0 | (aActor)->FatalError("Error deserializing variant TInitOriginParams of union RequestParams"); |
1922 | 0 | return false; |
1923 | 0 | } |
1924 | 0 | // Sentinel = 'TInitOriginParams' |
1925 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2172042059)))) { |
1926 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TInitOriginParams of union RequestParams"); |
1927 | 0 | return false; |
1928 | 0 | } |
1929 | 0 | return true; |
1930 | 0 | } |
1931 | 0 | case union__::TClearOriginParams: |
1932 | 0 | { |
1933 | 0 | mozilla::dom::quota::ClearOriginParams tmp = mozilla::dom::quota::ClearOriginParams(); |
1934 | 0 | (*(aVar)) = tmp; |
1935 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ClearOriginParams())))))) { |
1936 | 0 | (aActor)->FatalError("Error deserializing variant TClearOriginParams of union RequestParams"); |
1937 | 0 | return false; |
1938 | 0 | } |
1939 | 0 | // Sentinel = 'TClearOriginParams' |
1940 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2428997745)))) { |
1941 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TClearOriginParams of union RequestParams"); |
1942 | 0 | return false; |
1943 | 0 | } |
1944 | 0 | return true; |
1945 | 0 | } |
1946 | 0 | case union__::TClearDataParams: |
1947 | 0 | { |
1948 | 0 | mozilla::dom::quota::ClearDataParams tmp = mozilla::dom::quota::ClearDataParams(); |
1949 | 0 | (*(aVar)) = tmp; |
1950 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ClearDataParams())))))) { |
1951 | 0 | (aActor)->FatalError("Error deserializing variant TClearDataParams of union RequestParams"); |
1952 | 0 | return false; |
1953 | 0 | } |
1954 | 0 | // Sentinel = 'TClearDataParams' |
1955 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2645415261)))) { |
1956 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TClearDataParams of union RequestParams"); |
1957 | 0 | return false; |
1958 | 0 | } |
1959 | 0 | return true; |
1960 | 0 | } |
1961 | 0 | case union__::TClearAllParams: |
1962 | 0 | { |
1963 | 0 | mozilla::dom::quota::ClearAllParams tmp = mozilla::dom::quota::ClearAllParams(); |
1964 | 0 | (*(aVar)) = tmp; |
1965 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ClearAllParams())))))) { |
1966 | 0 | (aActor)->FatalError("Error deserializing variant TClearAllParams of union RequestParams"); |
1967 | 0 | return false; |
1968 | 0 | } |
1969 | 0 | // Sentinel = 'TClearAllParams' |
1970 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4218667221)))) { |
1971 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TClearAllParams of union RequestParams"); |
1972 | 0 | return false; |
1973 | 0 | } |
1974 | 0 | return true; |
1975 | 0 | } |
1976 | 0 | case union__::TResetAllParams: |
1977 | 0 | { |
1978 | 0 | mozilla::dom::quota::ResetAllParams tmp = mozilla::dom::quota::ResetAllParams(); |
1979 | 0 | (*(aVar)) = tmp; |
1980 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_ResetAllParams())))))) { |
1981 | 0 | (aActor)->FatalError("Error deserializing variant TResetAllParams of union RequestParams"); |
1982 | 0 | return false; |
1983 | 0 | } |
1984 | 0 | // Sentinel = 'TResetAllParams' |
1985 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1597774515)))) { |
1986 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TResetAllParams of union RequestParams"); |
1987 | 0 | return false; |
1988 | 0 | } |
1989 | 0 | return true; |
1990 | 0 | } |
1991 | 0 | case union__::TPersistedParams: |
1992 | 0 | { |
1993 | 0 | mozilla::dom::quota::PersistedParams tmp = mozilla::dom::quota::PersistedParams(); |
1994 | 0 | (*(aVar)) = tmp; |
1995 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_PersistedParams())))))) { |
1996 | 0 | (aActor)->FatalError("Error deserializing variant TPersistedParams of union RequestParams"); |
1997 | 0 | return false; |
1998 | 0 | } |
1999 | 0 | // Sentinel = 'TPersistedParams' |
2000 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2151579009)))) { |
2001 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TPersistedParams of union RequestParams"); |
2002 | 0 | return false; |
2003 | 0 | } |
2004 | 0 | return true; |
2005 | 0 | } |
2006 | 0 | case union__::TPersistParams: |
2007 | 0 | { |
2008 | 0 | mozilla::dom::quota::PersistParams tmp = mozilla::dom::quota::PersistParams(); |
2009 | 0 | (*(aVar)) = tmp; |
2010 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_PersistParams())))))) { |
2011 | 0 | (aActor)->FatalError("Error deserializing variant TPersistParams of union RequestParams"); |
2012 | 0 | return false; |
2013 | 0 | } |
2014 | 0 | // Sentinel = 'TPersistParams' |
2015 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 610120232)))) { |
2016 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TPersistParams of union RequestParams"); |
2017 | 0 | return false; |
2018 | 0 | } |
2019 | 0 | return true; |
2020 | 0 | } |
2021 | 0 | default: |
2022 | 0 | { |
2023 | 0 | (aActor)->FatalError("unknown union type"); |
2024 | 0 | return false; |
2025 | 0 | } |
2026 | 0 | } |
2027 | 0 | } |
2028 | | |
2029 | | } // namespace ipc |
2030 | | } // namespace mozilla |