LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundFileRequestChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 369 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 38 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/dom/PBackgroundFileRequestChild.h"
       8             : #include "ipc/IPCMessageUtils.h"
       9             : 
      10             : #include "mozilla/dom/PBackgroundFileHandleChild.h"
      11             : #include "mozilla/ipc/PPendingIPCBlobChild.h"
      12             : 
      13             : #include "nsIFile.h"
      14             : #include "GeckoProfiler.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace dom {
      18             : 
      19             : 
      20           0 : auto PBackgroundFileRequestChild::Recv__delete__(const FileRequestResponse& response) -> mozilla::ipc::IPCResult
      21             : {
      22           0 :     return IPC_OK();
      23             : }
      24             : 
      25           0 : auto PBackgroundFileRequestChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      26             : {
      27           0 : }
      28             : 
      29           0 : MOZ_IMPLICIT PBackgroundFileRequestChild::PBackgroundFileRequestChild() :
      30             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      31           0 :     mState(PBackgroundFileRequest::__Dead)
      32             : {
      33           0 :     MOZ_COUNT_CTOR(PBackgroundFileRequestChild);
      34           0 : }
      35             : 
      36           0 : PBackgroundFileRequestChild::~PBackgroundFileRequestChild()
      37             : {
      38           0 :     MOZ_COUNT_DTOR(PBackgroundFileRequestChild);
      39           0 : }
      40             : 
      41           0 : auto PBackgroundFileRequestChild::Manager() const -> PBackgroundFileHandleChild*
      42             : {
      43           0 :     return static_cast<PBackgroundFileHandleChild*>(IProtocol::Manager());
      44             : }
      45             : 
      46           0 : auto PBackgroundFileRequestChild::RemoveManagee(
      47             :         int32_t aProtocolId,
      48             :         ProtocolBase* aListener) -> void
      49             : {
      50           0 :     FatalError("unreached");
      51           0 :     return;
      52             : }
      53             : 
      54           0 : auto PBackgroundFileRequestChild::OnMessageReceived(const Message& msg__) -> PBackgroundFileRequestChild::Result
      55             : {
      56           0 :     switch ((msg__).type()) {
      57             :     case PBackgroundFileRequest::Msg___delete____ID:
      58             :         {
      59           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileRequestChild")) {
      60           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundFileRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      61             :             }
      62           0 :             AUTO_PROFILER_LABEL("PBackgroundFileRequest::Msg___delete__", OTHER);
      63             : 
      64           0 :             PickleIterator iter__(msg__);
      65             :             PBackgroundFileRequestChild* actor;
      66           0 :             FileRequestResponse response;
      67             : 
      68           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
      69           0 :                 FatalError("Error deserializing 'PBackgroundFileRequestChild'");
      70           0 :                 return MsgValueError;
      71             :             }
      72             :             // Sentinel = 'actor'
      73           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
      74           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PBackgroundFileRequestChild'");
      75           0 :                 return MsgValueError;
      76             :             }
      77           0 :             if ((!(Read((&(response)), (&(msg__)), (&(iter__)))))) {
      78           0 :                 FatalError("Error deserializing 'FileRequestResponse'");
      79           0 :                 return MsgValueError;
      80             :             }
      81             :             // Sentinel = 'response'
      82           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2396115421)))) {
      83           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'FileRequestResponse'");
      84           0 :                 return MsgValueError;
      85             :             }
      86           0 :             (msg__).EndRead(iter__, (msg__).type());
      87           0 :             PBackgroundFileRequest::Transition(PBackgroundFileRequest::Msg___delete____ID, (&(mState)));
      88           0 :             if ((!(Recv__delete__(mozilla::Move(response))))) {
      89           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
      90             :                 // Error handled in mozilla::ipc::IPCResult
      91           0 :                 return MsgProcessingError;
      92             :             }
      93             : 
      94             : 
      95           0 :             IProtocol* mgr = (actor)->Manager();
      96           0 :             (actor)->DestroySubtree(Deletion);
      97           0 :             (actor)->DeallocSubtree();
      98           0 :             (mgr)->RemoveManagee(PBackgroundFileRequestMsgStart, actor);
      99             : 
     100           0 :             return MsgProcessed;
     101             :         }
     102             :     case PBackgroundFileRequest::Msg_Progress__ID:
     103             :         {
     104           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileRequestChild")) {
     105           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundFileRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     106             :             }
     107           0 :             AUTO_PROFILER_LABEL("PBackgroundFileRequest::Msg_Progress", OTHER);
     108             : 
     109           0 :             PickleIterator iter__(msg__);
     110             :             uint64_t progress;
     111             :             uint64_t progressMax;
     112             : 
     113           0 :             if ((!(Read((&(progress)), (&(msg__)), (&(iter__)))))) {
     114           0 :                 FatalError("Error deserializing 'uint64_t'");
     115           0 :                 return MsgValueError;
     116             :             }
     117             :             // Sentinel = 'progress'
     118           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 858119353)))) {
     119           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     120           0 :                 return MsgValueError;
     121             :             }
     122           0 :             if ((!(Read((&(progressMax)), (&(msg__)), (&(iter__)))))) {
     123           0 :                 FatalError("Error deserializing 'uint64_t'");
     124           0 :                 return MsgValueError;
     125             :             }
     126             :             // Sentinel = 'progressMax'
     127           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2530734978)))) {
     128           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     129           0 :                 return MsgValueError;
     130             :             }
     131           0 :             (msg__).EndRead(iter__, (msg__).type());
     132           0 :             PBackgroundFileRequest::Transition(PBackgroundFileRequest::Msg_Progress__ID, (&(mState)));
     133           0 :             if ((!(RecvProgress(mozilla::Move(progress), mozilla::Move(progressMax))))) {
     134           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     135             :                 // Error handled in mozilla::ipc::IPCResult
     136           0 :                 return MsgProcessingError;
     137             :             }
     138             : 
     139           0 :             return MsgProcessed;
     140             :         }
     141             :     default:
     142             :         {
     143           0 :             return MsgNotKnown;
     144             :         }
     145             :     }
     146             : }
     147             : 
     148           0 : auto PBackgroundFileRequestChild::OnMessageReceived(
     149             :         const Message& msg__,
     150             :         Message*& reply__) -> PBackgroundFileRequestChild::Result
     151             : {
     152           0 :     return MsgNotKnown;
     153             : }
     154             : 
     155           0 : auto PBackgroundFileRequestChild::OnCallReceived(
     156             :         const Message& msg__,
     157             :         Message*& reply__) -> PBackgroundFileRequestChild::Result
     158             : {
     159           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     160             :     return MsgNotKnown;
     161             : }
     162             : 
     163           0 : auto PBackgroundFileRequestChild::GetProtocolTypeId() -> int32_t
     164             : {
     165           0 :     return PBackgroundFileRequestMsgStart;
     166             : }
     167             : 
     168           0 : auto PBackgroundFileRequestChild::ProtocolName() const -> const char*
     169             : {
     170           0 :     return "PBackgroundFileRequestChild";
     171             : }
     172             : 
     173           0 : auto PBackgroundFileRequestChild::DestroySubtree(ActorDestroyReason why) -> void
     174             : {
     175             :     // Unregister from our manager.
     176           0 :     Unregister(Id());
     177             : 
     178             :     // Reject owning pending promises.
     179           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     180             : 
     181             :     // Finally, destroy "us".
     182           0 :     ActorDestroy(why);
     183           0 : }
     184             : 
     185           0 : auto PBackgroundFileRequestChild::DeallocSubtree() -> void
     186             : {
     187           0 : }
     188             : 
     189           0 : auto PBackgroundFileRequestChild::Write(
     190             :         const FileRequestGetMetadataResponse& v__,
     191             :         Message* msg__) -> void
     192             : {
     193           0 :     Write((v__).metadata(), msg__);
     194             :     // Sentinel = 'metadata'
     195           0 :     (msg__)->WriteSentinel(541737151);
     196           0 : }
     197             : 
     198           0 : auto PBackgroundFileRequestChild::Read(
     199             :         FileRequestGetMetadataResponse* v__,
     200             :         const Message* msg__,
     201             :         PickleIterator* iter__) -> bool
     202             : {
     203           0 :     if ((!(Read((&((v__)->metadata())), msg__, iter__)))) {
     204           0 :         FatalError("Error deserializing 'metadata' (FileRequestMetadata) member of 'FileRequestGetMetadataResponse'");
     205           0 :         return false;
     206             :     }
     207             :     // Sentinel = 'metadata'
     208           0 :     if ((!((msg__)->ReadSentinel(iter__, 541737151)))) {
     209           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'metadata' (FileRequestMetadata) member of 'FileRequestGetMetadataResponse'");
     210           0 :         return false;
     211             :     }
     212           0 :     return true;
     213             : }
     214             : 
     215           0 : auto PBackgroundFileRequestChild::Write(
     216             :         const FileRequestSize& v__,
     217             :         Message* msg__) -> void
     218             : {
     219             :     typedef FileRequestSize type__;
     220           0 :     Write(int((v__).type()), msg__);
     221             :     // Sentinel = 'FileRequestSize'
     222           0 :     (msg__)->WriteSentinel(1806056177);
     223             : 
     224           0 :     switch ((v__).type()) {
     225             :     case type__::Tvoid_t:
     226             :         {
     227           0 :             Write((v__).get_void_t(), msg__);
     228             :             // Sentinel = 'Tvoid_t'
     229           0 :             (msg__)->WriteSentinel(3041273328);
     230           0 :             return;
     231             :         }
     232             :     case type__::Tuint64_t:
     233             :         {
     234           0 :             Write((v__).get_uint64_t(), msg__);
     235             :             // Sentinel = 'Tuint64_t'
     236           0 :             (msg__)->WriteSentinel(1935076742);
     237           0 :             return;
     238             :         }
     239             :     default:
     240             :         {
     241           0 :             FatalError("unknown union type");
     242           0 :             return;
     243             :         }
     244             :     }
     245             : }
     246             : 
     247           0 : auto PBackgroundFileRequestChild::Read(
     248             :         FileRequestSize* v__,
     249             :         const Message* msg__,
     250             :         PickleIterator* iter__) -> bool
     251             : {
     252             :     typedef FileRequestSize type__;
     253             :     int type;
     254           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     255           0 :         mozilla::ipc::UnionTypeReadError("FileRequestSize");
     256           0 :         return false;
     257             :     }
     258             :     // Sentinel = 'FileRequestSize'
     259           0 :     if ((!((msg__)->ReadSentinel(iter__, 1806056177)))) {
     260           0 :         mozilla::ipc::SentinelReadError("FileRequestSize");
     261           0 :         return false;
     262             :     }
     263             : 
     264           0 :     switch (type) {
     265             :     case type__::Tvoid_t:
     266             :         {
     267             :             void_t tmp = void_t();
     268           0 :             (*(v__)) = tmp;
     269           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     270           0 :                 FatalError("Error deserializing Union type");
     271           0 :                 return false;
     272             :             }
     273             :             // Sentinel = 'Tvoid_t'
     274           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     275           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     276           0 :                 return false;
     277             :             }
     278           0 :             return true;
     279             :         }
     280             :     case type__::Tuint64_t:
     281             :         {
     282           0 :             uint64_t tmp = uint64_t();
     283           0 :             (*(v__)) = tmp;
     284           0 :             if ((!(Read((&((v__)->get_uint64_t())), msg__, iter__)))) {
     285           0 :                 FatalError("Error deserializing Union type");
     286           0 :                 return false;
     287             :             }
     288             :             // Sentinel = 'Tuint64_t'
     289           0 :             if ((!((msg__)->ReadSentinel(iter__, 1935076742)))) {
     290           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     291           0 :                 return false;
     292             :             }
     293           0 :             return true;
     294             :         }
     295             :     default:
     296             :         {
     297           0 :             FatalError("unknown union type");
     298           0 :             return false;
     299             :         }
     300             :     }
     301             : }
     302             : 
     303           0 : auto PBackgroundFileRequestChild::Write(
     304             :         const FileRequestWriteResponse& v__,
     305             :         Message* msg__) -> void
     306             : {
     307           0 : }
     308             : 
     309           0 : auto PBackgroundFileRequestChild::Read(
     310             :         FileRequestWriteResponse* v__,
     311             :         const Message* msg__,
     312             :         PickleIterator* iter__) -> bool
     313             : {
     314           0 :     return true;
     315             : }
     316             : 
     317           0 : auto PBackgroundFileRequestChild::Write(
     318             :         const FileRequestResponse& v__,
     319             :         Message* msg__) -> void
     320             : {
     321             :     typedef FileRequestResponse type__;
     322           0 :     Write(int((v__).type()), msg__);
     323             :     // Sentinel = 'FileRequestResponse'
     324           0 :     (msg__)->WriteSentinel(1914989643);
     325             : 
     326           0 :     switch ((v__).type()) {
     327             :     case type__::Tnsresult:
     328             :         {
     329           0 :             Write((v__).get_nsresult(), msg__);
     330             :             // Sentinel = 'Tnsresult'
     331           0 :             (msg__)->WriteSentinel(2293764539);
     332           0 :             return;
     333             :         }
     334             :     case type__::TFileRequestGetMetadataResponse:
     335             :         {
     336           0 :             Write((v__).get_FileRequestGetMetadataResponse(), msg__);
     337             :             // Sentinel = 'TFileRequestGetMetadataResponse'
     338           0 :             (msg__)->WriteSentinel(18882654);
     339           0 :             return;
     340             :         }
     341             :     case type__::TFileRequestReadResponse:
     342             :         {
     343           0 :             Write((v__).get_FileRequestReadResponse(), msg__);
     344             :             // Sentinel = 'TFileRequestReadResponse'
     345           0 :             (msg__)->WriteSentinel(817963328);
     346           0 :             return;
     347             :         }
     348             :     case type__::TFileRequestWriteResponse:
     349             :         {
     350           0 :             Write((v__).get_FileRequestWriteResponse(), msg__);
     351             :             // Sentinel = 'TFileRequestWriteResponse'
     352           0 :             (msg__)->WriteSentinel(1937414566);
     353           0 :             return;
     354             :         }
     355             :     case type__::TFileRequestTruncateResponse:
     356             :         {
     357           0 :             Write((v__).get_FileRequestTruncateResponse(), msg__);
     358             :             // Sentinel = 'TFileRequestTruncateResponse'
     359           0 :             (msg__)->WriteSentinel(2329312254);
     360           0 :             return;
     361             :         }
     362             :     case type__::TFileRequestFlushResponse:
     363             :         {
     364           0 :             Write((v__).get_FileRequestFlushResponse(), msg__);
     365             :             // Sentinel = 'TFileRequestFlushResponse'
     366           0 :             (msg__)->WriteSentinel(4234370673);
     367           0 :             return;
     368             :         }
     369             :     case type__::TFileRequestGetFileResponse:
     370             :         {
     371           0 :             Write((v__).get_FileRequestGetFileResponse(), msg__);
     372             :             // Sentinel = 'TFileRequestGetFileResponse'
     373           0 :             (msg__)->WriteSentinel(2486481847);
     374           0 :             return;
     375             :         }
     376             :     default:
     377             :         {
     378           0 :             FatalError("unknown union type");
     379           0 :             return;
     380             :         }
     381             :     }
     382             : }
     383             : 
     384           0 : auto PBackgroundFileRequestChild::Read(
     385             :         FileRequestResponse* v__,
     386             :         const Message* msg__,
     387             :         PickleIterator* iter__) -> bool
     388             : {
     389             :     typedef FileRequestResponse type__;
     390             :     int type;
     391           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     392           0 :         mozilla::ipc::UnionTypeReadError("FileRequestResponse");
     393           0 :         return false;
     394             :     }
     395             :     // Sentinel = 'FileRequestResponse'
     396           0 :     if ((!((msg__)->ReadSentinel(iter__, 1914989643)))) {
     397           0 :         mozilla::ipc::SentinelReadError("FileRequestResponse");
     398           0 :         return false;
     399             :     }
     400             : 
     401           0 :     switch (type) {
     402             :     case type__::Tnsresult:
     403             :         {
     404           0 :             nsresult tmp = nsresult();
     405           0 :             (*(v__)) = tmp;
     406           0 :             if ((!(Read((&((v__)->get_nsresult())), msg__, iter__)))) {
     407           0 :                 FatalError("Error deserializing Union type");
     408           0 :                 return false;
     409             :             }
     410             :             // Sentinel = 'Tnsresult'
     411           0 :             if ((!((msg__)->ReadSentinel(iter__, 2293764539)))) {
     412           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     413           0 :                 return false;
     414             :             }
     415           0 :             return true;
     416             :         }
     417             :     case type__::TFileRequestGetMetadataResponse:
     418             :         {
     419           0 :             FileRequestGetMetadataResponse tmp = FileRequestGetMetadataResponse();
     420           0 :             (*(v__)) = tmp;
     421           0 :             if ((!(Read((&((v__)->get_FileRequestGetMetadataResponse())), msg__, iter__)))) {
     422           0 :                 FatalError("Error deserializing Union type");
     423           0 :                 return false;
     424             :             }
     425             :             // Sentinel = 'TFileRequestGetMetadataResponse'
     426           0 :             if ((!((msg__)->ReadSentinel(iter__, 18882654)))) {
     427           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     428           0 :                 return false;
     429             :             }
     430           0 :             return true;
     431             :         }
     432             :     case type__::TFileRequestReadResponse:
     433             :         {
     434           0 :             FileRequestReadResponse tmp = FileRequestReadResponse();
     435           0 :             (*(v__)) = tmp;
     436           0 :             if ((!(Read((&((v__)->get_FileRequestReadResponse())), msg__, iter__)))) {
     437           0 :                 FatalError("Error deserializing Union type");
     438           0 :                 return false;
     439             :             }
     440             :             // Sentinel = 'TFileRequestReadResponse'
     441           0 :             if ((!((msg__)->ReadSentinel(iter__, 817963328)))) {
     442           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     443           0 :                 return false;
     444             :             }
     445           0 :             return true;
     446             :         }
     447             :     case type__::TFileRequestWriteResponse:
     448             :         {
     449           0 :             FileRequestWriteResponse tmp = FileRequestWriteResponse();
     450           0 :             (*(v__)) = tmp;
     451           0 :             if ((!(Read((&((v__)->get_FileRequestWriteResponse())), msg__, iter__)))) {
     452           0 :                 FatalError("Error deserializing Union type");
     453           0 :                 return false;
     454             :             }
     455             :             // Sentinel = 'TFileRequestWriteResponse'
     456           0 :             if ((!((msg__)->ReadSentinel(iter__, 1937414566)))) {
     457           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     458           0 :                 return false;
     459             :             }
     460           0 :             return true;
     461             :         }
     462             :     case type__::TFileRequestTruncateResponse:
     463             :         {
     464           0 :             FileRequestTruncateResponse tmp = FileRequestTruncateResponse();
     465           0 :             (*(v__)) = tmp;
     466           0 :             if ((!(Read((&((v__)->get_FileRequestTruncateResponse())), msg__, iter__)))) {
     467           0 :                 FatalError("Error deserializing Union type");
     468           0 :                 return false;
     469             :             }
     470             :             // Sentinel = 'TFileRequestTruncateResponse'
     471           0 :             if ((!((msg__)->ReadSentinel(iter__, 2329312254)))) {
     472           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     473           0 :                 return false;
     474             :             }
     475           0 :             return true;
     476             :         }
     477             :     case type__::TFileRequestFlushResponse:
     478             :         {
     479           0 :             FileRequestFlushResponse tmp = FileRequestFlushResponse();
     480           0 :             (*(v__)) = tmp;
     481           0 :             if ((!(Read((&((v__)->get_FileRequestFlushResponse())), msg__, iter__)))) {
     482           0 :                 FatalError("Error deserializing Union type");
     483           0 :                 return false;
     484             :             }
     485             :             // Sentinel = 'TFileRequestFlushResponse'
     486           0 :             if ((!((msg__)->ReadSentinel(iter__, 4234370673)))) {
     487           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     488           0 :                 return false;
     489             :             }
     490           0 :             return true;
     491             :         }
     492             :     case type__::TFileRequestGetFileResponse:
     493             :         {
     494           0 :             FileRequestGetFileResponse tmp = FileRequestGetFileResponse();
     495           0 :             (*(v__)) = tmp;
     496           0 :             if ((!(Read((&((v__)->get_FileRequestGetFileResponse())), msg__, iter__)))) {
     497           0 :                 FatalError("Error deserializing Union type");
     498           0 :                 return false;
     499             :             }
     500             :             // Sentinel = 'TFileRequestGetFileResponse'
     501           0 :             if ((!((msg__)->ReadSentinel(iter__, 2486481847)))) {
     502           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     503           0 :                 return false;
     504             :             }
     505           0 :             return true;
     506             :         }
     507             :     default:
     508             :         {
     509           0 :             FatalError("unknown union type");
     510           0 :             return false;
     511             :         }
     512             :     }
     513             : }
     514             : 
     515           0 : auto PBackgroundFileRequestChild::Write(
     516             :         const FileRequestReadResponse& v__,
     517             :         Message* msg__) -> void
     518             : {
     519           0 :     Write((v__).data(), msg__);
     520             :     // Sentinel = 'data'
     521           0 :     (msg__)->WriteSentinel(843352540);
     522           0 : }
     523             : 
     524           0 : auto PBackgroundFileRequestChild::Read(
     525             :         FileRequestReadResponse* v__,
     526             :         const Message* msg__,
     527             :         PickleIterator* iter__) -> bool
     528             : {
     529           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
     530           0 :         FatalError("Error deserializing 'data' (nsCString) member of 'FileRequestReadResponse'");
     531           0 :         return false;
     532             :     }
     533             :     // Sentinel = 'data'
     534           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
     535           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'FileRequestReadResponse'");
     536           0 :         return false;
     537             :     }
     538           0 :     return true;
     539             : }
     540             : 
     541           0 : auto PBackgroundFileRequestChild::Write(
     542             :         const FileRequestTruncateResponse& v__,
     543             :         Message* msg__) -> void
     544             : {
     545           0 : }
     546             : 
     547           0 : auto PBackgroundFileRequestChild::Read(
     548             :         FileRequestTruncateResponse* v__,
     549             :         const Message* msg__,
     550             :         PickleIterator* iter__) -> bool
     551             : {
     552           0 :     return true;
     553             : }
     554             : 
     555           0 : auto PBackgroundFileRequestChild::Write(
     556             :         const FileRequestGetFileResponse& v__,
     557             :         Message* msg__) -> void
     558             : {
     559             :     // skipping actor field that's meaningless on this side
     560           0 :     Write((v__).fileChild(), msg__, false);
     561             :     // Sentinel = 'file'
     562           0 :     (msg__)->WriteSentinel(224874390);
     563           0 :     Write((v__).metadata(), msg__);
     564             :     // Sentinel = 'metadata'
     565           0 :     (msg__)->WriteSentinel(541737151);
     566           0 : }
     567             : 
     568           0 : auto PBackgroundFileRequestChild::Read(
     569             :         FileRequestGetFileResponse* v__,
     570             :         const Message* msg__,
     571             :         PickleIterator* iter__) -> bool
     572             : {
     573             :     // skipping actor field that's meaningless on this side
     574           0 :     if ((!(Read((&((v__)->fileChild())), msg__, iter__, false)))) {
     575           0 :         FatalError("Error deserializing 'fileChild' (PPendingIPCBlob) member of 'FileRequestGetFileResponse'");
     576           0 :         return false;
     577             :     }
     578             :     // Sentinel = 'file'
     579           0 :     if ((!((msg__)->ReadSentinel(iter__, 224874390)))) {
     580           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileChild' (PPendingIPCBlob) member of 'FileRequestGetFileResponse'");
     581           0 :         return false;
     582             :     }
     583           0 :     if ((!(Read((&((v__)->metadata())), msg__, iter__)))) {
     584           0 :         FatalError("Error deserializing 'metadata' (FileRequestMetadata) member of 'FileRequestGetFileResponse'");
     585           0 :         return false;
     586             :     }
     587             :     // Sentinel = 'metadata'
     588           0 :     if ((!((msg__)->ReadSentinel(iter__, 541737151)))) {
     589           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'metadata' (FileRequestMetadata) member of 'FileRequestGetFileResponse'");
     590           0 :         return false;
     591             :     }
     592           0 :     return true;
     593             : }
     594             : 
     595           0 : auto PBackgroundFileRequestChild::Write(
     596             :         const FileRequestLastModified& v__,
     597             :         Message* msg__) -> void
     598             : {
     599             :     typedef FileRequestLastModified type__;
     600           0 :     Write(int((v__).type()), msg__);
     601             :     // Sentinel = 'FileRequestLastModified'
     602           0 :     (msg__)->WriteSentinel(4176568879);
     603             : 
     604           0 :     switch ((v__).type()) {
     605             :     case type__::Tvoid_t:
     606             :         {
     607           0 :             Write((v__).get_void_t(), msg__);
     608             :             // Sentinel = 'Tvoid_t'
     609           0 :             (msg__)->WriteSentinel(3041273328);
     610           0 :             return;
     611             :         }
     612             :     case type__::Tint64_t:
     613             :         {
     614           0 :             Write((v__).get_int64_t(), msg__);
     615             :             // Sentinel = 'Tint64_t'
     616           0 :             (msg__)->WriteSentinel(650728676);
     617           0 :             return;
     618             :         }
     619             :     default:
     620             :         {
     621           0 :             FatalError("unknown union type");
     622           0 :             return;
     623             :         }
     624             :     }
     625             : }
     626             : 
     627           0 : auto PBackgroundFileRequestChild::Read(
     628             :         FileRequestLastModified* v__,
     629             :         const Message* msg__,
     630             :         PickleIterator* iter__) -> bool
     631             : {
     632             :     typedef FileRequestLastModified type__;
     633             :     int type;
     634           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     635           0 :         mozilla::ipc::UnionTypeReadError("FileRequestLastModified");
     636           0 :         return false;
     637             :     }
     638             :     // Sentinel = 'FileRequestLastModified'
     639           0 :     if ((!((msg__)->ReadSentinel(iter__, 4176568879)))) {
     640           0 :         mozilla::ipc::SentinelReadError("FileRequestLastModified");
     641           0 :         return false;
     642             :     }
     643             : 
     644           0 :     switch (type) {
     645             :     case type__::Tvoid_t:
     646             :         {
     647             :             void_t tmp = void_t();
     648           0 :             (*(v__)) = tmp;
     649           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     650           0 :                 FatalError("Error deserializing Union type");
     651           0 :                 return false;
     652             :             }
     653             :             // Sentinel = 'Tvoid_t'
     654           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     655           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     656           0 :                 return false;
     657             :             }
     658           0 :             return true;
     659             :         }
     660             :     case type__::Tint64_t:
     661             :         {
     662           0 :             int64_t tmp = int64_t();
     663           0 :             (*(v__)) = tmp;
     664           0 :             if ((!(Read((&((v__)->get_int64_t())), msg__, iter__)))) {
     665           0 :                 FatalError("Error deserializing Union type");
     666           0 :                 return false;
     667             :             }
     668             :             // Sentinel = 'Tint64_t'
     669           0 :             if ((!((msg__)->ReadSentinel(iter__, 650728676)))) {
     670           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     671           0 :                 return false;
     672             :             }
     673           0 :             return true;
     674             :         }
     675             :     default:
     676             :         {
     677           0 :             FatalError("unknown union type");
     678           0 :             return false;
     679             :         }
     680             :     }
     681             : }
     682             : 
     683           0 : auto PBackgroundFileRequestChild::Write(
     684             :         const PBackgroundFileRequestChild* v__,
     685             :         Message* msg__,
     686             :         bool nullable__) -> void
     687             : {
     688             :     int32_t id;
     689           0 :     if ((!(v__))) {
     690           0 :         if ((!(nullable__))) {
     691           0 :             FatalError("NULL actor value passed to non-nullable param");
     692             :         }
     693           0 :         id = 0;
     694             :     }
     695             :     else {
     696           0 :         id = (v__)->Id();
     697           0 :         if ((1) == (id)) {
     698           0 :             FatalError("actor has been |delete|d");
     699             :         }
     700             :     }
     701             : 
     702           0 :     Write(id, msg__);
     703           0 : }
     704             : 
     705           0 : auto PBackgroundFileRequestChild::Read(
     706             :         PBackgroundFileRequestChild** v__,
     707             :         const Message* msg__,
     708             :         PickleIterator* iter__,
     709             :         bool nullable__) -> bool
     710             : {
     711           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundFileRequest", PBackgroundFileRequestMsgStart);
     712           0 :     if ((actor).isNothing()) {
     713           0 :         return false;
     714             :     }
     715             : 
     716           0 :     (*(v__)) = static_cast<PBackgroundFileRequestChild*>((actor).value());
     717           0 :     return true;
     718             : }
     719             : 
     720           0 : auto PBackgroundFileRequestChild::Write(
     721             :         const FileRequestFlushResponse& v__,
     722             :         Message* msg__) -> void
     723             : {
     724           0 : }
     725             : 
     726           0 : auto PBackgroundFileRequestChild::Read(
     727             :         FileRequestFlushResponse* v__,
     728             :         const Message* msg__,
     729             :         PickleIterator* iter__) -> bool
     730             : {
     731           0 :     return true;
     732             : }
     733             : 
     734           0 : auto PBackgroundFileRequestChild::Write(
     735             :         const FileRequestMetadata& v__,
     736             :         Message* msg__) -> void
     737             : {
     738           0 :     Write((v__).size(), msg__);
     739             :     // Sentinel = 'size'
     740           0 :     (msg__)->WriteSentinel(931048223);
     741           0 :     Write((v__).lastModified(), msg__);
     742             :     // Sentinel = 'lastModified'
     743           0 :     (msg__)->WriteSentinel(3456113257);
     744           0 : }
     745             : 
     746           0 : auto PBackgroundFileRequestChild::Read(
     747             :         FileRequestMetadata* v__,
     748             :         const Message* msg__,
     749             :         PickleIterator* iter__) -> bool
     750             : {
     751           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
     752           0 :         FatalError("Error deserializing 'size' (FileRequestSize) member of 'FileRequestMetadata'");
     753           0 :         return false;
     754             :     }
     755             :     // Sentinel = 'size'
     756           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
     757           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (FileRequestSize) member of 'FileRequestMetadata'");
     758           0 :         return false;
     759             :     }
     760           0 :     if ((!(Read((&((v__)->lastModified())), msg__, iter__)))) {
     761           0 :         FatalError("Error deserializing 'lastModified' (FileRequestLastModified) member of 'FileRequestMetadata'");
     762           0 :         return false;
     763             :     }
     764             :     // Sentinel = 'lastModified'
     765           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456113257)))) {
     766           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'lastModified' (FileRequestLastModified) member of 'FileRequestMetadata'");
     767           0 :         return false;
     768             :     }
     769           0 :     return true;
     770             : }
     771             : 
     772           0 : auto PBackgroundFileRequestChild::Write(
     773             :         const PPendingIPCBlobChild* v__,
     774             :         Message* msg__,
     775             :         bool nullable__) -> void
     776             : {
     777             :     int32_t id;
     778           0 :     if ((!(v__))) {
     779           0 :         if ((!(nullable__))) {
     780           0 :             FatalError("NULL actor value passed to non-nullable param");
     781             :         }
     782           0 :         id = 0;
     783             :     }
     784             :     else {
     785           0 :         id = (v__)->Id();
     786           0 :         if ((1) == (id)) {
     787           0 :             FatalError("actor has been |delete|d");
     788             :         }
     789             :     }
     790             : 
     791           0 :     Write(id, msg__);
     792           0 : }
     793             : 
     794           0 : auto PBackgroundFileRequestChild::Read(
     795             :         PPendingIPCBlobChild** v__,
     796             :         const Message* msg__,
     797             :         PickleIterator* iter__,
     798             :         bool nullable__) -> bool
     799             : {
     800           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPendingIPCBlob", PPendingIPCBlobMsgStart);
     801           0 :     if ((actor).isNothing()) {
     802           0 :         return false;
     803             :     }
     804             : 
     805           0 :     (*(v__)) = static_cast<PPendingIPCBlobChild*>((actor).value());
     806           0 :     return true;
     807             : }
     808             : 
     809             : 
     810             : 
     811             : } // namespace dom
     812             : } // namespace mozilla

Generated by: LCOV version 1.13