/work/obj-fuzz/ipc/ipdl/PScriptCache.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/loader/PScriptCache.h" |
10 | | |
11 | | namespace mozilla { |
12 | | namespace loader { |
13 | | namespace PScriptCache { |
14 | | |
15 | | nsresult |
16 | | CreateEndpoints( |
17 | | base::ProcessId aParentDestPid, |
18 | | base::ProcessId aChildDestPid, |
19 | | mozilla::ipc::Endpoint<mozilla::loader::PScriptCacheParent>* aParent, |
20 | | mozilla::ipc::Endpoint<mozilla::loader::PScriptCacheChild>* aChild) |
21 | 0 | { |
22 | 0 | return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, aParent, aChild); |
23 | 0 | } |
24 | | IPC::Message* |
25 | | Msg___delete__(int32_t routingId) |
26 | 0 | { |
27 | 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)); |
28 | 0 | } |
29 | | IPC::Message* |
30 | | Reply___delete__(int32_t routingId) |
31 | 0 | { |
32 | 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)); |
33 | 0 | } |
34 | | |
35 | | } // namespace PScriptCache |
36 | | } // namespace loader |
37 | | } // namespace mozilla |
38 | | |
39 | | //----------------------------------------------------------------------------- |
40 | | // Method definitions for the IPDL type |struct ScriptData| |
41 | | // |
42 | | namespace mozilla { |
43 | | namespace loader { |
44 | | auto ScriptData::operator==(const ScriptData& _o) const -> bool |
45 | 0 | { |
46 | 0 | if ((!((url()) == ((_o).url())))) { |
47 | 0 | return false; |
48 | 0 | } |
49 | 0 | if ((!((cachePath()) == ((_o).cachePath())))) { |
50 | 0 | return false; |
51 | 0 | } |
52 | 0 | if ((!((loadTime()) == ((_o).loadTime())))) { |
53 | 0 | return false; |
54 | 0 | } |
55 | 0 | if ((!((xdrData()) == ((_o).xdrData())))) { |
56 | 0 | return false; |
57 | 0 | } |
58 | 0 | return true; |
59 | 0 | } |
60 | | |
61 | | auto ScriptData::operator!=(const ScriptData& _o) const -> bool |
62 | 0 | { |
63 | 0 | return (!(operator==(_o))); |
64 | 0 | } |
65 | | |
66 | | } // namespace loader |
67 | | } // namespace mozilla |
68 | | |
69 | | namespace mozilla { |
70 | | namespace ipc { |
71 | | auto IPDLParamTraits<mozilla::loader::ScriptData>::Write( |
72 | | IPC::Message* aMsg, |
73 | | mozilla::ipc::IProtocol* aActor, |
74 | | const paramType& aVar) -> void |
75 | 0 | { |
76 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).url()); |
77 | 0 | // Sentinel = 'url' |
78 | 0 | (aMsg)->WriteSentinel(1453210600); |
79 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).cachePath()); |
80 | 0 | // Sentinel = 'cachePath' |
81 | 0 | (aMsg)->WriteSentinel(1354325578); |
82 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).loadTime()); |
83 | 0 | // Sentinel = 'loadTime' |
84 | 0 | (aMsg)->WriteSentinel(60950471); |
85 | 0 | WriteIPDLParam(aMsg, aActor, (aVar).xdrData()); |
86 | 0 | // Sentinel = 'xdrData' |
87 | 0 | (aMsg)->WriteSentinel(1812663329); |
88 | 0 | } |
89 | | |
90 | | auto IPDLParamTraits<mozilla::loader::ScriptData>::Read( |
91 | | const IPC::Message* aMsg, |
92 | | PickleIterator* aIter, |
93 | | mozilla::ipc::IProtocol* aActor, |
94 | | paramType* aVar) -> bool |
95 | 0 | { |
96 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->url())))))) { |
97 | 0 | (aActor)->FatalError("Error deserializing 'url' (nsCString) member of 'ScriptData'"); |
98 | 0 | return false; |
99 | 0 | } |
100 | 0 | // Sentinel = 'url' |
101 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1453210600)))) { |
102 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'url' (nsCString) member of 'ScriptData'"); |
103 | 0 | return false; |
104 | 0 | } |
105 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->cachePath())))))) { |
106 | 0 | (aActor)->FatalError("Error deserializing 'cachePath' (nsCString) member of 'ScriptData'"); |
107 | 0 | return false; |
108 | 0 | } |
109 | 0 | // Sentinel = 'cachePath' |
110 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1354325578)))) { |
111 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'cachePath' (nsCString) member of 'ScriptData'"); |
112 | 0 | return false; |
113 | 0 | } |
114 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->loadTime())))))) { |
115 | 0 | (aActor)->FatalError("Error deserializing 'loadTime' (TimeStamp) member of 'ScriptData'"); |
116 | 0 | return false; |
117 | 0 | } |
118 | 0 | // Sentinel = 'loadTime' |
119 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 60950471)))) { |
120 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'loadTime' (TimeStamp) member of 'ScriptData'"); |
121 | 0 | return false; |
122 | 0 | } |
123 | 0 | if ((!(ReadIPDLParam(aMsg, aIter, aActor, (&((aVar)->xdrData())))))) { |
124 | 0 | (aActor)->FatalError("Error deserializing 'xdrData' (uint8_t[]) member of 'ScriptData'"); |
125 | 0 | return false; |
126 | 0 | } |
127 | 0 | // Sentinel = 'xdrData' |
128 | 0 | if ((!((aMsg)->ReadSentinel(aIter, 1812663329)))) { |
129 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'xdrData' (uint8_t[]) member of 'ScriptData'"); |
130 | 0 | return false; |
131 | 0 | } |
132 | 0 | return true; |
133 | 0 | } |
134 | | |
135 | | } // namespace ipc |
136 | | } // namespace mozilla |