Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/PWebBrowserPersistDocument.h"
8 :
9 : namespace mozilla {
10 : namespace PWebBrowserPersistDocument {
11 :
12 : nsresult
13 0 : CreateEndpoints(
14 : base::ProcessId aParentDestPid,
15 : base::ProcessId aChildDestPid,
16 : mozilla::ipc::Endpoint<mozilla::PWebBrowserPersistDocumentParent>* aParent,
17 : mozilla::ipc::Endpoint<mozilla::PWebBrowserPersistDocumentChild>* aChild)
18 : {
19 0 : return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PWebBrowserPersistDocumentMsgStart, PWebBrowserPersistDocumentMsgStartChild, aParent, aChild);
20 : }
21 : void
22 0 : Transition(
23 : MessageType msg,
24 : State* next)
25 : {
26 0 : switch ((*(next))) {
27 : case __Null:
28 0 : if ((Msg___delete____ID) == (msg)) {
29 0 : (*(next)) = __Dead;
30 : }
31 0 : break;
32 : case __Dead:
33 0 : mozilla::ipc::LogicError("__delete__()d actor");
34 0 : break;
35 : default:
36 0 : mozilla::ipc::LogicError("corrupted actor state");
37 0 : break;
38 : }
39 0 : }
40 : IPC::Message*
41 0 : Msg_Attributes(int32_t routingId)
42 : {
43 0 : return new IPC::Message(routingId, Msg_Attributes__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Msg_Attributes", true);
44 : }
45 : IPC::Message*
46 0 : Msg_InitFailure(int32_t routingId)
47 : {
48 0 : return new IPC::Message(routingId, Msg_InitFailure__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Msg_InitFailure", true);
49 : }
50 : IPC::Message*
51 0 : Msg_SetPersistFlags(int32_t routingId)
52 : {
53 0 : return new IPC::Message(routingId, Msg_SetPersistFlags__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Msg_SetPersistFlags", true);
54 : }
55 : IPC::Message*
56 0 : Msg_PWebBrowserPersistResourcesConstructor(int32_t routingId)
57 : {
58 0 : return new IPC::Message(routingId, Msg_PWebBrowserPersistResourcesConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor", true);
59 : }
60 : IPC::Message*
61 0 : Reply_PWebBrowserPersistResourcesConstructor(int32_t routingId)
62 : {
63 0 : return new IPC::Message(routingId, Reply_PWebBrowserPersistResourcesConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Reply_PWebBrowserPersistResourcesConstructor", true);
64 : }
65 : IPC::Message*
66 0 : Msg_PWebBrowserPersistSerializeConstructor(int32_t routingId)
67 : {
68 0 : return new IPC::Message(routingId, Msg_PWebBrowserPersistSerializeConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor", true);
69 : }
70 : IPC::Message*
71 0 : Reply_PWebBrowserPersistSerializeConstructor(int32_t routingId)
72 : {
73 0 : return new IPC::Message(routingId, Reply_PWebBrowserPersistSerializeConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Reply_PWebBrowserPersistSerializeConstructor", true);
74 : }
75 : IPC::Message*
76 0 : Msg___delete__(int32_t routingId)
77 : {
78 0 : return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Msg___delete__", true);
79 : }
80 : IPC::Message*
81 0 : Reply___delete__(int32_t routingId)
82 : {
83 0 : return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebBrowserPersistDocument::Reply___delete__", true);
84 : }
85 :
86 : } // namespace PWebBrowserPersistDocument
87 : } // namespace mozilla
88 :
89 : //-----------------------------------------------------------------------------
90 : // Method definitions for the IPDL type |struct WebBrowserPersistDocumentAttrs|
91 : //
92 : namespace mozilla {
93 0 : MOZ_IMPLICIT WebBrowserPersistDocumentAttrs::WebBrowserPersistDocumentAttrs() :
94 : isPrivate_(),
95 : documentURI_(),
96 : baseURI_(),
97 : contentType_(),
98 : characterSet_(),
99 : title_(),
100 : referrer_(),
101 : contentDisposition_(),
102 : cacheKey_(),
103 0 : persistFlags_()
104 : {
105 0 : Init();
106 0 : }
107 :
108 0 : WebBrowserPersistDocumentAttrs::~WebBrowserPersistDocumentAttrs()
109 : {
110 0 : }
111 :
112 0 : auto WebBrowserPersistDocumentAttrs::operator==(const WebBrowserPersistDocumentAttrs& _o) const -> bool
113 : {
114 0 : if ((!((isPrivate()) == ((_o).isPrivate())))) {
115 0 : return false;
116 : }
117 0 : if ((!((documentURI()) == ((_o).documentURI())))) {
118 0 : return false;
119 : }
120 0 : if ((!((baseURI()) == ((_o).baseURI())))) {
121 0 : return false;
122 : }
123 0 : if ((!((contentType()) == ((_o).contentType())))) {
124 0 : return false;
125 : }
126 0 : if ((!((characterSet()) == ((_o).characterSet())))) {
127 0 : return false;
128 : }
129 0 : if ((!((title()) == ((_o).title())))) {
130 0 : return false;
131 : }
132 0 : if ((!((referrer()) == ((_o).referrer())))) {
133 0 : return false;
134 : }
135 0 : if ((!((contentDisposition()) == ((_o).contentDisposition())))) {
136 0 : return false;
137 : }
138 0 : if ((!((cacheKey()) == ((_o).cacheKey())))) {
139 0 : return false;
140 : }
141 0 : if ((!((persistFlags()) == ((_o).persistFlags())))) {
142 0 : return false;
143 : }
144 0 : return true;
145 : }
146 :
147 0 : auto WebBrowserPersistDocumentAttrs::operator!=(const WebBrowserPersistDocumentAttrs& _o) const -> bool
148 : {
149 0 : return (!(operator==(_o)));
150 : }
151 :
152 0 : auto WebBrowserPersistDocumentAttrs::Init() -> void
153 : {
154 0 : }
155 :
156 0 : auto WebBrowserPersistDocumentAttrs::Assign(
157 : const bool& _isPrivate,
158 : const nsCString& _documentURI,
159 : const nsCString& _baseURI,
160 : const nsCString& _contentType,
161 : const nsCString& _characterSet,
162 : const nsString& _title,
163 : const nsString& _referrer,
164 : const nsString& _contentDisposition,
165 : const uint32_t& _cacheKey,
166 : const uint32_t& _persistFlags) -> void
167 : {
168 0 : isPrivate_ = _isPrivate;
169 0 : documentURI_ = _documentURI;
170 0 : baseURI_ = _baseURI;
171 0 : contentType_ = _contentType;
172 0 : characterSet_ = _characterSet;
173 0 : title_ = _title;
174 0 : referrer_ = _referrer;
175 0 : contentDisposition_ = _contentDisposition;
176 0 : cacheKey_ = _cacheKey;
177 0 : persistFlags_ = _persistFlags;
178 0 : }
179 :
180 : } // namespace mozilla
181 :
182 : //-----------------------------------------------------------------------------
183 : // Method definitions for the IPDL type |struct WebBrowserPersistURIMapEntry|
184 : //
185 : namespace mozilla {
186 0 : MOZ_IMPLICIT WebBrowserPersistURIMapEntry::WebBrowserPersistURIMapEntry() :
187 : mapFrom_(),
188 0 : mapTo_()
189 : {
190 0 : Init();
191 0 : }
192 :
193 0 : WebBrowserPersistURIMapEntry::~WebBrowserPersistURIMapEntry()
194 : {
195 0 : }
196 :
197 0 : auto WebBrowserPersistURIMapEntry::operator==(const WebBrowserPersistURIMapEntry& _o) const -> bool
198 : {
199 0 : if ((!((mapFrom()) == ((_o).mapFrom())))) {
200 0 : return false;
201 : }
202 0 : if ((!((mapTo()) == ((_o).mapTo())))) {
203 0 : return false;
204 : }
205 0 : return true;
206 : }
207 :
208 0 : auto WebBrowserPersistURIMapEntry::operator!=(const WebBrowserPersistURIMapEntry& _o) const -> bool
209 : {
210 0 : return (!(operator==(_o)));
211 : }
212 :
213 0 : auto WebBrowserPersistURIMapEntry::Init() -> void
214 : {
215 0 : }
216 :
217 0 : auto WebBrowserPersistURIMapEntry::Assign(
218 : const nsCString& _mapFrom,
219 : const nsCString& _mapTo) -> void
220 : {
221 0 : mapFrom_ = _mapFrom;
222 0 : mapTo_ = _mapTo;
223 0 : }
224 :
225 : } // namespace mozilla
226 :
227 : //-----------------------------------------------------------------------------
228 : // Method definitions for the IPDL type |struct WebBrowserPersistURIMap|
229 : //
230 : namespace mozilla {
231 0 : MOZ_IMPLICIT WebBrowserPersistURIMap::WebBrowserPersistURIMap() :
232 0 : targetBaseURI_()
233 : {
234 0 : Init();
235 0 : }
236 :
237 0 : WebBrowserPersistURIMap::~WebBrowserPersistURIMap()
238 : {
239 0 : }
240 :
241 0 : auto WebBrowserPersistURIMap::operator==(const WebBrowserPersistURIMap& _o) const -> bool
242 : {
243 0 : if ((!((mapURIs()) == ((_o).mapURIs())))) {
244 0 : return false;
245 : }
246 0 : if ((!((targetBaseURI()) == ((_o).targetBaseURI())))) {
247 0 : return false;
248 : }
249 0 : return true;
250 : }
251 :
252 0 : auto WebBrowserPersistURIMap::operator!=(const WebBrowserPersistURIMap& _o) const -> bool
253 : {
254 0 : return (!(operator==(_o)));
255 : }
256 :
257 0 : auto WebBrowserPersistURIMap::Init() -> void
258 : {
259 0 : }
260 :
261 0 : auto WebBrowserPersistURIMap::Assign(
262 : const nsTArray<WebBrowserPersistURIMapEntry>& _mapURIs,
263 : const nsCString& _targetBaseURI) -> void
264 : {
265 0 : mapURIs_ = _mapURIs;
266 0 : targetBaseURI_ = _targetBaseURI;
267 0 : }
268 :
269 : } // namespace mozilla
|