/work/obj-fuzz/ipc/ipdl/PFileSystemRequest.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/ipc/PBackgroundParent.h" |
8 | | #include "mozilla/ipc/PBackgroundChild.h" |
9 | | #include "mozilla/ipc/PIPCBlobInputStreamParent.h" |
10 | | #include "mozilla/ipc/PIPCBlobInputStreamChild.h" |
11 | | #include "mozilla/ipc/PChildToParentStreamParent.h" |
12 | | #include "mozilla/ipc/PChildToParentStreamChild.h" |
13 | | #include "mozilla/ipc/PParentToChildStreamParent.h" |
14 | | #include "mozilla/ipc/PParentToChildStreamChild.h" |
15 | | #include "mozilla/ipc/PFileDescriptorSetParent.h" |
16 | | #include "mozilla/ipc/PFileDescriptorSetChild.h" |
17 | | #include "mozilla/dom/PFileSystemRequest.h" |
18 | | |
19 | | namespace mozilla { |
20 | | namespace dom { |
21 | | namespace PFileSystemRequest { |
22 | | |
23 | | nsresult |
24 | | CreateEndpoints( |
25 | | base::ProcessId aParentDestPid, |
26 | | base::ProcessId aChildDestPid, |
27 | | mozilla::ipc::Endpoint<mozilla::dom::PFileSystemRequestParent>* aParent, |
28 | | mozilla::ipc::Endpoint<mozilla::dom::PFileSystemRequestChild>* aChild) |
29 | 0 | { |
30 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
31 | 0 | } |
32 | | IPC::Message* |
33 | | Msg___delete__(int32_t routingId) |
34 | 0 | { |
35 | 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)); |
36 | 0 | } |
37 | | IPC::Message* |
38 | | Reply___delete__(int32_t routingId) |
39 | 0 | { |
40 | 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)); |
41 | 0 | } |
42 | | |
43 | | } // namespace PFileSystemRequest |
44 | | } // namespace dom |
45 | | } // namespace mozilla |
46 | | |
47 | | //----------------------------------------------------------------------------- |
48 | | // Method definitions for the IPDL type |struct FileSystemFileResponse| |
49 | | // |
50 | | namespace mozilla { |
51 | | namespace dom { |
52 | | auto FileSystemFileResponse::operator==(const FileSystemFileResponse& _o) const -> bool |
53 | 0 | { |
54 | 0 | if ((!((blob()) == ((_o).blob())))) { |
55 | 0 | return false; |
56 | 0 | } |
57 | 0 | return true; |
58 | 0 | } |
59 | | |
60 | | auto FileSystemFileResponse::operator!=(const FileSystemFileResponse& _o) const -> bool |
61 | 0 | { |
62 | 0 | return (!(operator==(_o))); |
63 | 0 | } |
64 | | |
65 | | } // namespace dom |
66 | | } // namespace mozilla |
67 | | |
68 | | namespace mozilla { |
69 | | namespace ipc { |
70 | | auto IPDLParamTraits<mozilla::dom::FileSystemFileResponse>::Write( |
71 | | IPC::Message* aMsg, |
72 | | mozilla::ipc::IProtocol* aActor, |
73 | | const paramType& aVar) -> void |
74 | 0 | { |
75 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).blob()); |
76 | 0 | // Sentinel = 'blob' |
77 | 0 | (aMsg)->WriteSentinel(1963585077); |
78 | 0 | } |
79 | | |
80 | | auto IPDLParamTraits<mozilla::dom::FileSystemFileResponse>::Read( |
81 | | const IPC::Message* aMsg, |
82 | | PickleIterator* aIter, |
83 | | mozilla::ipc::IProtocol* aActor, |
84 | | paramType* aVar) -> bool |
85 | 0 | { |
86 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->blob())))))) { |
87 | 0 | (aActor)->FatalError("Error deserializing 'blob' (IPCBlob) member of 'FileSystemFileResponse'"); |
88 | 0 | return false; |
89 | 0 | } |
90 | 0 | // Sentinel = 'blob' |
91 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1963585077)))) { |
92 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'blob' (IPCBlob) member of 'FileSystemFileResponse'"); |
93 | 0 | return false; |
94 | 0 | } |
95 | 0 | return true; |
96 | 0 | } |
97 | | |
98 | | } // namespace ipc |
99 | | } // namespace mozilla |
100 | | |
101 | | //----------------------------------------------------------------------------- |
102 | | // Method definitions for the IPDL type |struct FileSystemDirectoryResponse| |
103 | | // |
104 | | namespace mozilla { |
105 | | namespace dom { |
106 | | auto FileSystemDirectoryResponse::operator==(const FileSystemDirectoryResponse& _o) const -> bool |
107 | 0 | { |
108 | 0 | if ((!((realPath()) == ((_o).realPath())))) { |
109 | 0 | return false; |
110 | 0 | } |
111 | 0 | return true; |
112 | 0 | } |
113 | | |
114 | | auto FileSystemDirectoryResponse::operator!=(const FileSystemDirectoryResponse& _o) const -> bool |
115 | 0 | { |
116 | 0 | return (!(operator==(_o))); |
117 | 0 | } |
118 | | |
119 | | } // namespace dom |
120 | | } // namespace mozilla |
121 | | |
122 | | namespace mozilla { |
123 | | namespace ipc { |
124 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryResponse>::Write( |
125 | | IPC::Message* aMsg, |
126 | | mozilla::ipc::IProtocol* aActor, |
127 | | const paramType& aVar) -> void |
128 | 0 | { |
129 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).realPath()); |
130 | 0 | // Sentinel = 'realPath' |
131 | 0 | (aMsg)->WriteSentinel(2928426273); |
132 | 0 | } |
133 | | |
134 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryResponse>::Read( |
135 | | const IPC::Message* aMsg, |
136 | | PickleIterator* aIter, |
137 | | mozilla::ipc::IProtocol* aActor, |
138 | | paramType* aVar) -> bool |
139 | 0 | { |
140 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->realPath())))))) { |
141 | 0 | (aActor)->FatalError("Error deserializing 'realPath' (nsString) member of 'FileSystemDirectoryResponse'"); |
142 | 0 | return false; |
143 | 0 | } |
144 | 0 | // Sentinel = 'realPath' |
145 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2928426273)))) { |
146 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'realPath' (nsString) member of 'FileSystemDirectoryResponse'"); |
147 | 0 | return false; |
148 | 0 | } |
149 | 0 | return true; |
150 | 0 | } |
151 | | |
152 | | } // namespace ipc |
153 | | } // namespace mozilla |
154 | | |
155 | | //----------------------------------------------------------------------------- |
156 | | // Method definitions for the IPDL type |struct FileSystemDirectoryListingResponseFile| |
157 | | // |
158 | | namespace mozilla { |
159 | | namespace dom { |
160 | | auto FileSystemDirectoryListingResponseFile::operator==(const FileSystemDirectoryListingResponseFile& _o) const -> bool |
161 | 0 | { |
162 | 0 | if ((!((blob()) == ((_o).blob())))) { |
163 | 0 | return false; |
164 | 0 | } |
165 | 0 | return true; |
166 | 0 | } |
167 | | |
168 | | auto FileSystemDirectoryListingResponseFile::operator!=(const FileSystemDirectoryListingResponseFile& _o) const -> bool |
169 | 0 | { |
170 | 0 | return (!(operator==(_o))); |
171 | 0 | } |
172 | | |
173 | | } // namespace dom |
174 | | } // namespace mozilla |
175 | | |
176 | | namespace mozilla { |
177 | | namespace ipc { |
178 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponseFile>::Write( |
179 | | IPC::Message* aMsg, |
180 | | mozilla::ipc::IProtocol* aActor, |
181 | | const paramType& aVar) -> void |
182 | 0 | { |
183 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).blob()); |
184 | 0 | // Sentinel = 'blob' |
185 | 0 | (aMsg)->WriteSentinel(1963585077); |
186 | 0 | } |
187 | | |
188 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponseFile>::Read( |
189 | | const IPC::Message* aMsg, |
190 | | PickleIterator* aIter, |
191 | | mozilla::ipc::IProtocol* aActor, |
192 | | paramType* aVar) -> bool |
193 | 0 | { |
194 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->blob())))))) { |
195 | 0 | (aActor)->FatalError("Error deserializing 'blob' (IPCBlob) member of 'FileSystemDirectoryListingResponseFile'"); |
196 | 0 | return false; |
197 | 0 | } |
198 | 0 | // Sentinel = 'blob' |
199 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1963585077)))) { |
200 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'blob' (IPCBlob) member of 'FileSystemDirectoryListingResponseFile'"); |
201 | 0 | return false; |
202 | 0 | } |
203 | 0 | return true; |
204 | 0 | } |
205 | | |
206 | | } // namespace ipc |
207 | | } // namespace mozilla |
208 | | |
209 | | //----------------------------------------------------------------------------- |
210 | | // Method definitions for the IPDL type |struct FileSystemDirectoryListingResponseDirectory| |
211 | | // |
212 | | namespace mozilla { |
213 | | namespace dom { |
214 | | auto FileSystemDirectoryListingResponseDirectory::operator==(const FileSystemDirectoryListingResponseDirectory& _o) const -> bool |
215 | 0 | { |
216 | 0 | if ((!((directoryRealPath()) == ((_o).directoryRealPath())))) { |
217 | 0 | return false; |
218 | 0 | } |
219 | 0 | return true; |
220 | 0 | } |
221 | | |
222 | | auto FileSystemDirectoryListingResponseDirectory::operator!=(const FileSystemDirectoryListingResponseDirectory& _o) const -> bool |
223 | 0 | { |
224 | 0 | return (!(operator==(_o))); |
225 | 0 | } |
226 | | |
227 | | } // namespace dom |
228 | | } // namespace mozilla |
229 | | |
230 | | namespace mozilla { |
231 | | namespace ipc { |
232 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponseDirectory>::Write( |
233 | | IPC::Message* aMsg, |
234 | | mozilla::ipc::IProtocol* aActor, |
235 | | const paramType& aVar) -> void |
236 | 0 | { |
237 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).directoryRealPath()); |
238 | 0 | // Sentinel = 'directoryRealPath' |
239 | 0 | (aMsg)->WriteSentinel(1342566377); |
240 | 0 | } |
241 | | |
242 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponseDirectory>::Read( |
243 | | const IPC::Message* aMsg, |
244 | | PickleIterator* aIter, |
245 | | mozilla::ipc::IProtocol* aActor, |
246 | | paramType* aVar) -> bool |
247 | 0 | { |
248 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->directoryRealPath())))))) { |
249 | 0 | (aActor)->FatalError("Error deserializing 'directoryRealPath' (nsString) member of 'FileSystemDirectoryListingResponseDirectory'"); |
250 | 0 | return false; |
251 | 0 | } |
252 | 0 | // Sentinel = 'directoryRealPath' |
253 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1342566377)))) { |
254 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'directoryRealPath' (nsString) member of 'FileSystemDirectoryListingResponseDirectory'"); |
255 | 0 | return false; |
256 | 0 | } |
257 | 0 | return true; |
258 | 0 | } |
259 | | |
260 | | } // namespace ipc |
261 | | } // namespace mozilla |
262 | | |
263 | | //----------------------------------------------------------------------------- |
264 | | // Method definitions for the IPDL type |union FileSystemDirectoryListingResponseData| |
265 | | // |
266 | | namespace mozilla { |
267 | | namespace dom { |
268 | | auto FileSystemDirectoryListingResponseData::MaybeDestroy(Type aNewType) -> bool |
269 | 0 | { |
270 | 0 | if ((mType) == (T__None)) { |
271 | 0 | return true; |
272 | 0 | } |
273 | 0 | if ((mType) == (aNewType)) { |
274 | 0 | return false; |
275 | 0 | } |
276 | 0 | switch (mType) { |
277 | 0 | case TFileSystemDirectoryListingResponseFile: |
278 | 0 | { |
279 | 0 | (ptr_FileSystemDirectoryListingResponseFile())->~FileSystemDirectoryListingResponseFile__tdef(); |
280 | 0 | break; |
281 | 0 | } |
282 | 0 | case TFileSystemDirectoryListingResponseDirectory: |
283 | 0 | { |
284 | 0 | (ptr_FileSystemDirectoryListingResponseDirectory())->~FileSystemDirectoryListingResponseDirectory__tdef(); |
285 | 0 | break; |
286 | 0 | } |
287 | 0 | default: |
288 | 0 | { |
289 | 0 | mozilla::ipc::LogicError("not reached"); |
290 | 0 | break; |
291 | 0 | } |
292 | 0 | } |
293 | 0 | return true; |
294 | 0 | } |
295 | | |
296 | | MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(const FileSystemDirectoryListingResponseFile& aOther) |
297 | 0 | { |
298 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile(aOther); |
299 | 0 | mType = TFileSystemDirectoryListingResponseFile; |
300 | 0 | } |
301 | | |
302 | | MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(FileSystemDirectoryListingResponseFile&& aOther) |
303 | 0 | { |
304 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile(std::move(aOther)); |
305 | 0 | mType = TFileSystemDirectoryListingResponseFile; |
306 | 0 | } |
307 | | |
308 | | MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(const FileSystemDirectoryListingResponseDirectory& aOther) |
309 | 0 | { |
310 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory(aOther); |
311 | 0 | mType = TFileSystemDirectoryListingResponseDirectory; |
312 | 0 | } |
313 | | |
314 | | MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(FileSystemDirectoryListingResponseDirectory&& aOther) |
315 | 0 | { |
316 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory(std::move(aOther)); |
317 | 0 | mType = TFileSystemDirectoryListingResponseDirectory; |
318 | 0 | } |
319 | | |
320 | | MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(const FileSystemDirectoryListingResponseData& aOther) |
321 | 0 | { |
322 | 0 | (aOther).AssertSanity(); |
323 | 0 | switch ((aOther).type()) { |
324 | 0 | case TFileSystemDirectoryListingResponseFile: |
325 | 0 | { |
326 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile((aOther).get_FileSystemDirectoryListingResponseFile()); |
327 | 0 | break; |
328 | 0 | } |
329 | 0 | case TFileSystemDirectoryListingResponseDirectory: |
330 | 0 | { |
331 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory((aOther).get_FileSystemDirectoryListingResponseDirectory()); |
332 | 0 | break; |
333 | 0 | } |
334 | 0 | case T__None: |
335 | 0 | { |
336 | 0 | break; |
337 | 0 | } |
338 | 0 | default: |
339 | 0 | { |
340 | 0 | mozilla::ipc::LogicError("unreached"); |
341 | 0 | return; |
342 | 0 | } |
343 | 0 | } |
344 | 0 | mType = (aOther).type(); |
345 | 0 | } |
346 | | |
347 | | MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(FileSystemDirectoryListingResponseData&& aOther) |
348 | 0 | { |
349 | 0 | (aOther).AssertSanity(); |
350 | 0 | Type t = (aOther).type(); |
351 | 0 | switch (t) { |
352 | 0 | case TFileSystemDirectoryListingResponseFile: |
353 | 0 | { |
354 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile(std::move((aOther).get_FileSystemDirectoryListingResponseFile())); |
355 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
356 | 0 | break; |
357 | 0 | } |
358 | 0 | case TFileSystemDirectoryListingResponseDirectory: |
359 | 0 | { |
360 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory(std::move((aOther).get_FileSystemDirectoryListingResponseDirectory())); |
361 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
362 | 0 | break; |
363 | 0 | } |
364 | 0 | case T__None: |
365 | 0 | { |
366 | 0 | break; |
367 | 0 | } |
368 | 0 | default: |
369 | 0 | { |
370 | 0 | mozilla::ipc::LogicError("unreached"); |
371 | 0 | return; |
372 | 0 | } |
373 | 0 | } |
374 | 0 | (aOther).mType = T__None; |
375 | 0 | mType = t; |
376 | 0 | } |
377 | | |
378 | | FileSystemDirectoryListingResponseData::~FileSystemDirectoryListingResponseData() |
379 | 0 | { |
380 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
381 | 0 | } |
382 | | |
383 | | auto FileSystemDirectoryListingResponseData::operator=(const FileSystemDirectoryListingResponseFile& aRhs) -> FileSystemDirectoryListingResponseData& |
384 | 0 | { |
385 | 0 | if (MaybeDestroy(TFileSystemDirectoryListingResponseFile)) { |
386 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile; |
387 | 0 | } |
388 | 0 | (*(ptr_FileSystemDirectoryListingResponseFile())) = aRhs; |
389 | 0 | mType = TFileSystemDirectoryListingResponseFile; |
390 | 0 | return (*(this)); |
391 | 0 | } |
392 | | |
393 | | auto FileSystemDirectoryListingResponseData::operator=(FileSystemDirectoryListingResponseFile&& aRhs) -> FileSystemDirectoryListingResponseData& |
394 | 0 | { |
395 | 0 | if (MaybeDestroy(TFileSystemDirectoryListingResponseFile)) { |
396 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile; |
397 | 0 | } |
398 | 0 | (*(ptr_FileSystemDirectoryListingResponseFile())) = std::move(aRhs); |
399 | 0 | mType = TFileSystemDirectoryListingResponseFile; |
400 | 0 | return (*(this)); |
401 | 0 | } |
402 | | |
403 | | auto FileSystemDirectoryListingResponseData::operator=(const FileSystemDirectoryListingResponseDirectory& aRhs) -> FileSystemDirectoryListingResponseData& |
404 | 0 | { |
405 | 0 | if (MaybeDestroy(TFileSystemDirectoryListingResponseDirectory)) { |
406 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory; |
407 | 0 | } |
408 | 0 | (*(ptr_FileSystemDirectoryListingResponseDirectory())) = aRhs; |
409 | 0 | mType = TFileSystemDirectoryListingResponseDirectory; |
410 | 0 | return (*(this)); |
411 | 0 | } |
412 | | |
413 | | auto FileSystemDirectoryListingResponseData::operator=(FileSystemDirectoryListingResponseDirectory&& aRhs) -> FileSystemDirectoryListingResponseData& |
414 | 0 | { |
415 | 0 | if (MaybeDestroy(TFileSystemDirectoryListingResponseDirectory)) { |
416 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory; |
417 | 0 | } |
418 | 0 | (*(ptr_FileSystemDirectoryListingResponseDirectory())) = std::move(aRhs); |
419 | 0 | mType = TFileSystemDirectoryListingResponseDirectory; |
420 | 0 | return (*(this)); |
421 | 0 | } |
422 | | |
423 | | auto FileSystemDirectoryListingResponseData::operator=(const FileSystemDirectoryListingResponseData& aRhs) -> FileSystemDirectoryListingResponseData& |
424 | 0 | { |
425 | 0 | (aRhs).AssertSanity(); |
426 | 0 | Type t = (aRhs).type(); |
427 | 0 | switch (t) { |
428 | 0 | case TFileSystemDirectoryListingResponseFile: |
429 | 0 | { |
430 | 0 | if (MaybeDestroy(t)) { |
431 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile; |
432 | 0 | } |
433 | 0 | (*(ptr_FileSystemDirectoryListingResponseFile())) = (aRhs).get_FileSystemDirectoryListingResponseFile(); |
434 | 0 | break; |
435 | 0 | } |
436 | 0 | case TFileSystemDirectoryListingResponseDirectory: |
437 | 0 | { |
438 | 0 | if (MaybeDestroy(t)) { |
439 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory; |
440 | 0 | } |
441 | 0 | (*(ptr_FileSystemDirectoryListingResponseDirectory())) = (aRhs).get_FileSystemDirectoryListingResponseDirectory(); |
442 | 0 | break; |
443 | 0 | } |
444 | 0 | case T__None: |
445 | 0 | { |
446 | 0 | static_cast<void>(MaybeDestroy(t)); |
447 | 0 | break; |
448 | 0 | } |
449 | 0 | default: |
450 | 0 | { |
451 | 0 | mozilla::ipc::LogicError("unreached"); |
452 | 0 | break; |
453 | 0 | } |
454 | 0 | } |
455 | 0 | mType = t; |
456 | 0 | return (*(this)); |
457 | 0 | } |
458 | | |
459 | | auto FileSystemDirectoryListingResponseData::operator=(FileSystemDirectoryListingResponseData&& aRhs) -> FileSystemDirectoryListingResponseData& |
460 | 0 | { |
461 | 0 | (aRhs).AssertSanity(); |
462 | 0 | Type t = (aRhs).type(); |
463 | 0 | switch (t) { |
464 | 0 | case TFileSystemDirectoryListingResponseFile: |
465 | 0 | { |
466 | 0 | if (MaybeDestroy(t)) { |
467 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile; |
468 | 0 | } |
469 | 0 | (*(ptr_FileSystemDirectoryListingResponseFile())) = std::move((aRhs).get_FileSystemDirectoryListingResponseFile()); |
470 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
471 | 0 | break; |
472 | 0 | } |
473 | 0 | case TFileSystemDirectoryListingResponseDirectory: |
474 | 0 | { |
475 | 0 | if (MaybeDestroy(t)) { |
476 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory; |
477 | 0 | } |
478 | 0 | (*(ptr_FileSystemDirectoryListingResponseDirectory())) = std::move((aRhs).get_FileSystemDirectoryListingResponseDirectory()); |
479 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
480 | 0 | break; |
481 | 0 | } |
482 | 0 | case T__None: |
483 | 0 | { |
484 | 0 | static_cast<void>(MaybeDestroy(t)); |
485 | 0 | break; |
486 | 0 | } |
487 | 0 | default: |
488 | 0 | { |
489 | 0 | mozilla::ipc::LogicError("unreached"); |
490 | 0 | break; |
491 | 0 | } |
492 | 0 | } |
493 | 0 | (aRhs).mType = T__None; |
494 | 0 | mType = t; |
495 | 0 | return (*(this)); |
496 | 0 | } |
497 | | |
498 | | auto FileSystemDirectoryListingResponseData::operator==(const FileSystemDirectoryListingResponseFile& aRhs) const -> bool |
499 | 0 | { |
500 | 0 | return (get_FileSystemDirectoryListingResponseFile()) == (aRhs); |
501 | 0 | } |
502 | | |
503 | | auto FileSystemDirectoryListingResponseData::operator==(const FileSystemDirectoryListingResponseDirectory& aRhs) const -> bool |
504 | 0 | { |
505 | 0 | return (get_FileSystemDirectoryListingResponseDirectory()) == (aRhs); |
506 | 0 | } |
507 | | |
508 | | auto FileSystemDirectoryListingResponseData::operator==(const FileSystemDirectoryListingResponseData& aRhs) const -> bool |
509 | 0 | { |
510 | 0 | if ((type()) != ((aRhs).type())) { |
511 | 0 | return false; |
512 | 0 | } |
513 | 0 | |
514 | 0 | switch (type()) { |
515 | 0 | case TFileSystemDirectoryListingResponseFile: |
516 | 0 | { |
517 | 0 | return (get_FileSystemDirectoryListingResponseFile()) == ((aRhs).get_FileSystemDirectoryListingResponseFile()); |
518 | 0 | } |
519 | 0 | case TFileSystemDirectoryListingResponseDirectory: |
520 | 0 | { |
521 | 0 | return (get_FileSystemDirectoryListingResponseDirectory()) == ((aRhs).get_FileSystemDirectoryListingResponseDirectory()); |
522 | 0 | } |
523 | 0 | default: |
524 | 0 | { |
525 | 0 | mozilla::ipc::LogicError("unreached"); |
526 | 0 | return false; |
527 | 0 | } |
528 | 0 | } |
529 | 0 | } |
530 | | |
531 | | auto FileSystemDirectoryListingResponseData::get(FileSystemDirectoryListingResponseFile* aOutValue) const -> void |
532 | 0 | { |
533 | 0 | (*(aOutValue)) = get_FileSystemDirectoryListingResponseFile(); |
534 | 0 | } |
535 | | |
536 | | auto FileSystemDirectoryListingResponseData::get(FileSystemDirectoryListingResponseDirectory* aOutValue) const -> void |
537 | 0 | { |
538 | 0 | (*(aOutValue)) = get_FileSystemDirectoryListingResponseDirectory(); |
539 | 0 | } |
540 | | |
541 | | } // namespace dom |
542 | | } // namespace mozilla |
543 | | |
544 | | namespace mozilla { |
545 | | namespace ipc { |
546 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponseData>::Write( |
547 | | IPC::Message* aMsg, |
548 | | mozilla::ipc::IProtocol* aActor, |
549 | | const paramType& aVar) -> void |
550 | | { |
551 | | typedef mozilla::dom::FileSystemDirectoryListingResponseData union__; |
552 | | int type; |
553 | | type = (aVar).type(); |
554 | | WriteIPDLParam(aMsg, aActor, type); |
555 | | // Sentinel = 'FileSystemDirectoryListingResponseData' |
556 | | (aMsg)->WriteSentinel(2234007141); |
557 | | |
558 | | switch (type) { |
559 | | case union__::TFileSystemDirectoryListingResponseFile: |
560 | | { |
561 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemDirectoryListingResponseFile()); |
562 | | // Sentinel = 'TFileSystemDirectoryListingResponseFile' |
563 | | (aMsg)->WriteSentinel(3150896454); |
564 | | return; |
565 | | } |
566 | | case union__::TFileSystemDirectoryListingResponseDirectory: |
567 | | { |
568 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemDirectoryListingResponseDirectory()); |
569 | | // Sentinel = 'TFileSystemDirectoryListingResponseDirectory' |
570 | | (aMsg)->WriteSentinel(1022509844); |
571 | | return; |
572 | | } |
573 | | default: |
574 | | { |
575 | | (aActor)->FatalError("unknown union type"); |
576 | | return; |
577 | | } |
578 | | } |
579 | | } |
580 | | |
581 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponseData>::Read( |
582 | | const IPC::Message* aMsg, |
583 | | PickleIterator* aIter, |
584 | | mozilla::ipc::IProtocol* aActor, |
585 | | paramType* aVar) -> bool |
586 | 0 | { |
587 | 0 | typedef mozilla::dom::FileSystemDirectoryListingResponseData union__; |
588 | 0 | int type; |
589 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
590 | 0 | (aActor)->FatalError("Error deserializing type of union FileSystemDirectoryListingResponseData"); |
591 | 0 | return false; |
592 | 0 | } |
593 | 0 | // Sentinel = 'FileSystemDirectoryListingResponseData' |
594 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2234007141)))) { |
595 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union FileSystemDirectoryListingResponseData"); |
596 | 0 | return false; |
597 | 0 | } |
598 | 0 | |
599 | 0 | switch (type) { |
600 | 0 | case union__::TFileSystemDirectoryListingResponseFile: |
601 | 0 | { |
602 | 0 | mozilla::dom::FileSystemDirectoryListingResponseFile tmp = mozilla::dom::FileSystemDirectoryListingResponseFile(); |
603 | 0 | (*(aVar)) = tmp; |
604 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemDirectoryListingResponseFile())))))) { |
605 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemDirectoryListingResponseFile of union FileSystemDirectoryListingResponseData"); |
606 | 0 | return false; |
607 | 0 | } |
608 | 0 | // Sentinel = 'TFileSystemDirectoryListingResponseFile' |
609 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3150896454)))) { |
610 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemDirectoryListingResponseFile of union FileSystemDirectoryListingResponseData"); |
611 | 0 | return false; |
612 | 0 | } |
613 | 0 | return true; |
614 | 0 | } |
615 | 0 | case union__::TFileSystemDirectoryListingResponseDirectory: |
616 | 0 | { |
617 | 0 | mozilla::dom::FileSystemDirectoryListingResponseDirectory tmp = mozilla::dom::FileSystemDirectoryListingResponseDirectory(); |
618 | 0 | (*(aVar)) = tmp; |
619 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemDirectoryListingResponseDirectory())))))) { |
620 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemDirectoryListingResponseDirectory of union FileSystemDirectoryListingResponseData"); |
621 | 0 | return false; |
622 | 0 | } |
623 | 0 | // Sentinel = 'TFileSystemDirectoryListingResponseDirectory' |
624 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1022509844)))) { |
625 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemDirectoryListingResponseDirectory of union FileSystemDirectoryListingResponseData"); |
626 | 0 | return false; |
627 | 0 | } |
628 | 0 | return true; |
629 | 0 | } |
630 | 0 | default: |
631 | 0 | { |
632 | 0 | (aActor)->FatalError("unknown union type"); |
633 | 0 | return false; |
634 | 0 | } |
635 | 0 | } |
636 | 0 | } |
637 | | |
638 | | } // namespace ipc |
639 | | } // namespace mozilla |
640 | | |
641 | | //----------------------------------------------------------------------------- |
642 | | // Method definitions for the IPDL type |struct FileSystemDirectoryListingResponse| |
643 | | // |
644 | | namespace mozilla { |
645 | | namespace dom { |
646 | | auto FileSystemDirectoryListingResponse::operator==(const FileSystemDirectoryListingResponse& _o) const -> bool |
647 | 0 | { |
648 | 0 | if ((!((data()) == ((_o).data())))) { |
649 | 0 | return false; |
650 | 0 | } |
651 | 0 | return true; |
652 | 0 | } |
653 | | |
654 | | auto FileSystemDirectoryListingResponse::operator!=(const FileSystemDirectoryListingResponse& _o) const -> bool |
655 | 0 | { |
656 | 0 | return (!(operator==(_o))); |
657 | 0 | } |
658 | | |
659 | | } // namespace dom |
660 | | } // namespace mozilla |
661 | | |
662 | | namespace mozilla { |
663 | | namespace ipc { |
664 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponse>::Write( |
665 | | IPC::Message* aMsg, |
666 | | mozilla::ipc::IProtocol* aActor, |
667 | | const paramType& aVar) -> void |
668 | 0 | { |
669 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).data()); |
670 | 0 | // Sentinel = 'data' |
671 | 0 | (aMsg)->WriteSentinel(843352540); |
672 | 0 | } |
673 | | |
674 | | auto IPDLParamTraits<mozilla::dom::FileSystemDirectoryListingResponse>::Read( |
675 | | const IPC::Message* aMsg, |
676 | | PickleIterator* aIter, |
677 | | mozilla::ipc::IProtocol* aActor, |
678 | | paramType* aVar) -> bool |
679 | 0 | { |
680 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->data())))))) { |
681 | 0 | (aActor)->FatalError("Error deserializing 'data' (FileSystemDirectoryListingResponseData[]) member of 'FileSystemDirectoryListingResponse'"); |
682 | 0 | return false; |
683 | 0 | } |
684 | 0 | // Sentinel = 'data' |
685 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 843352540)))) { |
686 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'data' (FileSystemDirectoryListingResponseData[]) member of 'FileSystemDirectoryListingResponse'"); |
687 | 0 | return false; |
688 | 0 | } |
689 | 0 | return true; |
690 | 0 | } |
691 | | |
692 | | } // namespace ipc |
693 | | } // namespace mozilla |
694 | | |
695 | | //----------------------------------------------------------------------------- |
696 | | // Method definitions for the IPDL type |struct FileSystemFilesResponse| |
697 | | // |
698 | | namespace mozilla { |
699 | | namespace dom { |
700 | | auto FileSystemFilesResponse::operator==(const FileSystemFilesResponse& _o) const -> bool |
701 | 0 | { |
702 | 0 | if ((!((data()) == ((_o).data())))) { |
703 | 0 | return false; |
704 | 0 | } |
705 | 0 | return true; |
706 | 0 | } |
707 | | |
708 | | auto FileSystemFilesResponse::operator!=(const FileSystemFilesResponse& _o) const -> bool |
709 | 0 | { |
710 | 0 | return (!(operator==(_o))); |
711 | 0 | } |
712 | | |
713 | | } // namespace dom |
714 | | } // namespace mozilla |
715 | | |
716 | | namespace mozilla { |
717 | | namespace ipc { |
718 | | auto IPDLParamTraits<mozilla::dom::FileSystemFilesResponse>::Write( |
719 | | IPC::Message* aMsg, |
720 | | mozilla::ipc::IProtocol* aActor, |
721 | | const paramType& aVar) -> void |
722 | 0 | { |
723 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).data()); |
724 | 0 | // Sentinel = 'data' |
725 | 0 | (aMsg)->WriteSentinel(843352540); |
726 | 0 | } |
727 | | |
728 | | auto IPDLParamTraits<mozilla::dom::FileSystemFilesResponse>::Read( |
729 | | const IPC::Message* aMsg, |
730 | | PickleIterator* aIter, |
731 | | mozilla::ipc::IProtocol* aActor, |
732 | | paramType* aVar) -> bool |
733 | 0 | { |
734 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->data())))))) { |
735 | 0 | (aActor)->FatalError("Error deserializing 'data' (FileSystemFileResponse[]) member of 'FileSystemFilesResponse'"); |
736 | 0 | return false; |
737 | 0 | } |
738 | 0 | // Sentinel = 'data' |
739 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 843352540)))) { |
740 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'data' (FileSystemFileResponse[]) member of 'FileSystemFilesResponse'"); |
741 | 0 | return false; |
742 | 0 | } |
743 | 0 | return true; |
744 | 0 | } |
745 | | |
746 | | } // namespace ipc |
747 | | } // namespace mozilla |
748 | | |
749 | | //----------------------------------------------------------------------------- |
750 | | // Method definitions for the IPDL type |struct FileSystemErrorResponse| |
751 | | // |
752 | | namespace mozilla { |
753 | | namespace dom { |
754 | | auto FileSystemErrorResponse::operator==(const FileSystemErrorResponse& _o) const -> bool |
755 | 0 | { |
756 | 0 | if ((!((error()) == ((_o).error())))) { |
757 | 0 | return false; |
758 | 0 | } |
759 | 0 | return true; |
760 | 0 | } |
761 | | |
762 | | auto FileSystemErrorResponse::operator!=(const FileSystemErrorResponse& _o) const -> bool |
763 | 0 | { |
764 | 0 | return (!(operator==(_o))); |
765 | 0 | } |
766 | | |
767 | | } // namespace dom |
768 | | } // namespace mozilla |
769 | | |
770 | | namespace mozilla { |
771 | | namespace ipc { |
772 | | auto IPDLParamTraits<mozilla::dom::FileSystemErrorResponse>::Write( |
773 | | IPC::Message* aMsg, |
774 | | mozilla::ipc::IProtocol* aActor, |
775 | | const paramType& aVar) -> void |
776 | 0 | { |
777 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).error()); |
778 | 0 | // Sentinel = 'error' |
779 | 0 | (aMsg)->WriteSentinel(313726327); |
780 | 0 | } |
781 | | |
782 | | auto IPDLParamTraits<mozilla::dom::FileSystemErrorResponse>::Read( |
783 | | const IPC::Message* aMsg, |
784 | | PickleIterator* aIter, |
785 | | mozilla::ipc::IProtocol* aActor, |
786 | | paramType* aVar) -> bool |
787 | 0 | { |
788 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->error())))))) { |
789 | 0 | (aActor)->FatalError("Error deserializing 'error' (nsresult) member of 'FileSystemErrorResponse'"); |
790 | 0 | return false; |
791 | 0 | } |
792 | 0 | // Sentinel = 'error' |
793 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 313726327)))) { |
794 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'error' (nsresult) member of 'FileSystemErrorResponse'"); |
795 | 0 | return false; |
796 | 0 | } |
797 | 0 | return true; |
798 | 0 | } |
799 | | |
800 | | } // namespace ipc |
801 | | } // namespace mozilla |
802 | | |
803 | | //----------------------------------------------------------------------------- |
804 | | // Method definitions for the IPDL type |union FileSystemResponseValue| |
805 | | // |
806 | | namespace mozilla { |
807 | | namespace dom { |
808 | | auto FileSystemResponseValue::MaybeDestroy(Type aNewType) -> bool |
809 | 0 | { |
810 | 0 | if ((mType) == (T__None)) { |
811 | 0 | return true; |
812 | 0 | } |
813 | 0 | if ((mType) == (aNewType)) { |
814 | 0 | return false; |
815 | 0 | } |
816 | 0 | switch (mType) { |
817 | 0 | case TFileSystemDirectoryResponse: |
818 | 0 | { |
819 | 0 | (ptr_FileSystemDirectoryResponse())->~FileSystemDirectoryResponse__tdef(); |
820 | 0 | break; |
821 | 0 | } |
822 | 0 | case TFileSystemDirectoryListingResponse: |
823 | 0 | { |
824 | 0 | (ptr_FileSystemDirectoryListingResponse())->~FileSystemDirectoryListingResponse__tdef(); |
825 | 0 | break; |
826 | 0 | } |
827 | 0 | case TFileSystemFileResponse: |
828 | 0 | { |
829 | 0 | (ptr_FileSystemFileResponse())->~FileSystemFileResponse__tdef(); |
830 | 0 | break; |
831 | 0 | } |
832 | 0 | case TFileSystemFilesResponse: |
833 | 0 | { |
834 | 0 | (ptr_FileSystemFilesResponse())->~FileSystemFilesResponse__tdef(); |
835 | 0 | break; |
836 | 0 | } |
837 | 0 | case TFileSystemErrorResponse: |
838 | 0 | { |
839 | 0 | (ptr_FileSystemErrorResponse())->~FileSystemErrorResponse__tdef(); |
840 | 0 | break; |
841 | 0 | } |
842 | 0 | default: |
843 | 0 | { |
844 | 0 | mozilla::ipc::LogicError("not reached"); |
845 | 0 | break; |
846 | 0 | } |
847 | 0 | } |
848 | 0 | return true; |
849 | 0 | } |
850 | | |
851 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemDirectoryResponse& aOther) |
852 | 0 | { |
853 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse(aOther); |
854 | 0 | mType = TFileSystemDirectoryResponse; |
855 | 0 | } |
856 | | |
857 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(FileSystemDirectoryResponse&& aOther) |
858 | 0 | { |
859 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse(std::move(aOther)); |
860 | 0 | mType = TFileSystemDirectoryResponse; |
861 | 0 | } |
862 | | |
863 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemDirectoryListingResponse& aOther) |
864 | 0 | { |
865 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse(aOther); |
866 | 0 | mType = TFileSystemDirectoryListingResponse; |
867 | 0 | } |
868 | | |
869 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(FileSystemDirectoryListingResponse&& aOther) |
870 | 0 | { |
871 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse(std::move(aOther)); |
872 | 0 | mType = TFileSystemDirectoryListingResponse; |
873 | 0 | } |
874 | | |
875 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemFileResponse& aOther) |
876 | 0 | { |
877 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse(aOther); |
878 | 0 | mType = TFileSystemFileResponse; |
879 | 0 | } |
880 | | |
881 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(FileSystemFileResponse&& aOther) |
882 | 0 | { |
883 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse(std::move(aOther)); |
884 | 0 | mType = TFileSystemFileResponse; |
885 | 0 | } |
886 | | |
887 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemFilesResponse& aOther) |
888 | 0 | { |
889 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse(aOther); |
890 | 0 | mType = TFileSystemFilesResponse; |
891 | 0 | } |
892 | | |
893 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(FileSystemFilesResponse&& aOther) |
894 | 0 | { |
895 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse(std::move(aOther)); |
896 | 0 | mType = TFileSystemFilesResponse; |
897 | 0 | } |
898 | | |
899 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemErrorResponse& aOther) |
900 | 0 | { |
901 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse(aOther); |
902 | 0 | mType = TFileSystemErrorResponse; |
903 | 0 | } |
904 | | |
905 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(FileSystemErrorResponse&& aOther) |
906 | 0 | { |
907 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse(std::move(aOther)); |
908 | 0 | mType = TFileSystemErrorResponse; |
909 | 0 | } |
910 | | |
911 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemResponseValue& aOther) |
912 | 0 | { |
913 | 0 | (aOther).AssertSanity(); |
914 | 0 | switch ((aOther).type()) { |
915 | 0 | case TFileSystemDirectoryResponse: |
916 | 0 | { |
917 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse((aOther).get_FileSystemDirectoryResponse()); |
918 | 0 | break; |
919 | 0 | } |
920 | 0 | case TFileSystemDirectoryListingResponse: |
921 | 0 | { |
922 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse((aOther).get_FileSystemDirectoryListingResponse()); |
923 | 0 | break; |
924 | 0 | } |
925 | 0 | case TFileSystemFileResponse: |
926 | 0 | { |
927 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse((aOther).get_FileSystemFileResponse()); |
928 | 0 | break; |
929 | 0 | } |
930 | 0 | case TFileSystemFilesResponse: |
931 | 0 | { |
932 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse((aOther).get_FileSystemFilesResponse()); |
933 | 0 | break; |
934 | 0 | } |
935 | 0 | case TFileSystemErrorResponse: |
936 | 0 | { |
937 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse((aOther).get_FileSystemErrorResponse()); |
938 | 0 | break; |
939 | 0 | } |
940 | 0 | case T__None: |
941 | 0 | { |
942 | 0 | break; |
943 | 0 | } |
944 | 0 | default: |
945 | 0 | { |
946 | 0 | mozilla::ipc::LogicError("unreached"); |
947 | 0 | return; |
948 | 0 | } |
949 | 0 | } |
950 | 0 | mType = (aOther).type(); |
951 | 0 | } |
952 | | |
953 | | MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(FileSystemResponseValue&& aOther) |
954 | 0 | { |
955 | 0 | (aOther).AssertSanity(); |
956 | 0 | Type t = (aOther).type(); |
957 | 0 | switch (t) { |
958 | 0 | case TFileSystemDirectoryResponse: |
959 | 0 | { |
960 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse(std::move((aOther).get_FileSystemDirectoryResponse())); |
961 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
962 | 0 | break; |
963 | 0 | } |
964 | 0 | case TFileSystemDirectoryListingResponse: |
965 | 0 | { |
966 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse(std::move((aOther).get_FileSystemDirectoryListingResponse())); |
967 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
968 | 0 | break; |
969 | 0 | } |
970 | 0 | case TFileSystemFileResponse: |
971 | 0 | { |
972 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse(std::move((aOther).get_FileSystemFileResponse())); |
973 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
974 | 0 | break; |
975 | 0 | } |
976 | 0 | case TFileSystemFilesResponse: |
977 | 0 | { |
978 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse(std::move((aOther).get_FileSystemFilesResponse())); |
979 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
980 | 0 | break; |
981 | 0 | } |
982 | 0 | case TFileSystemErrorResponse: |
983 | 0 | { |
984 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse(std::move((aOther).get_FileSystemErrorResponse())); |
985 | 0 | static_cast<void>((aOther).MaybeDestroy(T__None)); |
986 | 0 | break; |
987 | 0 | } |
988 | 0 | case T__None: |
989 | 0 | { |
990 | 0 | break; |
991 | 0 | } |
992 | 0 | default: |
993 | 0 | { |
994 | 0 | mozilla::ipc::LogicError("unreached"); |
995 | 0 | return; |
996 | 0 | } |
997 | 0 | } |
998 | 0 | (aOther).mType = T__None; |
999 | 0 | mType = t; |
1000 | 0 | } |
1001 | | |
1002 | | FileSystemResponseValue::~FileSystemResponseValue() |
1003 | 0 | { |
1004 | 0 | static_cast<void>(MaybeDestroy(T__None)); |
1005 | 0 | } |
1006 | | |
1007 | | auto FileSystemResponseValue::operator=(const FileSystemDirectoryResponse& aRhs) -> FileSystemResponseValue& |
1008 | 0 | { |
1009 | 0 | if (MaybeDestroy(TFileSystemDirectoryResponse)) { |
1010 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse; |
1011 | 0 | } |
1012 | 0 | (*(ptr_FileSystemDirectoryResponse())) = aRhs; |
1013 | 0 | mType = TFileSystemDirectoryResponse; |
1014 | 0 | return (*(this)); |
1015 | 0 | } |
1016 | | |
1017 | | auto FileSystemResponseValue::operator=(FileSystemDirectoryResponse&& aRhs) -> FileSystemResponseValue& |
1018 | 0 | { |
1019 | 0 | if (MaybeDestroy(TFileSystemDirectoryResponse)) { |
1020 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse; |
1021 | 0 | } |
1022 | 0 | (*(ptr_FileSystemDirectoryResponse())) = std::move(aRhs); |
1023 | 0 | mType = TFileSystemDirectoryResponse; |
1024 | 0 | return (*(this)); |
1025 | 0 | } |
1026 | | |
1027 | | auto FileSystemResponseValue::operator=(const FileSystemDirectoryListingResponse& aRhs) -> FileSystemResponseValue& |
1028 | 0 | { |
1029 | 0 | if (MaybeDestroy(TFileSystemDirectoryListingResponse)) { |
1030 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse; |
1031 | 0 | } |
1032 | 0 | (*(ptr_FileSystemDirectoryListingResponse())) = aRhs; |
1033 | 0 | mType = TFileSystemDirectoryListingResponse; |
1034 | 0 | return (*(this)); |
1035 | 0 | } |
1036 | | |
1037 | | auto FileSystemResponseValue::operator=(FileSystemDirectoryListingResponse&& aRhs) -> FileSystemResponseValue& |
1038 | 0 | { |
1039 | 0 | if (MaybeDestroy(TFileSystemDirectoryListingResponse)) { |
1040 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse; |
1041 | 0 | } |
1042 | 0 | (*(ptr_FileSystemDirectoryListingResponse())) = std::move(aRhs); |
1043 | 0 | mType = TFileSystemDirectoryListingResponse; |
1044 | 0 | return (*(this)); |
1045 | 0 | } |
1046 | | |
1047 | | auto FileSystemResponseValue::operator=(const FileSystemFileResponse& aRhs) -> FileSystemResponseValue& |
1048 | 0 | { |
1049 | 0 | if (MaybeDestroy(TFileSystemFileResponse)) { |
1050 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse; |
1051 | 0 | } |
1052 | 0 | (*(ptr_FileSystemFileResponse())) = aRhs; |
1053 | 0 | mType = TFileSystemFileResponse; |
1054 | 0 | return (*(this)); |
1055 | 0 | } |
1056 | | |
1057 | | auto FileSystemResponseValue::operator=(FileSystemFileResponse&& aRhs) -> FileSystemResponseValue& |
1058 | 0 | { |
1059 | 0 | if (MaybeDestroy(TFileSystemFileResponse)) { |
1060 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse; |
1061 | 0 | } |
1062 | 0 | (*(ptr_FileSystemFileResponse())) = std::move(aRhs); |
1063 | 0 | mType = TFileSystemFileResponse; |
1064 | 0 | return (*(this)); |
1065 | 0 | } |
1066 | | |
1067 | | auto FileSystemResponseValue::operator=(const FileSystemFilesResponse& aRhs) -> FileSystemResponseValue& |
1068 | 0 | { |
1069 | 0 | if (MaybeDestroy(TFileSystemFilesResponse)) { |
1070 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse; |
1071 | 0 | } |
1072 | 0 | (*(ptr_FileSystemFilesResponse())) = aRhs; |
1073 | 0 | mType = TFileSystemFilesResponse; |
1074 | 0 | return (*(this)); |
1075 | 0 | } |
1076 | | |
1077 | | auto FileSystemResponseValue::operator=(FileSystemFilesResponse&& aRhs) -> FileSystemResponseValue& |
1078 | 0 | { |
1079 | 0 | if (MaybeDestroy(TFileSystemFilesResponse)) { |
1080 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse; |
1081 | 0 | } |
1082 | 0 | (*(ptr_FileSystemFilesResponse())) = std::move(aRhs); |
1083 | 0 | mType = TFileSystemFilesResponse; |
1084 | 0 | return (*(this)); |
1085 | 0 | } |
1086 | | |
1087 | | auto FileSystemResponseValue::operator=(const FileSystemErrorResponse& aRhs) -> FileSystemResponseValue& |
1088 | 0 | { |
1089 | 0 | if (MaybeDestroy(TFileSystemErrorResponse)) { |
1090 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse; |
1091 | 0 | } |
1092 | 0 | (*(ptr_FileSystemErrorResponse())) = aRhs; |
1093 | 0 | mType = TFileSystemErrorResponse; |
1094 | 0 | return (*(this)); |
1095 | 0 | } |
1096 | | |
1097 | | auto FileSystemResponseValue::operator=(FileSystemErrorResponse&& aRhs) -> FileSystemResponseValue& |
1098 | 0 | { |
1099 | 0 | if (MaybeDestroy(TFileSystemErrorResponse)) { |
1100 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse; |
1101 | 0 | } |
1102 | 0 | (*(ptr_FileSystemErrorResponse())) = std::move(aRhs); |
1103 | 0 | mType = TFileSystemErrorResponse; |
1104 | 0 | return (*(this)); |
1105 | 0 | } |
1106 | | |
1107 | | auto FileSystemResponseValue::operator=(const FileSystemResponseValue& aRhs) -> FileSystemResponseValue& |
1108 | 0 | { |
1109 | 0 | (aRhs).AssertSanity(); |
1110 | 0 | Type t = (aRhs).type(); |
1111 | 0 | switch (t) { |
1112 | 0 | case TFileSystemDirectoryResponse: |
1113 | 0 | { |
1114 | 0 | if (MaybeDestroy(t)) { |
1115 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse; |
1116 | 0 | } |
1117 | 0 | (*(ptr_FileSystemDirectoryResponse())) = (aRhs).get_FileSystemDirectoryResponse(); |
1118 | 0 | break; |
1119 | 0 | } |
1120 | 0 | case TFileSystemDirectoryListingResponse: |
1121 | 0 | { |
1122 | 0 | if (MaybeDestroy(t)) { |
1123 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse; |
1124 | 0 | } |
1125 | 0 | (*(ptr_FileSystemDirectoryListingResponse())) = (aRhs).get_FileSystemDirectoryListingResponse(); |
1126 | 0 | break; |
1127 | 0 | } |
1128 | 0 | case TFileSystemFileResponse: |
1129 | 0 | { |
1130 | 0 | if (MaybeDestroy(t)) { |
1131 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse; |
1132 | 0 | } |
1133 | 0 | (*(ptr_FileSystemFileResponse())) = (aRhs).get_FileSystemFileResponse(); |
1134 | 0 | break; |
1135 | 0 | } |
1136 | 0 | case TFileSystemFilesResponse: |
1137 | 0 | { |
1138 | 0 | if (MaybeDestroy(t)) { |
1139 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse; |
1140 | 0 | } |
1141 | 0 | (*(ptr_FileSystemFilesResponse())) = (aRhs).get_FileSystemFilesResponse(); |
1142 | 0 | break; |
1143 | 0 | } |
1144 | 0 | case TFileSystemErrorResponse: |
1145 | 0 | { |
1146 | 0 | if (MaybeDestroy(t)) { |
1147 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse; |
1148 | 0 | } |
1149 | 0 | (*(ptr_FileSystemErrorResponse())) = (aRhs).get_FileSystemErrorResponse(); |
1150 | 0 | break; |
1151 | 0 | } |
1152 | 0 | case T__None: |
1153 | 0 | { |
1154 | 0 | static_cast<void>(MaybeDestroy(t)); |
1155 | 0 | break; |
1156 | 0 | } |
1157 | 0 | default: |
1158 | 0 | { |
1159 | 0 | mozilla::ipc::LogicError("unreached"); |
1160 | 0 | break; |
1161 | 0 | } |
1162 | 0 | } |
1163 | 0 | mType = t; |
1164 | 0 | return (*(this)); |
1165 | 0 | } |
1166 | | |
1167 | | auto FileSystemResponseValue::operator=(FileSystemResponseValue&& aRhs) -> FileSystemResponseValue& |
1168 | 0 | { |
1169 | 0 | (aRhs).AssertSanity(); |
1170 | 0 | Type t = (aRhs).type(); |
1171 | 0 | switch (t) { |
1172 | 0 | case TFileSystemDirectoryResponse: |
1173 | 0 | { |
1174 | 0 | if (MaybeDestroy(t)) { |
1175 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse; |
1176 | 0 | } |
1177 | 0 | (*(ptr_FileSystemDirectoryResponse())) = std::move((aRhs).get_FileSystemDirectoryResponse()); |
1178 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1179 | 0 | break; |
1180 | 0 | } |
1181 | 0 | case TFileSystemDirectoryListingResponse: |
1182 | 0 | { |
1183 | 0 | if (MaybeDestroy(t)) { |
1184 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse; |
1185 | 0 | } |
1186 | 0 | (*(ptr_FileSystemDirectoryListingResponse())) = std::move((aRhs).get_FileSystemDirectoryListingResponse()); |
1187 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1188 | 0 | break; |
1189 | 0 | } |
1190 | 0 | case TFileSystemFileResponse: |
1191 | 0 | { |
1192 | 0 | if (MaybeDestroy(t)) { |
1193 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse; |
1194 | 0 | } |
1195 | 0 | (*(ptr_FileSystemFileResponse())) = std::move((aRhs).get_FileSystemFileResponse()); |
1196 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1197 | 0 | break; |
1198 | 0 | } |
1199 | 0 | case TFileSystemFilesResponse: |
1200 | 0 | { |
1201 | 0 | if (MaybeDestroy(t)) { |
1202 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse; |
1203 | 0 | } |
1204 | 0 | (*(ptr_FileSystemFilesResponse())) = std::move((aRhs).get_FileSystemFilesResponse()); |
1205 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1206 | 0 | break; |
1207 | 0 | } |
1208 | 0 | case TFileSystemErrorResponse: |
1209 | 0 | { |
1210 | 0 | if (MaybeDestroy(t)) { |
1211 | 0 | new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse; |
1212 | 0 | } |
1213 | 0 | (*(ptr_FileSystemErrorResponse())) = std::move((aRhs).get_FileSystemErrorResponse()); |
1214 | 0 | static_cast<void>((aRhs).MaybeDestroy(T__None)); |
1215 | 0 | break; |
1216 | 0 | } |
1217 | 0 | case T__None: |
1218 | 0 | { |
1219 | 0 | static_cast<void>(MaybeDestroy(t)); |
1220 | 0 | break; |
1221 | 0 | } |
1222 | 0 | default: |
1223 | 0 | { |
1224 | 0 | mozilla::ipc::LogicError("unreached"); |
1225 | 0 | break; |
1226 | 0 | } |
1227 | 0 | } |
1228 | 0 | (aRhs).mType = T__None; |
1229 | 0 | mType = t; |
1230 | 0 | return (*(this)); |
1231 | 0 | } |
1232 | | |
1233 | | auto FileSystemResponseValue::operator==(const FileSystemDirectoryResponse& aRhs) const -> bool |
1234 | 0 | { |
1235 | 0 | return (get_FileSystemDirectoryResponse()) == (aRhs); |
1236 | 0 | } |
1237 | | |
1238 | | auto FileSystemResponseValue::operator==(const FileSystemDirectoryListingResponse& aRhs) const -> bool |
1239 | 0 | { |
1240 | 0 | return (get_FileSystemDirectoryListingResponse()) == (aRhs); |
1241 | 0 | } |
1242 | | |
1243 | | auto FileSystemResponseValue::operator==(const FileSystemFileResponse& aRhs) const -> bool |
1244 | 0 | { |
1245 | 0 | return (get_FileSystemFileResponse()) == (aRhs); |
1246 | 0 | } |
1247 | | |
1248 | | auto FileSystemResponseValue::operator==(const FileSystemFilesResponse& aRhs) const -> bool |
1249 | 0 | { |
1250 | 0 | return (get_FileSystemFilesResponse()) == (aRhs); |
1251 | 0 | } |
1252 | | |
1253 | | auto FileSystemResponseValue::operator==(const FileSystemErrorResponse& aRhs) const -> bool |
1254 | 0 | { |
1255 | 0 | return (get_FileSystemErrorResponse()) == (aRhs); |
1256 | 0 | } |
1257 | | |
1258 | | auto FileSystemResponseValue::operator==(const FileSystemResponseValue& aRhs) const -> bool |
1259 | 0 | { |
1260 | 0 | if ((type()) != ((aRhs).type())) { |
1261 | 0 | return false; |
1262 | 0 | } |
1263 | 0 | |
1264 | 0 | switch (type()) { |
1265 | 0 | case TFileSystemDirectoryResponse: |
1266 | 0 | { |
1267 | 0 | return (get_FileSystemDirectoryResponse()) == ((aRhs).get_FileSystemDirectoryResponse()); |
1268 | 0 | } |
1269 | 0 | case TFileSystemDirectoryListingResponse: |
1270 | 0 | { |
1271 | 0 | return (get_FileSystemDirectoryListingResponse()) == ((aRhs).get_FileSystemDirectoryListingResponse()); |
1272 | 0 | } |
1273 | 0 | case TFileSystemFileResponse: |
1274 | 0 | { |
1275 | 0 | return (get_FileSystemFileResponse()) == ((aRhs).get_FileSystemFileResponse()); |
1276 | 0 | } |
1277 | 0 | case TFileSystemFilesResponse: |
1278 | 0 | { |
1279 | 0 | return (get_FileSystemFilesResponse()) == ((aRhs).get_FileSystemFilesResponse()); |
1280 | 0 | } |
1281 | 0 | case TFileSystemErrorResponse: |
1282 | 0 | { |
1283 | 0 | return (get_FileSystemErrorResponse()) == ((aRhs).get_FileSystemErrorResponse()); |
1284 | 0 | } |
1285 | 0 | default: |
1286 | 0 | { |
1287 | 0 | mozilla::ipc::LogicError("unreached"); |
1288 | 0 | return false; |
1289 | 0 | } |
1290 | 0 | } |
1291 | 0 | } |
1292 | | |
1293 | | auto FileSystemResponseValue::get(FileSystemDirectoryResponse* aOutValue) const -> void |
1294 | 0 | { |
1295 | 0 | (*(aOutValue)) = get_FileSystemDirectoryResponse(); |
1296 | 0 | } |
1297 | | |
1298 | | auto FileSystemResponseValue::get(FileSystemDirectoryListingResponse* aOutValue) const -> void |
1299 | 0 | { |
1300 | 0 | (*(aOutValue)) = get_FileSystemDirectoryListingResponse(); |
1301 | 0 | } |
1302 | | |
1303 | | auto FileSystemResponseValue::get(FileSystemFileResponse* aOutValue) const -> void |
1304 | 0 | { |
1305 | 0 | (*(aOutValue)) = get_FileSystemFileResponse(); |
1306 | 0 | } |
1307 | | |
1308 | | auto FileSystemResponseValue::get(FileSystemFilesResponse* aOutValue) const -> void |
1309 | 0 | { |
1310 | 0 | (*(aOutValue)) = get_FileSystemFilesResponse(); |
1311 | 0 | } |
1312 | | |
1313 | | auto FileSystemResponseValue::get(FileSystemErrorResponse* aOutValue) const -> void |
1314 | 0 | { |
1315 | 0 | (*(aOutValue)) = get_FileSystemErrorResponse(); |
1316 | 0 | } |
1317 | | |
1318 | | } // namespace dom |
1319 | | } // namespace mozilla |
1320 | | |
1321 | | namespace mozilla { |
1322 | | namespace ipc { |
1323 | | auto IPDLParamTraits<mozilla::dom::FileSystemResponseValue>::Write( |
1324 | | IPC::Message* aMsg, |
1325 | | mozilla::ipc::IProtocol* aActor, |
1326 | | const paramType& aVar) -> void |
1327 | | { |
1328 | | typedef mozilla::dom::FileSystemResponseValue union__; |
1329 | | int type; |
1330 | | type = (aVar).type(); |
1331 | | WriteIPDLParam(aMsg, aActor, type); |
1332 | | // Sentinel = 'FileSystemResponseValue' |
1333 | | (aMsg)->WriteSentinel(898810296); |
1334 | | |
1335 | | switch (type) { |
1336 | | case union__::TFileSystemDirectoryResponse: |
1337 | | { |
1338 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemDirectoryResponse()); |
1339 | | // Sentinel = 'TFileSystemDirectoryResponse' |
1340 | | (aMsg)->WriteSentinel(1834345515); |
1341 | | return; |
1342 | | } |
1343 | | case union__::TFileSystemDirectoryListingResponse: |
1344 | | { |
1345 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemDirectoryListingResponse()); |
1346 | | // Sentinel = 'TFileSystemDirectoryListingResponse' |
1347 | | (aMsg)->WriteSentinel(4079828244); |
1348 | | return; |
1349 | | } |
1350 | | case union__::TFileSystemFileResponse: |
1351 | | { |
1352 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemFileResponse()); |
1353 | | // Sentinel = 'TFileSystemFileResponse' |
1354 | | (aMsg)->WriteSentinel(2524916053); |
1355 | | return; |
1356 | | } |
1357 | | case union__::TFileSystemFilesResponse: |
1358 | | { |
1359 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemFilesResponse()); |
1360 | | // Sentinel = 'TFileSystemFilesResponse' |
1361 | | (aMsg)->WriteSentinel(3681334615); |
1362 | | return; |
1363 | | } |
1364 | | case union__::TFileSystemErrorResponse: |
1365 | | { |
1366 | | WriteIPDLParam(aMsg, aActor, (aVar).get_FileSystemErrorResponse()); |
1367 | | // Sentinel = 'TFileSystemErrorResponse' |
1368 | | (aMsg)->WriteSentinel(3163588064); |
1369 | | return; |
1370 | | } |
1371 | | default: |
1372 | | { |
1373 | | (aActor)->FatalError("unknown union type"); |
1374 | | return; |
1375 | | } |
1376 | | } |
1377 | | } |
1378 | | |
1379 | | auto IPDLParamTraits<mozilla::dom::FileSystemResponseValue>::Read( |
1380 | | const IPC::Message* aMsg, |
1381 | | PickleIterator* aIter, |
1382 | | mozilla::ipc::IProtocol* aActor, |
1383 | | paramType* aVar) -> bool |
1384 | 0 | { |
1385 | 0 | typedef mozilla::dom::FileSystemResponseValue union__; |
1386 | 0 | int type; |
1387 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&(type)))))) { |
1388 | 0 | (aActor)->FatalError("Error deserializing type of union FileSystemResponseValue"); |
1389 | 0 | return false; |
1390 | 0 | } |
1391 | 0 | // Sentinel = 'FileSystemResponseValue' |
1392 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 898810296)))) { |
1393 | 0 | mozilla::ipc::SentinelReadError("Error deserializing type of union FileSystemResponseValue"); |
1394 | 0 | return false; |
1395 | 0 | } |
1396 | 0 | |
1397 | 0 | switch (type) { |
1398 | 0 | case union__::TFileSystemDirectoryResponse: |
1399 | 0 | { |
1400 | 0 | mozilla::dom::FileSystemDirectoryResponse tmp = mozilla::dom::FileSystemDirectoryResponse(); |
1401 | 0 | (*(aVar)) = tmp; |
1402 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemDirectoryResponse())))))) { |
1403 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemDirectoryResponse of union FileSystemResponseValue"); |
1404 | 0 | return false; |
1405 | 0 | } |
1406 | 0 | // Sentinel = 'TFileSystemDirectoryResponse' |
1407 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1834345515)))) { |
1408 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemDirectoryResponse of union FileSystemResponseValue"); |
1409 | 0 | return false; |
1410 | 0 | } |
1411 | 0 | return true; |
1412 | 0 | } |
1413 | 0 | case union__::TFileSystemDirectoryListingResponse: |
1414 | 0 | { |
1415 | 0 | mozilla::dom::FileSystemDirectoryListingResponse tmp = mozilla::dom::FileSystemDirectoryListingResponse(); |
1416 | 0 | (*(aVar)) = tmp; |
1417 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemDirectoryListingResponse())))))) { |
1418 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemDirectoryListingResponse of union FileSystemResponseValue"); |
1419 | 0 | return false; |
1420 | 0 | } |
1421 | 0 | // Sentinel = 'TFileSystemDirectoryListingResponse' |
1422 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4079828244)))) { |
1423 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemDirectoryListingResponse of union FileSystemResponseValue"); |
1424 | 0 | return false; |
1425 | 0 | } |
1426 | 0 | return true; |
1427 | 0 | } |
1428 | 0 | case union__::TFileSystemFileResponse: |
1429 | 0 | { |
1430 | 0 | mozilla::dom::FileSystemFileResponse tmp = mozilla::dom::FileSystemFileResponse(); |
1431 | 0 | (*(aVar)) = tmp; |
1432 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemFileResponse())))))) { |
1433 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemFileResponse of union FileSystemResponseValue"); |
1434 | 0 | return false; |
1435 | 0 | } |
1436 | 0 | // Sentinel = 'TFileSystemFileResponse' |
1437 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2524916053)))) { |
1438 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemFileResponse of union FileSystemResponseValue"); |
1439 | 0 | return false; |
1440 | 0 | } |
1441 | 0 | return true; |
1442 | 0 | } |
1443 | 0 | case union__::TFileSystemFilesResponse: |
1444 | 0 | { |
1445 | 0 | mozilla::dom::FileSystemFilesResponse tmp = mozilla::dom::FileSystemFilesResponse(); |
1446 | 0 | (*(aVar)) = tmp; |
1447 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemFilesResponse())))))) { |
1448 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemFilesResponse of union FileSystemResponseValue"); |
1449 | 0 | return false; |
1450 | 0 | } |
1451 | 0 | // Sentinel = 'TFileSystemFilesResponse' |
1452 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3681334615)))) { |
1453 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemFilesResponse of union FileSystemResponseValue"); |
1454 | 0 | return false; |
1455 | 0 | } |
1456 | 0 | return true; |
1457 | 0 | } |
1458 | 0 | case union__::TFileSystemErrorResponse: |
1459 | 0 | { |
1460 | 0 | mozilla::dom::FileSystemErrorResponse tmp = mozilla::dom::FileSystemErrorResponse(); |
1461 | 0 | (*(aVar)) = tmp; |
1462 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->get_FileSystemErrorResponse())))))) { |
1463 | 0 | (aActor)->FatalError("Error deserializing variant TFileSystemErrorResponse of union FileSystemResponseValue"); |
1464 | 0 | return false; |
1465 | 0 | } |
1466 | 0 | // Sentinel = 'TFileSystemErrorResponse' |
1467 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3163588064)))) { |
1468 | 0 | mozilla::ipc::SentinelReadError("Error deserializing variant TFileSystemErrorResponse of union FileSystemResponseValue"); |
1469 | 0 | return false; |
1470 | 0 | } |
1471 | 0 | return true; |
1472 | 0 | } |
1473 | 0 | default: |
1474 | 0 | { |
1475 | 0 | (aActor)->FatalError("unknown union type"); |
1476 | 0 | return false; |
1477 | 0 | } |
1478 | 0 | } |
1479 | 0 | } |
1480 | | |
1481 | | } // namespace ipc |
1482 | | } // namespace mozilla |