LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PCookieServiceChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 877 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 56 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/net/PCookieServiceChild.h"
       8             : 
       9             : #include "mozilla/net/PNeckoChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace net {
      16             : 
      17             : 
      18           0 : auto PCookieServiceChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PCookieServiceChild::PCookieServiceChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PCookieService::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PCookieServiceChild);
      27           0 : }
      28             : 
      29           0 : PCookieServiceChild::~PCookieServiceChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PCookieServiceChild);
      32           0 : }
      33             : 
      34           0 : auto PCookieServiceChild::Manager() const -> PNeckoChild*
      35             : {
      36           0 :     return static_cast<PNeckoChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PCookieServiceChild::SendGetCookieString(
      40             :         const URIParams& host,
      41             :         const bool& isForeign,
      42             :         const OriginAttributes& attrs,
      43             :         nsCString* result) -> bool
      44             : {
      45           0 :     IPC::Message* msg__ = PCookieService::Msg_GetCookieString(Id());
      46             : 
      47           0 :     Write(host, msg__);
      48             :     // Sentinel = 'host'
      49           0 :     (msg__)->WriteSentinel(4070301394);
      50           0 :     Write(isForeign, msg__);
      51             :     // Sentinel = 'isForeign'
      52           0 :     (msg__)->WriteSentinel(1880140857);
      53           0 :     Write(attrs, msg__);
      54             :     // Sentinel = 'attrs'
      55           0 :     (msg__)->WriteSentinel(3014987797);
      56             : 
      57           0 :     (msg__)->set_sync();
      58             : 
      59             : 
      60           0 :     Message reply__;
      61             : 
      62           0 :     if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) {
      63           0 :         mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      64             :     }
      65           0 :     AUTO_PROFILER_LABEL("PCookieService::Msg_GetCookieString", OTHER);
      66           0 :     PCookieService::Transition(PCookieService::Msg_GetCookieString__ID, (&(mState)));
      67             : 
      68             :     bool sendok__;
      69             :     {
      70             :         AutoProfilerTracing syncIPCTracer(
      71             :                 "IPC",
      72           0 :                 "PCookieService::Msg_GetCookieString");
      73           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
      74             :     }
      75           0 :     if ((!(sendok__))) {
      76           0 :         return false;
      77             :     }
      78             : 
      79           0 :     if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) {
      80           0 :         mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      81             :     }
      82             : 
      83           0 :     PickleIterator iter__(reply__);
      84             : 
      85           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
      86           0 :         FatalError("Error deserializing 'nsCString'");
      87           0 :         return false;
      88             :     }
      89             :     // Sentinel = 'result'
      90           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
      91           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
      92           0 :         return false;
      93             :     }
      94           0 :     (reply__).EndRead(iter__, (reply__).type());
      95             : 
      96           0 :     return true;
      97             : }
      98             : 
      99           0 : auto PCookieServiceChild::SendSetCookieString(
     100             :         const URIParams& host,
     101             :         const bool& isForeign,
     102             :         const nsCString& cookieString,
     103             :         const nsCString& serverTime,
     104             :         const OriginAttributes& attrs,
     105             :         const bool& aFromHttp) -> bool
     106             : {
     107           0 :     IPC::Message* msg__ = PCookieService::Msg_SetCookieString(Id());
     108             : 
     109           0 :     Write(host, msg__);
     110             :     // Sentinel = 'host'
     111           0 :     (msg__)->WriteSentinel(4070301394);
     112           0 :     Write(isForeign, msg__);
     113             :     // Sentinel = 'isForeign'
     114           0 :     (msg__)->WriteSentinel(1880140857);
     115           0 :     Write(cookieString, msg__);
     116             :     // Sentinel = 'cookieString'
     117           0 :     (msg__)->WriteSentinel(1411687009);
     118           0 :     Write(serverTime, msg__);
     119             :     // Sentinel = 'serverTime'
     120           0 :     (msg__)->WriteSentinel(2435914796);
     121           0 :     Write(attrs, msg__);
     122             :     // Sentinel = 'attrs'
     123           0 :     (msg__)->WriteSentinel(3014987797);
     124           0 :     Write(aFromHttp, msg__);
     125             :     // Sentinel = 'aFromHttp'
     126           0 :     (msg__)->WriteSentinel(1692552316);
     127             : 
     128             : 
     129             : 
     130             : 
     131           0 :     if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) {
     132           0 :         mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     133             :     }
     134           0 :     AUTO_PROFILER_LABEL("PCookieService::Msg_SetCookieString", OTHER);
     135           0 :     PCookieService::Transition(PCookieService::Msg_SetCookieString__ID, (&(mState)));
     136             : 
     137           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     138           0 :     return sendok__;
     139             : }
     140             : 
     141           0 : auto PCookieServiceChild::Send__delete__(PCookieServiceChild* actor) -> bool
     142             : {
     143           0 :     if ((!(actor))) {
     144           0 :         return false;
     145             :     }
     146             : 
     147           0 :     IPC::Message* msg__ = PCookieService::Msg___delete__((actor)->Id());
     148             : 
     149           0 :     (actor)->Write(actor, msg__, false);
     150             :     // Sentinel = 'actor'
     151           0 :     (msg__)->WriteSentinel(875202478);
     152             : 
     153             : 
     154             : 
     155           0 :     if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) {
     156           0 :         mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     157             :     }
     158           0 :     AUTO_PROFILER_LABEL("PCookieService::Msg___delete__", OTHER);
     159           0 :     PCookieService::Transition(PCookieService::Msg___delete____ID, (&((actor)->mState)));
     160             : 
     161           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     162             : 
     163           0 :     IProtocol* mgr = (actor)->Manager();
     164           0 :     (actor)->DestroySubtree(Deletion);
     165           0 :     (actor)->DeallocSubtree();
     166           0 :     (mgr)->RemoveManagee(PCookieServiceMsgStart, actor);
     167           0 :     return sendok__;
     168             : }
     169             : 
     170           0 : auto PCookieServiceChild::RemoveManagee(
     171             :         int32_t aProtocolId,
     172             :         ProtocolBase* aListener) -> void
     173             : {
     174           0 :     FatalError("unreached");
     175           0 :     return;
     176             : }
     177             : 
     178           0 : auto PCookieServiceChild::OnMessageReceived(const Message& msg__) -> PCookieServiceChild::Result
     179             : {
     180           0 :     switch ((msg__).type()) {
     181             :     case PCookieService::Reply___delete____ID:
     182             :         {
     183           0 :             return MsgProcessed;
     184             :         }
     185             :     default:
     186             :         {
     187           0 :             return MsgNotKnown;
     188             :         }
     189             :     }
     190             : }
     191             : 
     192           0 : auto PCookieServiceChild::OnMessageReceived(
     193             :         const Message& msg__,
     194             :         Message*& reply__) -> PCookieServiceChild::Result
     195             : {
     196           0 :     return MsgNotKnown;
     197             : }
     198             : 
     199           0 : auto PCookieServiceChild::OnCallReceived(
     200             :         const Message& msg__,
     201             :         Message*& reply__) -> PCookieServiceChild::Result
     202             : {
     203           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     204             :     return MsgNotKnown;
     205             : }
     206             : 
     207           0 : auto PCookieServiceChild::GetProtocolTypeId() -> int32_t
     208             : {
     209           0 :     return PCookieServiceMsgStart;
     210             : }
     211             : 
     212           0 : auto PCookieServiceChild::ProtocolName() const -> const char*
     213             : {
     214           0 :     return "PCookieServiceChild";
     215             : }
     216             : 
     217           0 : auto PCookieServiceChild::DestroySubtree(ActorDestroyReason why) -> void
     218             : {
     219             :     // Unregister from our manager.
     220           0 :     Unregister(Id());
     221             : 
     222             :     // Reject owning pending promises.
     223           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     224             : 
     225             :     // Finally, destroy "us".
     226           0 :     ActorDestroy(why);
     227           0 : }
     228             : 
     229           0 : auto PCookieServiceChild::DeallocSubtree() -> void
     230             : {
     231           0 : }
     232             : 
     233           0 : auto PCookieServiceChild::Write(
     234             :         const SystemPrincipalInfo& v__,
     235             :         Message* msg__) -> void
     236             : {
     237           0 : }
     238             : 
     239           0 : auto PCookieServiceChild::Read(
     240             :         SystemPrincipalInfo* v__,
     241             :         const Message* msg__,
     242             :         PickleIterator* iter__) -> bool
     243             : {
     244           0 :     return true;
     245             : }
     246             : 
     247           0 : auto PCookieServiceChild::Write(
     248             :         const nsTArray<PrincipalInfo>& v__,
     249             :         Message* msg__) -> void
     250             : {
     251           0 :     uint32_t length = (v__).Length();
     252           0 :     Write(length, msg__);
     253             :     // Sentinel = ('length', 'PrincipalInfo[]')
     254           0 :     (msg__)->WriteSentinel(1032188126);
     255             : 
     256           0 :     for (auto& elem : v__) {
     257           0 :         Write(elem, msg__);
     258             :         // Sentinel = 'PrincipalInfo[]'
     259           0 :         (msg__)->WriteSentinel(413380193);
     260             :     }
     261           0 : }
     262             : 
     263           0 : auto PCookieServiceChild::Read(
     264             :         nsTArray<PrincipalInfo>* v__,
     265             :         const Message* msg__,
     266             :         PickleIterator* iter__) -> bool
     267             : {
     268           0 :     nsTArray<PrincipalInfo> fa;
     269             :     uint32_t length;
     270           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     271           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
     272           0 :         return false;
     273             :     }
     274             :     // Sentinel = ('length', 'PrincipalInfo[]')
     275           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
     276           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
     277           0 :         return false;
     278             :     }
     279             : 
     280           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
     281           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     282           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     283           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
     284           0 :             return false;
     285             :         }
     286             :         // Sentinel = 'PrincipalInfo[]'
     287           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
     288           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
     289           0 :             return false;
     290             :         }
     291             :     }
     292           0 :     (v__)->SwapElements(fa);
     293           0 :     return true;
     294             : }
     295             : 
     296           0 : auto PCookieServiceChild::Write(
     297             :         const NullPrincipalURIParams& v__,
     298             :         Message* msg__) -> void
     299             : {
     300           0 : }
     301             : 
     302           0 : auto PCookieServiceChild::Read(
     303             :         NullPrincipalURIParams* v__,
     304             :         const Message* msg__,
     305             :         PickleIterator* iter__) -> bool
     306             : {
     307           0 :     return true;
     308             : }
     309             : 
     310           0 : auto PCookieServiceChild::Write(
     311             :         const IconURIParams& v__,
     312             :         Message* msg__) -> void
     313             : {
     314           0 :     Write((v__).uri(), msg__);
     315             :     // Sentinel = 'uri'
     316           0 :     (msg__)->WriteSentinel(1453210605);
     317           0 :     Write((v__).size(), msg__);
     318             :     // Sentinel = 'size'
     319           0 :     (msg__)->WriteSentinel(931048223);
     320           0 :     Write((v__).contentType(), msg__);
     321             :     // Sentinel = 'contentType'
     322           0 :     (msg__)->WriteSentinel(2092571716);
     323           0 :     Write((v__).fileName(), msg__);
     324             :     // Sentinel = 'fileName'
     325           0 :     (msg__)->WriteSentinel(3833449039);
     326           0 :     Write((v__).stockIcon(), msg__);
     327             :     // Sentinel = 'stockIcon'
     328           0 :     (msg__)->WriteSentinel(3601770784);
     329           0 :     Write((v__).iconSize(), msg__);
     330             :     // Sentinel = 'iconSize'
     331           0 :     (msg__)->WriteSentinel(2585310920);
     332           0 :     Write((v__).iconState(), msg__);
     333             :     // Sentinel = 'iconState'
     334           0 :     (msg__)->WriteSentinel(3444306207);
     335           0 : }
     336             : 
     337           0 : auto PCookieServiceChild::Read(
     338             :         IconURIParams* v__,
     339             :         const Message* msg__,
     340             :         PickleIterator* iter__) -> bool
     341             : {
     342           0 :     if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
     343           0 :         FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
     344           0 :         return false;
     345             :     }
     346             :     // Sentinel = 'uri'
     347           0 :     if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
     348           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
     349           0 :         return false;
     350             :     }
     351           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
     352           0 :         FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
     353           0 :         return false;
     354             :     }
     355             :     // Sentinel = 'size'
     356           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
     357           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
     358           0 :         return false;
     359             :     }
     360           0 :     if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
     361           0 :         FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
     362           0 :         return false;
     363             :     }
     364             :     // Sentinel = 'contentType'
     365           0 :     if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
     366           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
     367           0 :         return false;
     368             :     }
     369           0 :     if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
     370           0 :         FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
     371           0 :         return false;
     372             :     }
     373             :     // Sentinel = 'fileName'
     374           0 :     if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
     375           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
     376           0 :         return false;
     377             :     }
     378           0 :     if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
     379           0 :         FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
     380           0 :         return false;
     381             :     }
     382             :     // Sentinel = 'stockIcon'
     383           0 :     if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
     384           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
     385           0 :         return false;
     386             :     }
     387           0 :     if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
     388           0 :         FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
     389           0 :         return false;
     390             :     }
     391             :     // Sentinel = 'iconSize'
     392           0 :     if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
     393           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
     394           0 :         return false;
     395             :     }
     396           0 :     if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
     397           0 :         FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
     398           0 :         return false;
     399             :     }
     400             :     // Sentinel = 'iconState'
     401           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
     402           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
     403           0 :         return false;
     404             :     }
     405           0 :     return true;
     406             : }
     407             : 
     408           0 : auto PCookieServiceChild::Write(
     409             :         const ExpandedPrincipalInfo& v__,
     410             :         Message* msg__) -> void
     411             : {
     412           0 :     Write((v__).attrs(), msg__);
     413             :     // Sentinel = 'attrs'
     414           0 :     (msg__)->WriteSentinel(3014987797);
     415           0 :     Write((v__).whitelist(), msg__);
     416             :     // Sentinel = 'whitelist'
     417           0 :     (msg__)->WriteSentinel(3731637258);
     418           0 : }
     419             : 
     420           0 : auto PCookieServiceChild::Read(
     421             :         ExpandedPrincipalInfo* v__,
     422             :         const Message* msg__,
     423             :         PickleIterator* iter__) -> bool
     424             : {
     425           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     426           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     427           0 :         return false;
     428             :     }
     429             :     // Sentinel = 'attrs'
     430           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     431           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     432           0 :         return false;
     433             :     }
     434           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
     435           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     436           0 :         return false;
     437             :     }
     438             :     // Sentinel = 'whitelist'
     439           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
     440           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     441           0 :         return false;
     442             :     }
     443           0 :     return true;
     444             : }
     445             : 
     446           0 : auto PCookieServiceChild::Write(
     447             :         const StandardURLParams& v__,
     448             :         Message* msg__) -> void
     449             : {
     450           0 :     Write((v__).urlType(), msg__);
     451             :     // Sentinel = 'urlType'
     452           0 :     (msg__)->WriteSentinel(4149428228);
     453           0 :     Write((v__).port(), msg__);
     454             :     // Sentinel = 'port'
     455           0 :     (msg__)->WriteSentinel(3633211549);
     456           0 :     Write((v__).defaultPort(), msg__);
     457             :     // Sentinel = 'defaultPort'
     458           0 :     (msg__)->WriteSentinel(599318897);
     459           0 :     Write((v__).spec(), msg__);
     460             :     // Sentinel = 'spec'
     461           0 :     (msg__)->WriteSentinel(1630740541);
     462           0 :     Write((v__).scheme(), msg__);
     463             :     // Sentinel = 'scheme'
     464           0 :     (msg__)->WriteSentinel(3619238715);
     465           0 :     Write((v__).authority(), msg__);
     466             :     // Sentinel = 'authority'
     467           0 :     (msg__)->WriteSentinel(1669684878);
     468           0 :     Write((v__).username(), msg__);
     469             :     // Sentinel = 'username'
     470           0 :     (msg__)->WriteSentinel(689225024);
     471           0 :     Write((v__).password(), msg__);
     472             :     // Sentinel = 'password'
     473           0 :     (msg__)->WriteSentinel(2527534683);
     474           0 :     Write((v__).host(), msg__);
     475             :     // Sentinel = 'host'
     476           0 :     (msg__)->WriteSentinel(4070301394);
     477           0 :     Write((v__).path(), msg__);
     478             :     // Sentinel = 'path'
     479           0 :     (msg__)->WriteSentinel(913629401);
     480           0 :     Write((v__).filePath(), msg__);
     481             :     // Sentinel = 'filePath'
     482           0 :     (msg__)->WriteSentinel(4122896455);
     483           0 :     Write((v__).directory(), msg__);
     484             :     // Sentinel = 'directory'
     485           0 :     (msg__)->WriteSentinel(1201172472);
     486           0 :     Write((v__).baseName(), msg__);
     487             :     // Sentinel = 'baseName'
     488           0 :     (msg__)->WriteSentinel(2448877418);
     489           0 :     Write((v__).extension(), msg__);
     490             :     // Sentinel = 'extension'
     491           0 :     (msg__)->WriteSentinel(3211853542);
     492           0 :     Write((v__).query(), msg__);
     493             :     // Sentinel = 'query'
     494           0 :     (msg__)->WriteSentinel(4249802777);
     495           0 :     Write((v__).ref(), msg__);
     496             :     // Sentinel = 'ref'
     497           0 :     (msg__)->WriteSentinel(2626476732);
     498           0 :     Write((v__).originCharset(), msg__);
     499             :     // Sentinel = 'originCharset'
     500           0 :     (msg__)->WriteSentinel(1320725495);
     501           0 :     Write((v__).isMutable(), msg__);
     502             :     // Sentinel = 'isMutable'
     503           0 :     (msg__)->WriteSentinel(3552466783);
     504           0 :     Write((v__).supportsFileURL(), msg__);
     505             :     // Sentinel = 'supportsFileURL'
     506           0 :     (msg__)->WriteSentinel(1871785710);
     507           0 : }
     508             : 
     509           0 : auto PCookieServiceChild::Read(
     510             :         StandardURLParams* v__,
     511             :         const Message* msg__,
     512             :         PickleIterator* iter__) -> bool
     513             : {
     514           0 :     if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
     515           0 :         FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
     516           0 :         return false;
     517             :     }
     518             :     // Sentinel = 'urlType'
     519           0 :     if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
     520           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
     521           0 :         return false;
     522             :     }
     523           0 :     if ((!(Read((&((v__)->port())), msg__, iter__)))) {
     524           0 :         FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
     525           0 :         return false;
     526             :     }
     527             :     // Sentinel = 'port'
     528           0 :     if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
     529           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
     530           0 :         return false;
     531             :     }
     532           0 :     if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
     533           0 :         FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
     534           0 :         return false;
     535             :     }
     536             :     // Sentinel = 'defaultPort'
     537           0 :     if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
     538           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
     539           0 :         return false;
     540             :     }
     541           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
     542           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
     543           0 :         return false;
     544             :     }
     545             :     // Sentinel = 'spec'
     546           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
     547           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
     548           0 :         return false;
     549             :     }
     550           0 :     if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
     551           0 :         FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
     552           0 :         return false;
     553             :     }
     554             :     // Sentinel = 'scheme'
     555           0 :     if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
     556           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
     557           0 :         return false;
     558             :     }
     559           0 :     if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
     560           0 :         FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
     561           0 :         return false;
     562             :     }
     563             :     // Sentinel = 'authority'
     564           0 :     if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
     565           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
     566           0 :         return false;
     567             :     }
     568           0 :     if ((!(Read((&((v__)->username())), msg__, iter__)))) {
     569           0 :         FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
     570           0 :         return false;
     571             :     }
     572             :     // Sentinel = 'username'
     573           0 :     if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
     574           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
     575           0 :         return false;
     576             :     }
     577           0 :     if ((!(Read((&((v__)->password())), msg__, iter__)))) {
     578           0 :         FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
     579           0 :         return false;
     580             :     }
     581             :     // Sentinel = 'password'
     582           0 :     if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
     583           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
     584           0 :         return false;
     585             :     }
     586           0 :     if ((!(Read((&((v__)->host())), msg__, iter__)))) {
     587           0 :         FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
     588           0 :         return false;
     589             :     }
     590             :     // Sentinel = 'host'
     591           0 :     if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
     592           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
     593           0 :         return false;
     594             :     }
     595           0 :     if ((!(Read((&((v__)->path())), msg__, iter__)))) {
     596           0 :         FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
     597           0 :         return false;
     598             :     }
     599             :     // Sentinel = 'path'
     600           0 :     if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
     601           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
     602           0 :         return false;
     603             :     }
     604           0 :     if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
     605           0 :         FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
     606           0 :         return false;
     607             :     }
     608             :     // Sentinel = 'filePath'
     609           0 :     if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
     610           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
     611           0 :         return false;
     612             :     }
     613           0 :     if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
     614           0 :         FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
     615           0 :         return false;
     616             :     }
     617             :     // Sentinel = 'directory'
     618           0 :     if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
     619           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
     620           0 :         return false;
     621             :     }
     622           0 :     if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
     623           0 :         FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
     624           0 :         return false;
     625             :     }
     626             :     // Sentinel = 'baseName'
     627           0 :     if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
     628           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
     629           0 :         return false;
     630             :     }
     631           0 :     if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
     632           0 :         FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
     633           0 :         return false;
     634             :     }
     635             :     // Sentinel = 'extension'
     636           0 :     if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
     637           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
     638           0 :         return false;
     639             :     }
     640           0 :     if ((!(Read((&((v__)->query())), msg__, iter__)))) {
     641           0 :         FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
     642           0 :         return false;
     643             :     }
     644             :     // Sentinel = 'query'
     645           0 :     if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
     646           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
     647           0 :         return false;
     648             :     }
     649           0 :     if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
     650           0 :         FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
     651           0 :         return false;
     652             :     }
     653             :     // Sentinel = 'ref'
     654           0 :     if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
     655           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
     656           0 :         return false;
     657             :     }
     658           0 :     if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
     659           0 :         FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
     660           0 :         return false;
     661             :     }
     662             :     // Sentinel = 'originCharset'
     663           0 :     if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
     664           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
     665           0 :         return false;
     666             :     }
     667           0 :     if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
     668           0 :         FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
     669           0 :         return false;
     670             :     }
     671             :     // Sentinel = 'isMutable'
     672           0 :     if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
     673           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
     674           0 :         return false;
     675             :     }
     676           0 :     if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
     677           0 :         FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
     678           0 :         return false;
     679             :     }
     680             :     // Sentinel = 'supportsFileURL'
     681           0 :     if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
     682           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
     683           0 :         return false;
     684             :     }
     685           0 :     return true;
     686             : }
     687             : 
     688           0 : auto PCookieServiceChild::Write(
     689             :         const SimpleNestedURIParams& v__,
     690             :         Message* msg__) -> void
     691             : {
     692           0 :     Write((v__).simpleParams(), msg__);
     693             :     // Sentinel = 'simpleParams'
     694           0 :     (msg__)->WriteSentinel(3404291700);
     695           0 :     Write((v__).innerURI(), msg__);
     696             :     // Sentinel = 'innerURI'
     697           0 :     (msg__)->WriteSentinel(2573245334);
     698           0 : }
     699             : 
     700           0 : auto PCookieServiceChild::Read(
     701             :         SimpleNestedURIParams* v__,
     702             :         const Message* msg__,
     703             :         PickleIterator* iter__) -> bool
     704             : {
     705           0 :     if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
     706           0 :         FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
     707           0 :         return false;
     708             :     }
     709             :     // Sentinel = 'simpleParams'
     710           0 :     if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
     711           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
     712           0 :         return false;
     713             :     }
     714           0 :     if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
     715           0 :         FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
     716           0 :         return false;
     717             :     }
     718             :     // Sentinel = 'innerURI'
     719           0 :     if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
     720           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
     721           0 :         return false;
     722             :     }
     723           0 :     return true;
     724             : }
     725             : 
     726           0 : auto PCookieServiceChild::Write(
     727             :         const OptionalURIParams& v__,
     728             :         Message* msg__) -> void
     729             : {
     730             :     typedef OptionalURIParams type__;
     731           0 :     Write(int((v__).type()), msg__);
     732             :     // Sentinel = 'OptionalURIParams'
     733           0 :     (msg__)->WriteSentinel(1977079525);
     734             : 
     735           0 :     switch ((v__).type()) {
     736             :     case type__::Tvoid_t:
     737             :         {
     738           0 :             Write((v__).get_void_t(), msg__);
     739             :             // Sentinel = 'Tvoid_t'
     740           0 :             (msg__)->WriteSentinel(3041273328);
     741           0 :             return;
     742             :         }
     743             :     case type__::TURIParams:
     744             :         {
     745           0 :             Write((v__).get_URIParams(), msg__);
     746             :             // Sentinel = 'TURIParams'
     747           0 :             (msg__)->WriteSentinel(1132652062);
     748           0 :             return;
     749             :         }
     750             :     default:
     751             :         {
     752           0 :             FatalError("unknown union type");
     753           0 :             return;
     754             :         }
     755             :     }
     756             : }
     757             : 
     758           0 : auto PCookieServiceChild::Read(
     759             :         OptionalURIParams* v__,
     760             :         const Message* msg__,
     761             :         PickleIterator* iter__) -> bool
     762             : {
     763             :     typedef OptionalURIParams type__;
     764             :     int type;
     765           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     766           0 :         mozilla::ipc::UnionTypeReadError("OptionalURIParams");
     767           0 :         return false;
     768             :     }
     769             :     // Sentinel = 'OptionalURIParams'
     770           0 :     if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
     771           0 :         mozilla::ipc::SentinelReadError("OptionalURIParams");
     772           0 :         return false;
     773             :     }
     774             : 
     775           0 :     switch (type) {
     776             :     case type__::Tvoid_t:
     777             :         {
     778             :             void_t tmp = void_t();
     779           0 :             (*(v__)) = tmp;
     780           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     781           0 :                 FatalError("Error deserializing Union type");
     782           0 :                 return false;
     783             :             }
     784             :             // Sentinel = 'Tvoid_t'
     785           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     786           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     787           0 :                 return false;
     788             :             }
     789           0 :             return true;
     790             :         }
     791             :     case type__::TURIParams:
     792             :         {
     793           0 :             URIParams tmp = URIParams();
     794           0 :             (*(v__)) = tmp;
     795           0 :             if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
     796           0 :                 FatalError("Error deserializing Union type");
     797           0 :                 return false;
     798             :             }
     799             :             // Sentinel = 'TURIParams'
     800           0 :             if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
     801           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     802           0 :                 return false;
     803             :             }
     804           0 :             return true;
     805             :         }
     806             :     default:
     807             :         {
     808           0 :             FatalError("unknown union type");
     809           0 :             return false;
     810             :         }
     811             :     }
     812             : }
     813             : 
     814           0 : auto PCookieServiceChild::Write(
     815             :         const PrincipalInfo& v__,
     816             :         Message* msg__) -> void
     817             : {
     818             :     typedef PrincipalInfo type__;
     819           0 :     Write(int((v__).type()), msg__);
     820             :     // Sentinel = 'PrincipalInfo'
     821           0 :     (msg__)->WriteSentinel(4194518819);
     822             : 
     823           0 :     switch ((v__).type()) {
     824             :     case type__::TContentPrincipalInfo:
     825             :         {
     826           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
     827             :             // Sentinel = 'TContentPrincipalInfo'
     828           0 :             (msg__)->WriteSentinel(3677342258);
     829           0 :             return;
     830             :         }
     831             :     case type__::TSystemPrincipalInfo:
     832             :         {
     833           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
     834             :             // Sentinel = 'TSystemPrincipalInfo'
     835           0 :             (msg__)->WriteSentinel(3590603679);
     836           0 :             return;
     837             :         }
     838             :     case type__::TNullPrincipalInfo:
     839             :         {
     840           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
     841             :             // Sentinel = 'TNullPrincipalInfo'
     842           0 :             (msg__)->WriteSentinel(3477774965);
     843           0 :             return;
     844             :         }
     845             :     case type__::TExpandedPrincipalInfo:
     846             :         {
     847           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
     848             :             // Sentinel = 'TExpandedPrincipalInfo'
     849           0 :             (msg__)->WriteSentinel(589324917);
     850           0 :             return;
     851             :         }
     852             :     default:
     853             :         {
     854           0 :             FatalError("unknown union type");
     855           0 :             return;
     856             :         }
     857             :     }
     858             : }
     859             : 
     860           0 : auto PCookieServiceChild::Read(
     861             :         PrincipalInfo* v__,
     862             :         const Message* msg__,
     863             :         PickleIterator* iter__) -> bool
     864             : {
     865             :     typedef PrincipalInfo type__;
     866             :     int type;
     867           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     868           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
     869           0 :         return false;
     870             :     }
     871             :     // Sentinel = 'PrincipalInfo'
     872           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
     873           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
     874           0 :         return false;
     875             :     }
     876             : 
     877           0 :     switch (type) {
     878             :     case type__::TContentPrincipalInfo:
     879             :         {
     880           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
     881           0 :             (*(v__)) = tmp;
     882           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
     883           0 :                 FatalError("Error deserializing Union type");
     884           0 :                 return false;
     885             :             }
     886             :             // Sentinel = 'TContentPrincipalInfo'
     887           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
     888           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     889           0 :                 return false;
     890             :             }
     891           0 :             return true;
     892             :         }
     893             :     case type__::TSystemPrincipalInfo:
     894             :         {
     895           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
     896           0 :             (*(v__)) = tmp;
     897           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
     898           0 :                 FatalError("Error deserializing Union type");
     899           0 :                 return false;
     900             :             }
     901             :             // Sentinel = 'TSystemPrincipalInfo'
     902           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
     903           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     904           0 :                 return false;
     905             :             }
     906           0 :             return true;
     907             :         }
     908             :     case type__::TNullPrincipalInfo:
     909             :         {
     910           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
     911           0 :             (*(v__)) = tmp;
     912           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
     913           0 :                 FatalError("Error deserializing Union type");
     914           0 :                 return false;
     915             :             }
     916             :             // Sentinel = 'TNullPrincipalInfo'
     917           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
     918           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     919           0 :                 return false;
     920             :             }
     921           0 :             return true;
     922             :         }
     923             :     case type__::TExpandedPrincipalInfo:
     924             :         {
     925           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
     926           0 :             (*(v__)) = tmp;
     927           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
     928           0 :                 FatalError("Error deserializing Union type");
     929           0 :                 return false;
     930             :             }
     931             :             // Sentinel = 'TExpandedPrincipalInfo'
     932           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
     933           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     934           0 :                 return false;
     935             :             }
     936           0 :             return true;
     937             :         }
     938             :     default:
     939             :         {
     940           0 :             FatalError("unknown union type");
     941           0 :             return false;
     942             :         }
     943             :     }
     944             : }
     945             : 
     946           0 : auto PCookieServiceChild::Write(
     947             :         const OptionalPrincipalInfo& v__,
     948             :         Message* msg__) -> void
     949             : {
     950             :     typedef OptionalPrincipalInfo type__;
     951           0 :     Write(int((v__).type()), msg__);
     952             :     // Sentinel = 'OptionalPrincipalInfo'
     953           0 :     (msg__)->WriteSentinel(3041452007);
     954             : 
     955           0 :     switch ((v__).type()) {
     956             :     case type__::Tvoid_t:
     957             :         {
     958           0 :             Write((v__).get_void_t(), msg__);
     959             :             // Sentinel = 'Tvoid_t'
     960           0 :             (msg__)->WriteSentinel(3041273328);
     961           0 :             return;
     962             :         }
     963             :     case type__::TPrincipalInfo:
     964             :         {
     965           0 :             Write((v__).get_PrincipalInfo(), msg__);
     966             :             // Sentinel = 'TPrincipalInfo'
     967           0 :             (msg__)->WriteSentinel(1396743580);
     968           0 :             return;
     969             :         }
     970             :     default:
     971             :         {
     972           0 :             FatalError("unknown union type");
     973           0 :             return;
     974             :         }
     975             :     }
     976             : }
     977             : 
     978           0 : auto PCookieServiceChild::Read(
     979             :         OptionalPrincipalInfo* v__,
     980             :         const Message* msg__,
     981             :         PickleIterator* iter__) -> bool
     982             : {
     983             :     typedef OptionalPrincipalInfo type__;
     984             :     int type;
     985           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     986           0 :         mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
     987           0 :         return false;
     988             :     }
     989             :     // Sentinel = 'OptionalPrincipalInfo'
     990           0 :     if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
     991           0 :         mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
     992           0 :         return false;
     993             :     }
     994             : 
     995           0 :     switch (type) {
     996             :     case type__::Tvoid_t:
     997             :         {
     998             :             void_t tmp = void_t();
     999           0 :             (*(v__)) = tmp;
    1000           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1001           0 :                 FatalError("Error deserializing Union type");
    1002           0 :                 return false;
    1003             :             }
    1004             :             // Sentinel = 'Tvoid_t'
    1005           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1006           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1007           0 :                 return false;
    1008             :             }
    1009           0 :             return true;
    1010             :         }
    1011             :     case type__::TPrincipalInfo:
    1012             :         {
    1013           0 :             PrincipalInfo tmp = PrincipalInfo();
    1014           0 :             (*(v__)) = tmp;
    1015           0 :             if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
    1016           0 :                 FatalError("Error deserializing Union type");
    1017           0 :                 return false;
    1018             :             }
    1019             :             // Sentinel = 'TPrincipalInfo'
    1020           0 :             if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
    1021           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1022           0 :                 return false;
    1023             :             }
    1024           0 :             return true;
    1025             :         }
    1026             :     default:
    1027             :         {
    1028           0 :             FatalError("unknown union type");
    1029           0 :             return false;
    1030             :         }
    1031             :     }
    1032             : }
    1033             : 
    1034           0 : auto PCookieServiceChild::Write(
    1035             :         const ContentPrincipalInfoOriginNoSuffix& v__,
    1036             :         Message* msg__) -> void
    1037             : {
    1038             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
    1039           0 :     Write(int((v__).type()), msg__);
    1040             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
    1041           0 :     (msg__)->WriteSentinel(2442066713);
    1042             : 
    1043           0 :     switch ((v__).type()) {
    1044             :     case type__::TnsCString:
    1045             :         {
    1046           0 :             Write((v__).get_nsCString(), msg__);
    1047             :             // Sentinel = 'TnsCString'
    1048           0 :             (msg__)->WriteSentinel(2427411293);
    1049           0 :             return;
    1050             :         }
    1051             :     case type__::Tvoid_t:
    1052             :         {
    1053           0 :             Write((v__).get_void_t(), msg__);
    1054             :             // Sentinel = 'Tvoid_t'
    1055           0 :             (msg__)->WriteSentinel(3041273328);
    1056           0 :             return;
    1057             :         }
    1058             :     default:
    1059             :         {
    1060           0 :             FatalError("unknown union type");
    1061           0 :             return;
    1062             :         }
    1063             :     }
    1064             : }
    1065             : 
    1066           0 : auto PCookieServiceChild::Read(
    1067             :         ContentPrincipalInfoOriginNoSuffix* v__,
    1068             :         const Message* msg__,
    1069             :         PickleIterator* iter__) -> bool
    1070             : {
    1071             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
    1072             :     int type;
    1073           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1074           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
    1075           0 :         return false;
    1076             :     }
    1077             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
    1078           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
    1079           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
    1080           0 :         return false;
    1081             :     }
    1082             : 
    1083           0 :     switch (type) {
    1084             :     case type__::TnsCString:
    1085             :         {
    1086           0 :             nsCString tmp = nsCString();
    1087           0 :             (*(v__)) = tmp;
    1088           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
    1089           0 :                 FatalError("Error deserializing Union type");
    1090           0 :                 return false;
    1091             :             }
    1092             :             // Sentinel = 'TnsCString'
    1093           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
    1094           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1095           0 :                 return false;
    1096             :             }
    1097           0 :             return true;
    1098             :         }
    1099             :     case type__::Tvoid_t:
    1100             :         {
    1101             :             void_t tmp = void_t();
    1102           0 :             (*(v__)) = tmp;
    1103           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1104           0 :                 FatalError("Error deserializing Union type");
    1105           0 :                 return false;
    1106             :             }
    1107             :             // Sentinel = 'Tvoid_t'
    1108           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1109           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1110           0 :                 return false;
    1111             :             }
    1112           0 :             return true;
    1113             :         }
    1114             :     default:
    1115             :         {
    1116           0 :             FatalError("unknown union type");
    1117           0 :             return false;
    1118             :         }
    1119             :     }
    1120             : }
    1121             : 
    1122           0 : auto PCookieServiceChild::Write(
    1123             :         const JARURIParams& v__,
    1124             :         Message* msg__) -> void
    1125             : {
    1126           0 :     Write((v__).jarFile(), msg__);
    1127             :     // Sentinel = 'jarFile'
    1128           0 :     (msg__)->WriteSentinel(1572070078);
    1129           0 :     Write((v__).jarEntry(), msg__);
    1130             :     // Sentinel = 'jarEntry'
    1131           0 :     (msg__)->WriteSentinel(941016033);
    1132           0 :     Write((v__).charset(), msg__);
    1133             :     // Sentinel = 'charset'
    1134           0 :     (msg__)->WriteSentinel(1551550891);
    1135           0 : }
    1136             : 
    1137           0 : auto PCookieServiceChild::Read(
    1138             :         JARURIParams* v__,
    1139             :         const Message* msg__,
    1140             :         PickleIterator* iter__) -> bool
    1141             : {
    1142           0 :     if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
    1143           0 :         FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
    1144           0 :         return false;
    1145             :     }
    1146             :     // Sentinel = 'jarFile'
    1147           0 :     if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
    1148           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
    1149           0 :         return false;
    1150             :     }
    1151           0 :     if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
    1152           0 :         FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
    1153           0 :         return false;
    1154             :     }
    1155             :     // Sentinel = 'jarEntry'
    1156           0 :     if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
    1157           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
    1158           0 :         return false;
    1159             :     }
    1160           0 :     if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
    1161           0 :         FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
    1162           0 :         return false;
    1163             :     }
    1164             :     // Sentinel = 'charset'
    1165           0 :     if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
    1166           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
    1167           0 :         return false;
    1168             :     }
    1169           0 :     return true;
    1170             : }
    1171             : 
    1172           0 : auto PCookieServiceChild::Write(
    1173             :         const ContentPrincipalInfo& v__,
    1174             :         Message* msg__) -> void
    1175             : {
    1176           0 :     Write((v__).attrs(), msg__);
    1177             :     // Sentinel = 'attrs'
    1178           0 :     (msg__)->WriteSentinel(3014987797);
    1179           0 :     Write((v__).originNoSuffix(), msg__);
    1180             :     // Sentinel = 'originNoSuffix'
    1181           0 :     (msg__)->WriteSentinel(2833071422);
    1182           0 :     Write((v__).spec(), msg__);
    1183             :     // Sentinel = 'spec'
    1184           0 :     (msg__)->WriteSentinel(1630740541);
    1185           0 : }
    1186             : 
    1187           0 : auto PCookieServiceChild::Read(
    1188             :         ContentPrincipalInfo* v__,
    1189             :         const Message* msg__,
    1190             :         PickleIterator* iter__) -> bool
    1191             : {
    1192           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1193           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    1194           0 :         return false;
    1195             :     }
    1196             :     // Sentinel = 'attrs'
    1197           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1198           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    1199           0 :         return false;
    1200             :     }
    1201           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
    1202           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    1203           0 :         return false;
    1204             :     }
    1205             :     // Sentinel = 'originNoSuffix'
    1206           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
    1207           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    1208           0 :         return false;
    1209             :     }
    1210           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1211           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    1212           0 :         return false;
    1213             :     }
    1214             :     // Sentinel = 'spec'
    1215           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1216           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    1217           0 :         return false;
    1218             :     }
    1219           0 :     return true;
    1220             : }
    1221             : 
    1222           0 : auto PCookieServiceChild::Write(
    1223             :         const JSURIParams& v__,
    1224             :         Message* msg__) -> void
    1225             : {
    1226           0 :     Write((v__).simpleParams(), msg__);
    1227             :     // Sentinel = 'simpleParams'
    1228           0 :     (msg__)->WriteSentinel(3404291700);
    1229           0 :     Write((v__).baseURI(), msg__);
    1230             :     // Sentinel = 'baseURI'
    1231           0 :     (msg__)->WriteSentinel(1836705256);
    1232           0 : }
    1233             : 
    1234           0 : auto PCookieServiceChild::Read(
    1235             :         JSURIParams* v__,
    1236             :         const Message* msg__,
    1237             :         PickleIterator* iter__) -> bool
    1238             : {
    1239           0 :     if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
    1240           0 :         FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
    1241           0 :         return false;
    1242             :     }
    1243             :     // Sentinel = 'simpleParams'
    1244           0 :     if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
    1245           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
    1246           0 :         return false;
    1247             :     }
    1248           0 :     if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
    1249           0 :         FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
    1250           0 :         return false;
    1251             :     }
    1252             :     // Sentinel = 'baseURI'
    1253           0 :     if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
    1254           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
    1255           0 :         return false;
    1256             :     }
    1257           0 :     return true;
    1258             : }
    1259             : 
    1260           0 : auto PCookieServiceChild::Write(
    1261             :         const NullPrincipalInfo& v__,
    1262             :         Message* msg__) -> void
    1263             : {
    1264           0 :     Write((v__).attrs(), msg__);
    1265             :     // Sentinel = 'attrs'
    1266           0 :     (msg__)->WriteSentinel(3014987797);
    1267           0 :     Write((v__).spec(), msg__);
    1268             :     // Sentinel = 'spec'
    1269           0 :     (msg__)->WriteSentinel(1630740541);
    1270           0 : }
    1271             : 
    1272           0 : auto PCookieServiceChild::Read(
    1273             :         NullPrincipalInfo* v__,
    1274             :         const Message* msg__,
    1275             :         PickleIterator* iter__) -> bool
    1276             : {
    1277           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1278           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1279           0 :         return false;
    1280             :     }
    1281             :     // Sentinel = 'attrs'
    1282           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1283           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1284           0 :         return false;
    1285             :     }
    1286           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1287           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1288           0 :         return false;
    1289             :     }
    1290             :     // Sentinel = 'spec'
    1291           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1292           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1293           0 :         return false;
    1294             :     }
    1295           0 :     return true;
    1296             : }
    1297             : 
    1298           0 : auto PCookieServiceChild::Write(
    1299             :         const StandardURLSegment& v__,
    1300             :         Message* msg__) -> void
    1301             : {
    1302           0 :     Write((v__).position(), msg__);
    1303             :     // Sentinel = 'position'
    1304           0 :     (msg__)->WriteSentinel(50847225);
    1305           0 :     Write((v__).length(), msg__);
    1306             :     // Sentinel = 'length'
    1307           0 :     (msg__)->WriteSentinel(1726618354);
    1308           0 : }
    1309             : 
    1310           0 : auto PCookieServiceChild::Read(
    1311             :         StandardURLSegment* v__,
    1312             :         const Message* msg__,
    1313             :         PickleIterator* iter__) -> bool
    1314             : {
    1315           0 :     if ((!(Read((&((v__)->position())), msg__, iter__)))) {
    1316           0 :         FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
    1317           0 :         return false;
    1318             :     }
    1319             :     // Sentinel = 'position'
    1320           0 :     if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
    1321           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
    1322           0 :         return false;
    1323             :     }
    1324           0 :     if ((!(Read((&((v__)->length())), msg__, iter__)))) {
    1325           0 :         FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
    1326           0 :         return false;
    1327             :     }
    1328             :     // Sentinel = 'length'
    1329           0 :     if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
    1330           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
    1331           0 :         return false;
    1332             :     }
    1333           0 :     return true;
    1334             : }
    1335             : 
    1336           0 : auto PCookieServiceChild::Write(
    1337             :         const URIParams& v__,
    1338             :         Message* msg__) -> void
    1339             : {
    1340             :     typedef URIParams type__;
    1341           0 :     Write(int((v__).type()), msg__);
    1342             :     // Sentinel = 'URIParams'
    1343           0 :     (msg__)->WriteSentinel(1039516337);
    1344             : 
    1345           0 :     switch ((v__).type()) {
    1346             :     case type__::TSimpleURIParams:
    1347             :         {
    1348           0 :             Write((v__).get_SimpleURIParams(), msg__);
    1349             :             // Sentinel = 'TSimpleURIParams'
    1350           0 :             (msg__)->WriteSentinel(4028607586);
    1351           0 :             return;
    1352             :         }
    1353             :     case type__::TStandardURLParams:
    1354             :         {
    1355           0 :             Write((v__).get_StandardURLParams(), msg__);
    1356             :             // Sentinel = 'TStandardURLParams'
    1357           0 :             (msg__)->WriteSentinel(248174578);
    1358           0 :             return;
    1359             :         }
    1360             :     case type__::TJARURIParams:
    1361             :         {
    1362           0 :             Write((v__).get_JARURIParams(), msg__);
    1363             :             // Sentinel = 'TJARURIParams'
    1364           0 :             (msg__)->WriteSentinel(3404434792);
    1365           0 :             return;
    1366             :         }
    1367             :     case type__::TIconURIParams:
    1368             :         {
    1369           0 :             Write((v__).get_IconURIParams(), msg__);
    1370             :             // Sentinel = 'TIconURIParams'
    1371           0 :             (msg__)->WriteSentinel(1824279023);
    1372           0 :             return;
    1373             :         }
    1374             :     case type__::TNullPrincipalURIParams:
    1375             :         {
    1376           0 :             Write((v__).get_NullPrincipalURIParams(), msg__);
    1377             :             // Sentinel = 'TNullPrincipalURIParams'
    1378           0 :             (msg__)->WriteSentinel(216801182);
    1379           0 :             return;
    1380             :         }
    1381             :     case type__::TJSURIParams:
    1382             :         {
    1383           0 :             Write((v__).get_JSURIParams(), msg__);
    1384             :             // Sentinel = 'TJSURIParams'
    1385           0 :             (msg__)->WriteSentinel(32222119);
    1386           0 :             return;
    1387             :         }
    1388             :     case type__::TSimpleNestedURIParams:
    1389             :         {
    1390           0 :             Write((v__).get_SimpleNestedURIParams(), msg__);
    1391             :             // Sentinel = 'TSimpleNestedURIParams'
    1392           0 :             (msg__)->WriteSentinel(3192238307);
    1393           0 :             return;
    1394             :         }
    1395             :     case type__::THostObjectURIParams:
    1396             :         {
    1397           0 :             Write((v__).get_HostObjectURIParams(), msg__);
    1398             :             // Sentinel = 'THostObjectURIParams'
    1399           0 :             (msg__)->WriteSentinel(1307971301);
    1400           0 :             return;
    1401             :         }
    1402             :     default:
    1403             :         {
    1404           0 :             FatalError("unknown union type");
    1405           0 :             return;
    1406             :         }
    1407             :     }
    1408             : }
    1409             : 
    1410           0 : auto PCookieServiceChild::Read(
    1411             :         URIParams* v__,
    1412             :         const Message* msg__,
    1413             :         PickleIterator* iter__) -> bool
    1414             : {
    1415             :     typedef URIParams type__;
    1416             :     int type;
    1417           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1418           0 :         mozilla::ipc::UnionTypeReadError("URIParams");
    1419           0 :         return false;
    1420             :     }
    1421             :     // Sentinel = 'URIParams'
    1422           0 :     if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
    1423           0 :         mozilla::ipc::SentinelReadError("URIParams");
    1424           0 :         return false;
    1425             :     }
    1426             : 
    1427           0 :     switch (type) {
    1428             :     case type__::TSimpleURIParams:
    1429             :         {
    1430           0 :             SimpleURIParams tmp = SimpleURIParams();
    1431           0 :             (*(v__)) = tmp;
    1432           0 :             if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
    1433           0 :                 FatalError("Error deserializing Union type");
    1434           0 :                 return false;
    1435             :             }
    1436             :             // Sentinel = 'TSimpleURIParams'
    1437           0 :             if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
    1438           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1439           0 :                 return false;
    1440             :             }
    1441           0 :             return true;
    1442             :         }
    1443             :     case type__::TStandardURLParams:
    1444             :         {
    1445           0 :             StandardURLParams tmp = StandardURLParams();
    1446           0 :             (*(v__)) = tmp;
    1447           0 :             if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
    1448           0 :                 FatalError("Error deserializing Union type");
    1449           0 :                 return false;
    1450             :             }
    1451             :             // Sentinel = 'TStandardURLParams'
    1452           0 :             if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
    1453           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1454           0 :                 return false;
    1455             :             }
    1456           0 :             return true;
    1457             :         }
    1458             :     case type__::TJARURIParams:
    1459             :         {
    1460           0 :             JARURIParams tmp = JARURIParams();
    1461           0 :             (*(v__)) = tmp;
    1462           0 :             if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
    1463           0 :                 FatalError("Error deserializing Union type");
    1464           0 :                 return false;
    1465             :             }
    1466             :             // Sentinel = 'TJARURIParams'
    1467           0 :             if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
    1468           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1469           0 :                 return false;
    1470             :             }
    1471           0 :             return true;
    1472             :         }
    1473             :     case type__::TIconURIParams:
    1474             :         {
    1475           0 :             IconURIParams tmp = IconURIParams();
    1476           0 :             (*(v__)) = tmp;
    1477           0 :             if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
    1478           0 :                 FatalError("Error deserializing Union type");
    1479           0 :                 return false;
    1480             :             }
    1481             :             // Sentinel = 'TIconURIParams'
    1482           0 :             if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
    1483           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1484           0 :                 return false;
    1485             :             }
    1486           0 :             return true;
    1487             :         }
    1488             :     case type__::TNullPrincipalURIParams:
    1489             :         {
    1490           0 :             NullPrincipalURIParams tmp = NullPrincipalURIParams();
    1491           0 :             (*(v__)) = tmp;
    1492           0 :             if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
    1493           0 :                 FatalError("Error deserializing Union type");
    1494           0 :                 return false;
    1495             :             }
    1496             :             // Sentinel = 'TNullPrincipalURIParams'
    1497           0 :             if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
    1498           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1499           0 :                 return false;
    1500             :             }
    1501           0 :             return true;
    1502             :         }
    1503             :     case type__::TJSURIParams:
    1504             :         {
    1505           0 :             JSURIParams tmp = JSURIParams();
    1506           0 :             (*(v__)) = tmp;
    1507           0 :             if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
    1508           0 :                 FatalError("Error deserializing Union type");
    1509           0 :                 return false;
    1510             :             }
    1511             :             // Sentinel = 'TJSURIParams'
    1512           0 :             if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
    1513           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1514           0 :                 return false;
    1515             :             }
    1516           0 :             return true;
    1517             :         }
    1518             :     case type__::TSimpleNestedURIParams:
    1519             :         {
    1520           0 :             SimpleNestedURIParams tmp = SimpleNestedURIParams();
    1521           0 :             (*(v__)) = tmp;
    1522           0 :             if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
    1523           0 :                 FatalError("Error deserializing Union type");
    1524           0 :                 return false;
    1525             :             }
    1526             :             // Sentinel = 'TSimpleNestedURIParams'
    1527           0 :             if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
    1528           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1529           0 :                 return false;
    1530             :             }
    1531           0 :             return true;
    1532             :         }
    1533             :     case type__::THostObjectURIParams:
    1534             :         {
    1535           0 :             HostObjectURIParams tmp = HostObjectURIParams();
    1536           0 :             (*(v__)) = tmp;
    1537           0 :             if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
    1538           0 :                 FatalError("Error deserializing Union type");
    1539           0 :                 return false;
    1540             :             }
    1541             :             // Sentinel = 'THostObjectURIParams'
    1542           0 :             if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
    1543           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1544           0 :                 return false;
    1545             :             }
    1546           0 :             return true;
    1547             :         }
    1548             :     default:
    1549             :         {
    1550           0 :             FatalError("unknown union type");
    1551           0 :             return false;
    1552             :         }
    1553             :     }
    1554             : }
    1555             : 
    1556           0 : auto PCookieServiceChild::Write(
    1557             :         const HostObjectURIParams& v__,
    1558             :         Message* msg__) -> void
    1559             : {
    1560           0 :     Write((v__).simpleParams(), msg__);
    1561             :     // Sentinel = 'simpleParams'
    1562           0 :     (msg__)->WriteSentinel(3404291700);
    1563           0 :     Write((v__).principal(), msg__);
    1564             :     // Sentinel = 'principal'
    1565           0 :     (msg__)->WriteSentinel(732240927);
    1566           0 : }
    1567             : 
    1568           0 : auto PCookieServiceChild::Read(
    1569             :         HostObjectURIParams* v__,
    1570             :         const Message* msg__,
    1571             :         PickleIterator* iter__) -> bool
    1572             : {
    1573           0 :     if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
    1574           0 :         FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
    1575           0 :         return false;
    1576             :     }
    1577             :     // Sentinel = 'simpleParams'
    1578           0 :     if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
    1579           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
    1580           0 :         return false;
    1581             :     }
    1582           0 :     if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
    1583           0 :         FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
    1584           0 :         return false;
    1585             :     }
    1586             :     // Sentinel = 'principal'
    1587           0 :     if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
    1588           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
    1589           0 :         return false;
    1590             :     }
    1591           0 :     return true;
    1592             : }
    1593             : 
    1594           0 : auto PCookieServiceChild::Write(
    1595             :         const SimpleURIParams& v__,
    1596             :         Message* msg__) -> void
    1597             : {
    1598           0 :     Write((v__).scheme(), msg__);
    1599             :     // Sentinel = 'scheme'
    1600           0 :     (msg__)->WriteSentinel(3619238715);
    1601           0 :     Write((v__).path(), msg__);
    1602             :     // Sentinel = 'path'
    1603           0 :     (msg__)->WriteSentinel(913629401);
    1604           0 :     Write((v__).ref(), msg__);
    1605             :     // Sentinel = 'ref'
    1606           0 :     (msg__)->WriteSentinel(2626476732);
    1607           0 :     Write((v__).query(), msg__);
    1608             :     // Sentinel = 'query'
    1609           0 :     (msg__)->WriteSentinel(4249802777);
    1610           0 :     Write((v__).isMutable(), msg__);
    1611             :     // Sentinel = 'isMutable'
    1612           0 :     (msg__)->WriteSentinel(3552466783);
    1613           0 : }
    1614             : 
    1615           0 : auto PCookieServiceChild::Read(
    1616             :         SimpleURIParams* v__,
    1617             :         const Message* msg__,
    1618             :         PickleIterator* iter__) -> bool
    1619             : {
    1620           0 :     if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
    1621           0 :         FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
    1622           0 :         return false;
    1623             :     }
    1624             :     // Sentinel = 'scheme'
    1625           0 :     if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
    1626           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
    1627           0 :         return false;
    1628             :     }
    1629           0 :     if ((!(Read((&((v__)->path())), msg__, iter__)))) {
    1630           0 :         FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
    1631           0 :         return false;
    1632             :     }
    1633             :     // Sentinel = 'path'
    1634           0 :     if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
    1635           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
    1636           0 :         return false;
    1637             :     }
    1638           0 :     if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
    1639           0 :         FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
    1640           0 :         return false;
    1641             :     }
    1642             :     // Sentinel = 'ref'
    1643           0 :     if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
    1644           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
    1645           0 :         return false;
    1646             :     }
    1647           0 :     if ((!(Read((&((v__)->query())), msg__, iter__)))) {
    1648           0 :         FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
    1649           0 :         return false;
    1650             :     }
    1651             :     // Sentinel = 'query'
    1652           0 :     if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
    1653           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
    1654           0 :         return false;
    1655             :     }
    1656           0 :     if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
    1657           0 :         FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
    1658           0 :         return false;
    1659             :     }
    1660             :     // Sentinel = 'isMutable'
    1661           0 :     if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
    1662           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
    1663           0 :         return false;
    1664             :     }
    1665           0 :     return true;
    1666             : }
    1667             : 
    1668           0 : auto PCookieServiceChild::Write(
    1669             :         const PCookieServiceChild* v__,
    1670             :         Message* msg__,
    1671             :         bool nullable__) -> void
    1672             : {
    1673             :     int32_t id;
    1674           0 :     if ((!(v__))) {
    1675           0 :         if ((!(nullable__))) {
    1676           0 :             FatalError("NULL actor value passed to non-nullable param");
    1677             :         }
    1678           0 :         id = 0;
    1679             :     }
    1680             :     else {
    1681           0 :         id = (v__)->Id();
    1682           0 :         if ((1) == (id)) {
    1683           0 :             FatalError("actor has been |delete|d");
    1684             :         }
    1685             :     }
    1686             : 
    1687           0 :     Write(id, msg__);
    1688           0 : }
    1689             : 
    1690           0 : auto PCookieServiceChild::Read(
    1691             :         PCookieServiceChild** v__,
    1692             :         const Message* msg__,
    1693             :         PickleIterator* iter__,
    1694             :         bool nullable__) -> bool
    1695             : {
    1696           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCookieService", PCookieServiceMsgStart);
    1697           0 :     if ((actor).isNothing()) {
    1698           0 :         return false;
    1699             :     }
    1700             : 
    1701           0 :     (*(v__)) = static_cast<PCookieServiceChild*>((actor).value());
    1702           0 :     return true;
    1703             : }
    1704             : 
    1705             : 
    1706             : 
    1707             : } // namespace net
    1708             : } // namespace mozilla

Generated by: LCOV version 1.13