/work/obj-fuzz/ipc/ipdl/PWebBrowserPersistDocument.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/dom/PContentParent.h" |
8 | | #include "mozilla/dom/PContentChild.h" |
9 | | #include "mozilla/PWebBrowserPersistResourcesParent.h" |
10 | | #include "mozilla/PWebBrowserPersistResourcesChild.h" |
11 | | #include "mozilla/PWebBrowserPersistSerializeParent.h" |
12 | | #include "mozilla/PWebBrowserPersistSerializeChild.h" |
13 | | #include "mozilla/ipc/PFileDescriptorSetParent.h" |
14 | | #include "mozilla/ipc/PFileDescriptorSetChild.h" |
15 | | #include "mozilla/ipc/PChildToParentStreamParent.h" |
16 | | #include "mozilla/ipc/PChildToParentStreamChild.h" |
17 | | #include "mozilla/ipc/PParentToChildStreamParent.h" |
18 | | #include "mozilla/ipc/PParentToChildStreamChild.h" |
19 | | #include "mozilla/PWebBrowserPersistDocument.h" |
20 | | |
21 | | namespace mozilla { |
22 | | namespace PWebBrowserPersistDocument { |
23 | | |
24 | | nsresult |
25 | | CreateEndpoints( |
26 | | base::ProcessId aParentDestPid, |
27 | | base::ProcessId aChildDestPid, |
28 | | mozilla::ipc::Endpoint<mozilla::PWebBrowserPersistDocumentParent>* aParent, |
29 | | mozilla::ipc::Endpoint<mozilla::PWebBrowserPersistDocumentChild>* aChild) |
30 | 0 | { |
31 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
32 | 0 | } |
33 | | IPC::Message* |
34 | | Msg_Attributes(int32_t routingId) |
35 | 0 | { |
36 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_Attributes__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)); |
37 | 0 | } |
38 | | IPC::Message* |
39 | | Msg_InitFailure(int32_t routingId) |
40 | 0 | { |
41 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_InitFailure__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)); |
42 | 0 | } |
43 | | IPC::Message* |
44 | | Msg_SetPersistFlags(int32_t routingId) |
45 | 0 | { |
46 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_SetPersistFlags__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)); |
47 | 0 | } |
48 | | IPC::Message* |
49 | | Msg_PWebBrowserPersistResourcesConstructor(int32_t routingId) |
50 | 0 | { |
51 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_PWebBrowserPersistResourcesConstructor__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)); |
52 | 0 | } |
53 | | IPC::Message* |
54 | | Reply_PWebBrowserPersistResourcesConstructor(int32_t routingId) |
55 | 0 | { |
56 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_PWebBrowserPersistResourcesConstructor__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)); |
57 | 0 | } |
58 | | IPC::Message* |
59 | | Msg_PWebBrowserPersistSerializeConstructor(int32_t routingId) |
60 | 0 | { |
61 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_PWebBrowserPersistSerializeConstructor__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)); |
62 | 0 | } |
63 | | IPC::Message* |
64 | | Reply_PWebBrowserPersistSerializeConstructor(int32_t routingId) |
65 | 0 | { |
66 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_PWebBrowserPersistSerializeConstructor__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)); |
67 | 0 | } |
68 | | IPC::Message* |
69 | | Msg___delete__(int32_t routingId) |
70 | 0 | { |
71 | 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)); |
72 | 0 | } |
73 | | IPC::Message* |
74 | | Reply___delete__(int32_t routingId) |
75 | 0 | { |
76 | 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)); |
77 | 0 | } |
78 | | |
79 | | } // namespace PWebBrowserPersistDocument |
80 | | } // namespace mozilla |
81 | | |
82 | | //----------------------------------------------------------------------------- |
83 | | // Method definitions for the IPDL type |struct WebBrowserPersistDocumentAttrs| |
84 | | // |
85 | | namespace mozilla { |
86 | | auto WebBrowserPersistDocumentAttrs::operator==(const WebBrowserPersistDocumentAttrs& _o) const -> bool |
87 | 0 | { |
88 | 0 | if ((!((isPrivate()) == ((_o).isPrivate())))) { |
89 | 0 | return false; |
90 | 0 | } |
91 | 0 | if ((!((documentURI()) == ((_o).documentURI())))) { |
92 | 0 | return false; |
93 | 0 | } |
94 | 0 | if ((!((baseURI()) == ((_o).baseURI())))) { |
95 | 0 | return false; |
96 | 0 | } |
97 | 0 | if ((!((contentType()) == ((_o).contentType())))) { |
98 | 0 | return false; |
99 | 0 | } |
100 | 0 | if ((!((characterSet()) == ((_o).characterSet())))) { |
101 | 0 | return false; |
102 | 0 | } |
103 | 0 | if ((!((title()) == ((_o).title())))) { |
104 | 0 | return false; |
105 | 0 | } |
106 | 0 | if ((!((referrer()) == ((_o).referrer())))) { |
107 | 0 | return false; |
108 | 0 | } |
109 | 0 | if ((!((contentDisposition()) == ((_o).contentDisposition())))) { |
110 | 0 | return false; |
111 | 0 | } |
112 | 0 | if ((!((cacheKey()) == ((_o).cacheKey())))) { |
113 | 0 | return false; |
114 | 0 | } |
115 | 0 | if ((!((persistFlags()) == ((_o).persistFlags())))) { |
116 | 0 | return false; |
117 | 0 | } |
118 | 0 | if ((!((principal()) == ((_o).principal())))) { |
119 | 0 | return false; |
120 | 0 | } |
121 | 0 | return true; |
122 | 0 | } |
123 | | |
124 | | auto WebBrowserPersistDocumentAttrs::operator!=(const WebBrowserPersistDocumentAttrs& _o) const -> bool |
125 | 0 | { |
126 | 0 | return (!(operator==(_o))); |
127 | 0 | } |
128 | | |
129 | | } // namespace mozilla |
130 | | |
131 | | namespace mozilla { |
132 | | namespace ipc { |
133 | | auto IPDLParamTraits<mozilla::WebBrowserPersistDocumentAttrs>::Write( |
134 | | IPC::Message* aMsg, |
135 | | mozilla::ipc::IProtocol* aActor, |
136 | | const paramType& aVar) -> void |
137 | 0 | { |
138 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).isPrivate()); |
139 | 0 | // Sentinel = 'isPrivate' |
140 | 0 | (aMsg)->WriteSentinel(4033294520); |
141 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).documentURI()); |
142 | 0 | // Sentinel = 'documentURI' |
143 | 0 | (aMsg)->WriteSentinel(3585823520); |
144 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).baseURI()); |
145 | 0 | // Sentinel = 'baseURI' |
146 | 0 | (aMsg)->WriteSentinel(1836705256); |
147 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).contentType()); |
148 | 0 | // Sentinel = 'contentType' |
149 | 0 | (aMsg)->WriteSentinel(2092571716); |
150 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).characterSet()); |
151 | 0 | // Sentinel = 'characterSet' |
152 | 0 | (aMsg)->WriteSentinel(2220949387); |
153 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).title()); |
154 | 0 | // Sentinel = 'title' |
155 | 0 | (aMsg)->WriteSentinel(4272139303); |
156 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).referrer()); |
157 | 0 | // Sentinel = 'referrer' |
158 | 0 | (aMsg)->WriteSentinel(3770987113); |
159 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).contentDisposition()); |
160 | 0 | // Sentinel = 'contentDisposition' |
161 | 0 | (aMsg)->WriteSentinel(2551304062); |
162 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).cacheKey()); |
163 | 0 | // Sentinel = 'cacheKey' |
164 | 0 | (aMsg)->WriteSentinel(249191363); |
165 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).persistFlags()); |
166 | 0 | // Sentinel = 'persistFlags' |
167 | 0 | (aMsg)->WriteSentinel(276845325); |
168 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).principal()); |
169 | 0 | // Sentinel = 'principal' |
170 | 0 | (aMsg)->WriteSentinel(732240927); |
171 | 0 | } |
172 | | |
173 | | auto IPDLParamTraits<mozilla::WebBrowserPersistDocumentAttrs>::Read( |
174 | | const IPC::Message* aMsg, |
175 | | PickleIterator* aIter, |
176 | | mozilla::ipc::IProtocol* aActor, |
177 | | paramType* aVar) -> bool |
178 | 0 | { |
179 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->isPrivate())))))) { |
180 | 0 | (aActor)->FatalError("Error deserializing 'isPrivate' (bool) member of 'WebBrowserPersistDocumentAttrs'"); |
181 | 0 | return false; |
182 | 0 | } |
183 | 0 | // Sentinel = 'isPrivate' |
184 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4033294520)))) { |
185 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'isPrivate' (bool) member of 'WebBrowserPersistDocumentAttrs'"); |
186 | 0 | return false; |
187 | 0 | } |
188 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->documentURI())))))) { |
189 | 0 | (aActor)->FatalError("Error deserializing 'documentURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
190 | 0 | return false; |
191 | 0 | } |
192 | 0 | // Sentinel = 'documentURI' |
193 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3585823520)))) { |
194 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'documentURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
195 | 0 | return false; |
196 | 0 | } |
197 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->baseURI())))))) { |
198 | 0 | (aActor)->FatalError("Error deserializing 'baseURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
199 | 0 | return false; |
200 | 0 | } |
201 | 0 | // Sentinel = 'baseURI' |
202 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1836705256)))) { |
203 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
204 | 0 | return false; |
205 | 0 | } |
206 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->contentType())))))) { |
207 | 0 | (aActor)->FatalError("Error deserializing 'contentType' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
208 | 0 | return false; |
209 | 0 | } |
210 | 0 | // Sentinel = 'contentType' |
211 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2092571716)))) { |
212 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
213 | 0 | return false; |
214 | 0 | } |
215 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->characterSet())))))) { |
216 | 0 | (aActor)->FatalError("Error deserializing 'characterSet' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
217 | 0 | return false; |
218 | 0 | } |
219 | 0 | // Sentinel = 'characterSet' |
220 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2220949387)))) { |
221 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'characterSet' (nsCString) member of 'WebBrowserPersistDocumentAttrs'"); |
222 | 0 | return false; |
223 | 0 | } |
224 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->title())))))) { |
225 | 0 | (aActor)->FatalError("Error deserializing 'title' (nsString) member of 'WebBrowserPersistDocumentAttrs'"); |
226 | 0 | return false; |
227 | 0 | } |
228 | 0 | // Sentinel = 'title' |
229 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4272139303)))) { |
230 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'title' (nsString) member of 'WebBrowserPersistDocumentAttrs'"); |
231 | 0 | return false; |
232 | 0 | } |
233 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->referrer())))))) { |
234 | 0 | (aActor)->FatalError("Error deserializing 'referrer' (nsString) member of 'WebBrowserPersistDocumentAttrs'"); |
235 | 0 | return false; |
236 | 0 | } |
237 | 0 | // Sentinel = 'referrer' |
238 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3770987113)))) { |
239 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (nsString) member of 'WebBrowserPersistDocumentAttrs'"); |
240 | 0 | return false; |
241 | 0 | } |
242 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->contentDisposition())))))) { |
243 | 0 | (aActor)->FatalError("Error deserializing 'contentDisposition' (nsString) member of 'WebBrowserPersistDocumentAttrs'"); |
244 | 0 | return false; |
245 | 0 | } |
246 | 0 | // Sentinel = 'contentDisposition' |
247 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2551304062)))) { |
248 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'contentDisposition' (nsString) member of 'WebBrowserPersistDocumentAttrs'"); |
249 | 0 | return false; |
250 | 0 | } |
251 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->cacheKey())))))) { |
252 | 0 | (aActor)->FatalError("Error deserializing 'cacheKey' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'"); |
253 | 0 | return false; |
254 | 0 | } |
255 | 0 | // Sentinel = 'cacheKey' |
256 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 249191363)))) { |
257 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'cacheKey' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'"); |
258 | 0 | return false; |
259 | 0 | } |
260 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->persistFlags())))))) { |
261 | 0 | (aActor)->FatalError("Error deserializing 'persistFlags' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'"); |
262 | 0 | return false; |
263 | 0 | } |
264 | 0 | // Sentinel = 'persistFlags' |
265 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 276845325)))) { |
266 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'persistFlags' (uint32_t) member of 'WebBrowserPersistDocumentAttrs'"); |
267 | 0 | return false; |
268 | 0 | } |
269 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->principal())))))) { |
270 | 0 | (aActor)->FatalError("Error deserializing 'principal' (PrincipalInfo) member of 'WebBrowserPersistDocumentAttrs'"); |
271 | 0 | return false; |
272 | 0 | } |
273 | 0 | // Sentinel = 'principal' |
274 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 732240927)))) { |
275 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'principal' (PrincipalInfo) member of 'WebBrowserPersistDocumentAttrs'"); |
276 | 0 | return false; |
277 | 0 | } |
278 | 0 | return true; |
279 | 0 | } |
280 | | |
281 | | } // namespace ipc |
282 | | } // namespace mozilla |
283 | | |
284 | | //----------------------------------------------------------------------------- |
285 | | // Method definitions for the IPDL type |struct WebBrowserPersistURIMapEntry| |
286 | | // |
287 | | namespace mozilla { |
288 | | auto WebBrowserPersistURIMapEntry::operator==(const WebBrowserPersistURIMapEntry& _o) const -> bool |
289 | 0 | { |
290 | 0 | if ((!((mapFrom()) == ((_o).mapFrom())))) { |
291 | 0 | return false; |
292 | 0 | } |
293 | 0 | if ((!((mapTo()) == ((_o).mapTo())))) { |
294 | 0 | return false; |
295 | 0 | } |
296 | 0 | return true; |
297 | 0 | } |
298 | | |
299 | | auto WebBrowserPersistURIMapEntry::operator!=(const WebBrowserPersistURIMapEntry& _o) const -> bool |
300 | 0 | { |
301 | 0 | return (!(operator==(_o))); |
302 | 0 | } |
303 | | |
304 | | } // namespace mozilla |
305 | | |
306 | | namespace mozilla { |
307 | | namespace ipc { |
308 | | auto IPDLParamTraits<mozilla::WebBrowserPersistURIMapEntry>::Write( |
309 | | IPC::Message* aMsg, |
310 | | mozilla::ipc::IProtocol* aActor, |
311 | | const paramType& aVar) -> void |
312 | 0 | { |
313 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).mapFrom()); |
314 | 0 | // Sentinel = 'mapFrom' |
315 | 0 | (aMsg)->WriteSentinel(2234736001); |
316 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).mapTo()); |
317 | 0 | // Sentinel = 'mapTo' |
318 | 0 | (aMsg)->WriteSentinel(4068146524); |
319 | 0 | } |
320 | | |
321 | | auto IPDLParamTraits<mozilla::WebBrowserPersistURIMapEntry>::Read( |
322 | | const IPC::Message* aMsg, |
323 | | PickleIterator* aIter, |
324 | | mozilla::ipc::IProtocol* aActor, |
325 | | paramType* aVar) -> bool |
326 | 0 | { |
327 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mapFrom())))))) { |
328 | 0 | (aActor)->FatalError("Error deserializing 'mapFrom' (nsCString) member of 'WebBrowserPersistURIMapEntry'"); |
329 | 0 | return false; |
330 | 0 | } |
331 | 0 | // Sentinel = 'mapFrom' |
332 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2234736001)))) { |
333 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'mapFrom' (nsCString) member of 'WebBrowserPersistURIMapEntry'"); |
334 | 0 | return false; |
335 | 0 | } |
336 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mapTo())))))) { |
337 | 0 | (aActor)->FatalError("Error deserializing 'mapTo' (nsCString) member of 'WebBrowserPersistURIMapEntry'"); |
338 | 0 | return false; |
339 | 0 | } |
340 | 0 | // Sentinel = 'mapTo' |
341 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 4068146524)))) { |
342 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'mapTo' (nsCString) member of 'WebBrowserPersistURIMapEntry'"); |
343 | 0 | return false; |
344 | 0 | } |
345 | 0 | return true; |
346 | 0 | } |
347 | | |
348 | | } // namespace ipc |
349 | | } // namespace mozilla |
350 | | |
351 | | //----------------------------------------------------------------------------- |
352 | | // Method definitions for the IPDL type |struct WebBrowserPersistURIMap| |
353 | | // |
354 | | namespace mozilla { |
355 | | auto WebBrowserPersistURIMap::operator==(const WebBrowserPersistURIMap& _o) const -> bool |
356 | 0 | { |
357 | 0 | if ((!((mapURIs()) == ((_o).mapURIs())))) { |
358 | 0 | return false; |
359 | 0 | } |
360 | 0 | if ((!((targetBaseURI()) == ((_o).targetBaseURI())))) { |
361 | 0 | return false; |
362 | 0 | } |
363 | 0 | return true; |
364 | 0 | } |
365 | | |
366 | | auto WebBrowserPersistURIMap::operator!=(const WebBrowserPersistURIMap& _o) const -> bool |
367 | 0 | { |
368 | 0 | return (!(operator==(_o))); |
369 | 0 | } |
370 | | |
371 | | } // namespace mozilla |
372 | | |
373 | | namespace mozilla { |
374 | | namespace ipc { |
375 | | auto IPDLParamTraits<mozilla::WebBrowserPersistURIMap>::Write( |
376 | | IPC::Message* aMsg, |
377 | | mozilla::ipc::IProtocol* aActor, |
378 | | const paramType& aVar) -> void |
379 | 0 | { |
380 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).mapURIs()); |
381 | 0 | // Sentinel = 'mapURIs' |
382 | 0 | (aMsg)->WriteSentinel(1481862252); |
383 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).targetBaseURI()); |
384 | 0 | // Sentinel = 'targetBaseURI' |
385 | 0 | (aMsg)->WriteSentinel(1355746871); |
386 | 0 | } |
387 | | |
388 | | auto IPDLParamTraits<mozilla::WebBrowserPersistURIMap>::Read( |
389 | | const IPC::Message* aMsg, |
390 | | PickleIterator* aIter, |
391 | | mozilla::ipc::IProtocol* aActor, |
392 | | paramType* aVar) -> bool |
393 | 0 | { |
394 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->mapURIs())))))) { |
395 | 0 | (aActor)->FatalError("Error deserializing 'mapURIs' (WebBrowserPersistURIMapEntry[]) member of 'WebBrowserPersistURIMap'"); |
396 | 0 | return false; |
397 | 0 | } |
398 | 0 | // Sentinel = 'mapURIs' |
399 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1481862252)))) { |
400 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'mapURIs' (WebBrowserPersistURIMapEntry[]) member of 'WebBrowserPersistURIMap'"); |
401 | 0 | return false; |
402 | 0 | } |
403 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->targetBaseURI())))))) { |
404 | 0 | (aActor)->FatalError("Error deserializing 'targetBaseURI' (nsCString) member of 'WebBrowserPersistURIMap'"); |
405 | 0 | return false; |
406 | 0 | } |
407 | 0 | // Sentinel = 'targetBaseURI' |
408 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1355746871)))) { |
409 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'targetBaseURI' (nsCString) member of 'WebBrowserPersistURIMap'"); |
410 | 0 | return false; |
411 | 0 | } |
412 | 0 | return true; |
413 | 0 | } |
414 | | |
415 | | } // namespace ipc |
416 | | } // namespace mozilla |