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

Generated by: LCOV version 1.13