/work/obj-fuzz/ipc/ipdl/PSpeechSynthesis.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/dom/PContentParent.h" |
8 | | #include "mozilla/dom/PContentChild.h" |
9 | | #include "mozilla/dom/PSpeechSynthesisRequestParent.h" |
10 | | #include "mozilla/dom/PSpeechSynthesisRequestChild.h" |
11 | | #include "mozilla/dom/PSpeechSynthesis.h" |
12 | | |
13 | | namespace mozilla { |
14 | | namespace dom { |
15 | | namespace PSpeechSynthesis { |
16 | | |
17 | | nsresult |
18 | | CreateEndpoints( |
19 | | base::ProcessId aParentDestPid, |
20 | | base::ProcessId aChildDestPid, |
21 | | mozilla::ipc::Endpoint<mozilla::dom::PSpeechSynthesisParent>* aParent, |
22 | | mozilla::ipc::Endpoint<mozilla::dom::PSpeechSynthesisChild>* aChild) |
23 | 0 | { |
24 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
25 | 0 | } |
26 | | IPC::Message* |
27 | | Msg_VoiceAdded(int32_t routingId) |
28 | 0 | { |
29 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_VoiceAdded__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)); |
30 | 0 | } |
31 | | IPC::Message* |
32 | | Msg_VoiceRemoved(int32_t routingId) |
33 | 0 | { |
34 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_VoiceRemoved__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)); |
35 | 0 | } |
36 | | IPC::Message* |
37 | | Msg_SetDefaultVoice(int32_t routingId) |
38 | 0 | { |
39 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_SetDefaultVoice__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)); |
40 | 0 | } |
41 | | IPC::Message* |
42 | | Msg_IsSpeakingChanged(int32_t routingId) |
43 | 0 | { |
44 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_IsSpeakingChanged__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)); |
45 | 0 | } |
46 | | IPC::Message* |
47 | | Msg_NotifyVoicesChanged(int32_t routingId) |
48 | 0 | { |
49 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_NotifyVoicesChanged__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)); |
50 | 0 | } |
51 | | IPC::Message* |
52 | | Msg_InitialVoicesAndState(int32_t routingId) |
53 | 0 | { |
54 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_InitialVoicesAndState__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)); |
55 | 0 | } |
56 | | IPC::Message* |
57 | | Msg___delete__(int32_t routingId) |
58 | 0 | { |
59 | 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)); |
60 | 0 | } |
61 | | IPC::Message* |
62 | | Reply___delete__(int32_t routingId) |
63 | 0 | { |
64 | 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)); |
65 | 0 | } |
66 | | IPC::Message* |
67 | | Msg_PSpeechSynthesisRequestConstructor(int32_t routingId) |
68 | 0 | { |
69 | 0 | return IPC::Message::IPDLMessage(routingId, Msg_PSpeechSynthesisRequestConstructor__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)); |
70 | 0 | } |
71 | | IPC::Message* |
72 | | Reply_PSpeechSynthesisRequestConstructor(int32_t routingId) |
73 | 0 | { |
74 | 0 | return IPC::Message::IPDLMessage(routingId, Reply_PSpeechSynthesisRequestConstructor__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)); |
75 | 0 | } |
76 | | |
77 | | } // namespace PSpeechSynthesis |
78 | | } // namespace dom |
79 | | } // namespace mozilla |
80 | | |
81 | | //----------------------------------------------------------------------------- |
82 | | // Method definitions for the IPDL type |struct RemoteVoice| |
83 | | // |
84 | | namespace mozilla { |
85 | | namespace dom { |
86 | | auto RemoteVoice::operator==(const RemoteVoice& _o) const -> bool |
87 | 0 | { |
88 | 0 | if ((!((voiceURI()) == ((_o).voiceURI())))) { |
89 | 0 | return false; |
90 | 0 | } |
91 | 0 | if ((!((name()) == ((_o).name())))) { |
92 | 0 | return false; |
93 | 0 | } |
94 | 0 | if ((!((lang()) == ((_o).lang())))) { |
95 | 0 | return false; |
96 | 0 | } |
97 | 0 | if ((!((localService()) == ((_o).localService())))) { |
98 | 0 | return false; |
99 | 0 | } |
100 | 0 | if ((!((queued()) == ((_o).queued())))) { |
101 | 0 | return false; |
102 | 0 | } |
103 | 0 | return true; |
104 | 0 | } |
105 | | |
106 | | auto RemoteVoice::operator!=(const RemoteVoice& _o) const -> bool |
107 | 0 | { |
108 | 0 | return (!(operator==(_o))); |
109 | 0 | } |
110 | | |
111 | | } // namespace dom |
112 | | } // namespace mozilla |
113 | | |
114 | | namespace mozilla { |
115 | | namespace ipc { |
116 | | auto IPDLParamTraits<mozilla::dom::RemoteVoice>::Write( |
117 | | IPC::Message* aMsg, |
118 | | mozilla::ipc::IProtocol* aActor, |
119 | | const paramType& aVar) -> void |
120 | 0 | { |
121 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).voiceURI()); |
122 | 0 | // Sentinel = 'voiceURI' |
123 | 0 | (aMsg)->WriteSentinel(3433458652); |
124 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).name()); |
125 | 0 | // Sentinel = 'name' |
126 | 0 | (aMsg)->WriteSentinel(15034981); |
127 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).lang()); |
128 | 0 | // Sentinel = 'lang' |
129 | 0 | (aMsg)->WriteSentinel(3427407840); |
130 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).localService()); |
131 | 0 | // Sentinel = 'localService' |
132 | 0 | (aMsg)->WriteSentinel(1349544758); |
133 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).queued()); |
134 | 0 | // Sentinel = 'queued' |
135 | 0 | (aMsg)->WriteSentinel(2153284221); |
136 | 0 | } |
137 | | |
138 | | auto IPDLParamTraits<mozilla::dom::RemoteVoice>::Read( |
139 | | const IPC::Message* aMsg, |
140 | | PickleIterator* aIter, |
141 | | mozilla::ipc::IProtocol* aActor, |
142 | | paramType* aVar) -> bool |
143 | 0 | { |
144 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->voiceURI())))))) { |
145 | 0 | (aActor)->FatalError("Error deserializing 'voiceURI' (nsString) member of 'RemoteVoice'"); |
146 | 0 | return false; |
147 | 0 | } |
148 | 0 | // Sentinel = 'voiceURI' |
149 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3433458652)))) { |
150 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'voiceURI' (nsString) member of 'RemoteVoice'"); |
151 | 0 | return false; |
152 | 0 | } |
153 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->name())))))) { |
154 | 0 | (aActor)->FatalError("Error deserializing 'name' (nsString) member of 'RemoteVoice'"); |
155 | 0 | return false; |
156 | 0 | } |
157 | 0 | // Sentinel = 'name' |
158 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 15034981)))) { |
159 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'RemoteVoice'"); |
160 | 0 | return false; |
161 | 0 | } |
162 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->lang())))))) { |
163 | 0 | (aActor)->FatalError("Error deserializing 'lang' (nsString) member of 'RemoteVoice'"); |
164 | 0 | return false; |
165 | 0 | } |
166 | 0 | // Sentinel = 'lang' |
167 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 3427407840)))) { |
168 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'lang' (nsString) member of 'RemoteVoice'"); |
169 | 0 | return false; |
170 | 0 | } |
171 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->localService())))))) { |
172 | 0 | (aActor)->FatalError("Error deserializing 'localService' (bool) member of 'RemoteVoice'"); |
173 | 0 | return false; |
174 | 0 | } |
175 | 0 | // Sentinel = 'localService' |
176 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1349544758)))) { |
177 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'localService' (bool) member of 'RemoteVoice'"); |
178 | 0 | return false; |
179 | 0 | } |
180 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->queued())))))) { |
181 | 0 | (aActor)->FatalError("Error deserializing 'queued' (bool) member of 'RemoteVoice'"); |
182 | 0 | return false; |
183 | 0 | } |
184 | 0 | // Sentinel = 'queued' |
185 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 2153284221)))) { |
186 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'queued' (bool) member of 'RemoteVoice'"); |
187 | 0 | return false; |
188 | 0 | } |
189 | 0 | return true; |
190 | 0 | } |
191 | | |
192 | | } // namespace ipc |
193 | | } // namespace mozilla |