LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PCamerasParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 792 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 45 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/camera/PCamerasParent.h"
       8             : 
       9             : #include "mozilla/dom/PContentParent.h"
      10             : #include "mozilla/ipc/PBackgroundParent.h"
      11             : 
      12             : #include "nsIFile.h"
      13             : #include "GeckoProfiler.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace camera {
      17             : 
      18             : 
      19             : 
      20           0 : MOZ_IMPLICIT PCamerasParent::PCamerasParent() :
      21             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      22           0 :     mState(PCameras::__Dead)
      23             : {
      24           0 :     MOZ_COUNT_CTOR(PCamerasParent);
      25           0 : }
      26             : 
      27           0 : PCamerasParent::~PCamerasParent()
      28             : {
      29           0 :     MOZ_COUNT_DTOR(PCamerasParent);
      30           0 : }
      31             : 
      32           0 : auto PCamerasParent::Manager() const -> PBackgroundParent*
      33             : {
      34           0 :     return static_cast<PBackgroundParent*>(IProtocol::Manager());
      35             : }
      36             : 
      37           0 : auto PCamerasParent::SendFrameSizeChange(
      38             :         const CaptureEngine& capEngine,
      39             :         const int& cap_id,
      40             :         const int& w,
      41             :         const int& h) -> bool
      42             : {
      43           0 :     IPC::Message* msg__ = PCameras::Msg_FrameSizeChange(Id());
      44             : 
      45           0 :     Write(capEngine, msg__);
      46             :     // Sentinel = 'capEngine'
      47           0 :     (msg__)->WriteSentinel(653793175);
      48           0 :     Write(cap_id, msg__);
      49             :     // Sentinel = 'cap_id'
      50           0 :     (msg__)->WriteSentinel(2731159222);
      51           0 :     Write(w, msg__);
      52             :     // Sentinel = 'w'
      53           0 :     (msg__)->WriteSentinel(2347143926);
      54           0 :     Write(h, msg__);
      55             :     // Sentinel = 'h'
      56           0 :     (msg__)->WriteSentinel(427138153);
      57             : 
      58             : 
      59             : 
      60             : 
      61           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
      62           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      63             :     }
      64           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_FrameSizeChange", OTHER);
      65           0 :     PCameras::Transition(PCameras::Msg_FrameSizeChange__ID, (&(mState)));
      66             : 
      67           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      68           0 :     return sendok__;
      69             : }
      70             : 
      71           0 : auto PCamerasParent::SendDeliverFrame(
      72             :         const CaptureEngine& capEngine,
      73             :         const int& streamId,
      74             :         Shmem& buffer,
      75             :         const VideoFrameProperties& props) -> bool
      76             : {
      77           0 :     IPC::Message* msg__ = PCameras::Msg_DeliverFrame(Id());
      78             : 
      79           0 :     Write(capEngine, msg__);
      80             :     // Sentinel = 'capEngine'
      81           0 :     (msg__)->WriteSentinel(653793175);
      82           0 :     Write(streamId, msg__);
      83             :     // Sentinel = 'streamId'
      84           0 :     (msg__)->WriteSentinel(456612599);
      85           0 :     Write(buffer, msg__);
      86             :     // Sentinel = 'buffer'
      87           0 :     (msg__)->WriteSentinel(4093250504);
      88           0 :     Write(props, msg__);
      89             :     // Sentinel = 'props'
      90           0 :     (msg__)->WriteSentinel(3139085495);
      91             : 
      92             : 
      93             : 
      94             : 
      95           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
      96           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      97             :     }
      98           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_DeliverFrame", OTHER);
      99           0 :     PCameras::Transition(PCameras::Msg_DeliverFrame__ID, (&(mState)));
     100             : 
     101           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     102           0 :     return sendok__;
     103             : }
     104             : 
     105           0 : auto PCamerasParent::SendDeviceChange() -> bool
     106             : {
     107           0 :     IPC::Message* msg__ = PCameras::Msg_DeviceChange(Id());
     108             : 
     109             : 
     110             : 
     111             : 
     112             : 
     113           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     114           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     115             :     }
     116           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_DeviceChange", OTHER);
     117           0 :     PCameras::Transition(PCameras::Msg_DeviceChange__ID, (&(mState)));
     118             : 
     119           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     120           0 :     return sendok__;
     121             : }
     122             : 
     123           0 : auto PCamerasParent::SendReplyNumberOfCaptureDevices(const int& numdev) -> bool
     124             : {
     125           0 :     IPC::Message* msg__ = PCameras::Msg_ReplyNumberOfCaptureDevices(Id());
     126             : 
     127           0 :     Write(numdev, msg__);
     128             :     // Sentinel = 'numdev'
     129           0 :     (msg__)->WriteSentinel(2469121787);
     130             : 
     131             : 
     132             : 
     133             : 
     134           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     135           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     136             :     }
     137           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplyNumberOfCaptureDevices", OTHER);
     138           0 :     PCameras::Transition(PCameras::Msg_ReplyNumberOfCaptureDevices__ID, (&(mState)));
     139             : 
     140           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     141           0 :     return sendok__;
     142             : }
     143             : 
     144           0 : auto PCamerasParent::SendReplyNumberOfCapabilities(const int& numdev) -> bool
     145             : {
     146           0 :     IPC::Message* msg__ = PCameras::Msg_ReplyNumberOfCapabilities(Id());
     147             : 
     148           0 :     Write(numdev, msg__);
     149             :     // Sentinel = 'numdev'
     150           0 :     (msg__)->WriteSentinel(2469121787);
     151             : 
     152             : 
     153             : 
     154             : 
     155           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     156           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     157             :     }
     158           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplyNumberOfCapabilities", OTHER);
     159           0 :     PCameras::Transition(PCameras::Msg_ReplyNumberOfCapabilities__ID, (&(mState)));
     160             : 
     161           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     162           0 :     return sendok__;
     163             : }
     164             : 
     165           0 : auto PCamerasParent::SendReplyAllocateCaptureDevice(const int& numdev) -> bool
     166             : {
     167           0 :     IPC::Message* msg__ = PCameras::Msg_ReplyAllocateCaptureDevice(Id());
     168             : 
     169           0 :     Write(numdev, msg__);
     170             :     // Sentinel = 'numdev'
     171           0 :     (msg__)->WriteSentinel(2469121787);
     172             : 
     173             : 
     174             : 
     175             : 
     176           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     177           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     178             :     }
     179           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplyAllocateCaptureDevice", OTHER);
     180           0 :     PCameras::Transition(PCameras::Msg_ReplyAllocateCaptureDevice__ID, (&(mState)));
     181             : 
     182           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     183           0 :     return sendok__;
     184             : }
     185             : 
     186           0 : auto PCamerasParent::SendReplyGetCaptureCapability(const VideoCaptureCapability& cap) -> bool
     187             : {
     188           0 :     IPC::Message* msg__ = PCameras::Msg_ReplyGetCaptureCapability(Id());
     189             : 
     190           0 :     Write(cap, msg__);
     191             :     // Sentinel = 'cap'
     192           0 :     (msg__)->WriteSentinel(405875051);
     193             : 
     194             : 
     195             : 
     196             : 
     197           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     198           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     199             :     }
     200           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplyGetCaptureCapability", OTHER);
     201           0 :     PCameras::Transition(PCameras::Msg_ReplyGetCaptureCapability__ID, (&(mState)));
     202             : 
     203           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     204           0 :     return sendok__;
     205             : }
     206             : 
     207           0 : auto PCamerasParent::SendReplyGetCaptureDevice(
     208             :         const nsCString& device_name,
     209             :         const nsCString& device_id,
     210             :         const bool& scary) -> bool
     211             : {
     212           0 :     IPC::Message* msg__ = PCameras::Msg_ReplyGetCaptureDevice(Id());
     213             : 
     214           0 :     Write(device_name, msg__);
     215             :     // Sentinel = 'device_name'
     216           0 :     (msg__)->WriteSentinel(2744663535);
     217           0 :     Write(device_id, msg__);
     218             :     // Sentinel = 'device_id'
     219           0 :     (msg__)->WriteSentinel(31832543);
     220           0 :     Write(scary, msg__);
     221             :     // Sentinel = 'scary'
     222           0 :     (msg__)->WriteSentinel(620600033);
     223             : 
     224             : 
     225             : 
     226             : 
     227           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     228           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     229             :     }
     230           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplyGetCaptureDevice", OTHER);
     231           0 :     PCameras::Transition(PCameras::Msg_ReplyGetCaptureDevice__ID, (&(mState)));
     232             : 
     233           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     234           0 :     return sendok__;
     235             : }
     236             : 
     237           0 : auto PCamerasParent::SendReplyFailure() -> bool
     238             : {
     239           0 :     IPC::Message* msg__ = PCameras::Msg_ReplyFailure(Id());
     240             : 
     241             : 
     242             : 
     243             : 
     244             : 
     245           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     246           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     247             :     }
     248           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplyFailure", OTHER);
     249           0 :     PCameras::Transition(PCameras::Msg_ReplyFailure__ID, (&(mState)));
     250             : 
     251           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     252           0 :     return sendok__;
     253             : }
     254             : 
     255           0 : auto PCamerasParent::SendReplySuccess() -> bool
     256             : {
     257           0 :     IPC::Message* msg__ = PCameras::Msg_ReplySuccess(Id());
     258             : 
     259             : 
     260             : 
     261             : 
     262             : 
     263           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     264           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     265             :     }
     266           0 :     AUTO_PROFILER_LABEL("PCameras::Msg_ReplySuccess", OTHER);
     267           0 :     PCameras::Transition(PCameras::Msg_ReplySuccess__ID, (&(mState)));
     268             : 
     269           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     270           0 :     return sendok__;
     271             : }
     272             : 
     273           0 : auto PCamerasParent::Send__delete__(PCamerasParent* actor) -> bool
     274             : {
     275           0 :     if ((!(actor))) {
     276           0 :         return false;
     277             :     }
     278             : 
     279           0 :     IPC::Message* msg__ = PCameras::Msg___delete__((actor)->Id());
     280             : 
     281           0 :     (actor)->Write(actor, msg__, false);
     282             :     // Sentinel = 'actor'
     283           0 :     (msg__)->WriteSentinel(875202478);
     284             : 
     285             : 
     286             : 
     287           0 :     if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     288           0 :         mozilla::ipc::LogMessageForProtocol("PCamerasParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     289             :     }
     290           0 :     AUTO_PROFILER_LABEL("PCameras::Msg___delete__", OTHER);
     291           0 :     PCameras::Transition(PCameras::Msg___delete____ID, (&((actor)->mState)));
     292             : 
     293           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     294             : 
     295           0 :     IProtocol* mgr = (actor)->Manager();
     296           0 :     (actor)->DestroySubtree(Deletion);
     297           0 :     (actor)->DeallocSubtree();
     298           0 :     (mgr)->RemoveManagee(PCamerasMsgStart, actor);
     299           0 :     return sendok__;
     300             : }
     301             : 
     302           0 : auto PCamerasParent::RemoveManagee(
     303             :         int32_t aProtocolId,
     304             :         ProtocolBase* aListener) -> void
     305             : {
     306           0 :     FatalError("unreached");
     307           0 :     return;
     308             : }
     309             : 
     310           0 : auto PCamerasParent::OnMessageReceived(const Message& msg__) -> PCamerasParent::Result
     311             : {
     312           0 :     switch ((msg__).type()) {
     313             :     case PCameras::Reply___delete____ID:
     314             :         {
     315           0 :             return MsgProcessed;
     316             :         }
     317             :     case PCameras::Msg_NumberOfCaptureDevices__ID:
     318             :         {
     319           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     320           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     321             :             }
     322           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_NumberOfCaptureDevices", OTHER);
     323             : 
     324           0 :             PickleIterator iter__(msg__);
     325             :             CaptureEngine engine;
     326             : 
     327           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     328           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     329           0 :                 return MsgValueError;
     330             :             }
     331             :             // Sentinel = 'engine'
     332           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     333           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     334           0 :                 return MsgValueError;
     335             :             }
     336           0 :             (msg__).EndRead(iter__, (msg__).type());
     337           0 :             PCameras::Transition(PCameras::Msg_NumberOfCaptureDevices__ID, (&(mState)));
     338           0 :             if ((!(RecvNumberOfCaptureDevices(mozilla::Move(engine))))) {
     339           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     340             :                 // Error handled in mozilla::ipc::IPCResult
     341           0 :                 return MsgProcessingError;
     342             :             }
     343             : 
     344           0 :             return MsgProcessed;
     345             :         }
     346             :     case PCameras::Msg_NumberOfCapabilities__ID:
     347             :         {
     348           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     349           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     350             :             }
     351           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_NumberOfCapabilities", OTHER);
     352             : 
     353           0 :             PickleIterator iter__(msg__);
     354             :             CaptureEngine engine;
     355           0 :             nsCString deviceUniqueIdUTF8;
     356             : 
     357           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     358           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     359           0 :                 return MsgValueError;
     360             :             }
     361             :             // Sentinel = 'engine'
     362           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     363           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     364           0 :                 return MsgValueError;
     365             :             }
     366           0 :             if ((!(Read((&(deviceUniqueIdUTF8)), (&(msg__)), (&(iter__)))))) {
     367           0 :                 FatalError("Error deserializing 'nsCString'");
     368           0 :                 return MsgValueError;
     369             :             }
     370             :             // Sentinel = 'deviceUniqueIdUTF8'
     371           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1853575775)))) {
     372           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     373           0 :                 return MsgValueError;
     374             :             }
     375           0 :             (msg__).EndRead(iter__, (msg__).type());
     376           0 :             PCameras::Transition(PCameras::Msg_NumberOfCapabilities__ID, (&(mState)));
     377           0 :             if ((!(RecvNumberOfCapabilities(mozilla::Move(engine), mozilla::Move(deviceUniqueIdUTF8))))) {
     378           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     379             :                 // Error handled in mozilla::ipc::IPCResult
     380           0 :                 return MsgProcessingError;
     381             :             }
     382             : 
     383           0 :             return MsgProcessed;
     384             :         }
     385             :     case PCameras::Msg_GetCaptureCapability__ID:
     386             :         {
     387           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     388           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     389             :             }
     390           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_GetCaptureCapability", OTHER);
     391             : 
     392           0 :             PickleIterator iter__(msg__);
     393             :             CaptureEngine engine;
     394           0 :             nsCString unique_idUTF8;
     395             :             int capability_number;
     396             : 
     397           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     398           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     399           0 :                 return MsgValueError;
     400             :             }
     401             :             // Sentinel = 'engine'
     402           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     403           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     404           0 :                 return MsgValueError;
     405             :             }
     406           0 :             if ((!(Read((&(unique_idUTF8)), (&(msg__)), (&(iter__)))))) {
     407           0 :                 FatalError("Error deserializing 'nsCString'");
     408           0 :                 return MsgValueError;
     409             :             }
     410             :             // Sentinel = 'unique_idUTF8'
     411           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1172699115)))) {
     412           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     413           0 :                 return MsgValueError;
     414             :             }
     415           0 :             if ((!(Read((&(capability_number)), (&(msg__)), (&(iter__)))))) {
     416           0 :                 FatalError("Error deserializing 'int'");
     417           0 :                 return MsgValueError;
     418             :             }
     419             :             // Sentinel = 'capability_number'
     420           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2978179015)))) {
     421           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int'");
     422           0 :                 return MsgValueError;
     423             :             }
     424           0 :             (msg__).EndRead(iter__, (msg__).type());
     425           0 :             PCameras::Transition(PCameras::Msg_GetCaptureCapability__ID, (&(mState)));
     426           0 :             if ((!(RecvGetCaptureCapability(mozilla::Move(engine), mozilla::Move(unique_idUTF8), mozilla::Move(capability_number))))) {
     427           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     428             :                 // Error handled in mozilla::ipc::IPCResult
     429           0 :                 return MsgProcessingError;
     430             :             }
     431             : 
     432           0 :             return MsgProcessed;
     433             :         }
     434             :     case PCameras::Msg_GetCaptureDevice__ID:
     435             :         {
     436           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     437           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     438             :             }
     439           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_GetCaptureDevice", OTHER);
     440             : 
     441           0 :             PickleIterator iter__(msg__);
     442             :             CaptureEngine engine;
     443             :             int num;
     444             : 
     445           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     446           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     447           0 :                 return MsgValueError;
     448             :             }
     449             :             // Sentinel = 'engine'
     450           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     451           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     452           0 :                 return MsgValueError;
     453             :             }
     454           0 :             if ((!(Read((&(num)), (&(msg__)), (&(iter__)))))) {
     455           0 :                 FatalError("Error deserializing 'int'");
     456           0 :                 return MsgValueError;
     457             :             }
     458             :             // Sentinel = 'num'
     459           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2933843091)))) {
     460           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int'");
     461           0 :                 return MsgValueError;
     462             :             }
     463           0 :             (msg__).EndRead(iter__, (msg__).type());
     464           0 :             PCameras::Transition(PCameras::Msg_GetCaptureDevice__ID, (&(mState)));
     465           0 :             if ((!(RecvGetCaptureDevice(mozilla::Move(engine), mozilla::Move(num))))) {
     466           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     467             :                 // Error handled in mozilla::ipc::IPCResult
     468           0 :                 return MsgProcessingError;
     469             :             }
     470             : 
     471           0 :             return MsgProcessed;
     472             :         }
     473             :     case PCameras::Msg_AllocateCaptureDevice__ID:
     474             :         {
     475           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     476           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     477             :             }
     478           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_AllocateCaptureDevice", OTHER);
     479             : 
     480           0 :             PickleIterator iter__(msg__);
     481             :             CaptureEngine engine;
     482           0 :             nsCString unique_idUTF8;
     483           0 :             PrincipalInfo principal;
     484             : 
     485           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     486           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     487           0 :                 return MsgValueError;
     488             :             }
     489             :             // Sentinel = 'engine'
     490           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     491           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     492           0 :                 return MsgValueError;
     493             :             }
     494           0 :             if ((!(Read((&(unique_idUTF8)), (&(msg__)), (&(iter__)))))) {
     495           0 :                 FatalError("Error deserializing 'nsCString'");
     496           0 :                 return MsgValueError;
     497             :             }
     498             :             // Sentinel = 'unique_idUTF8'
     499           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1172699115)))) {
     500           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     501           0 :                 return MsgValueError;
     502             :             }
     503           0 :             if ((!(Read((&(principal)), (&(msg__)), (&(iter__)))))) {
     504           0 :                 FatalError("Error deserializing 'PrincipalInfo'");
     505           0 :                 return MsgValueError;
     506             :             }
     507             :             // Sentinel = 'principal'
     508           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) {
     509           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
     510           0 :                 return MsgValueError;
     511             :             }
     512           0 :             (msg__).EndRead(iter__, (msg__).type());
     513           0 :             PCameras::Transition(PCameras::Msg_AllocateCaptureDevice__ID, (&(mState)));
     514           0 :             if ((!(RecvAllocateCaptureDevice(mozilla::Move(engine), mozilla::Move(unique_idUTF8), mozilla::Move(principal))))) {
     515           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     516             :                 // Error handled in mozilla::ipc::IPCResult
     517           0 :                 return MsgProcessingError;
     518             :             }
     519             : 
     520           0 :             return MsgProcessed;
     521             :         }
     522             :     case PCameras::Msg_ReleaseCaptureDevice__ID:
     523             :         {
     524           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     525           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     526             :             }
     527           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_ReleaseCaptureDevice", OTHER);
     528             : 
     529           0 :             PickleIterator iter__(msg__);
     530             :             CaptureEngine engine;
     531             :             int numdev;
     532             : 
     533           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     534           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     535           0 :                 return MsgValueError;
     536             :             }
     537             :             // Sentinel = 'engine'
     538           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     539           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     540           0 :                 return MsgValueError;
     541             :             }
     542           0 :             if ((!(Read((&(numdev)), (&(msg__)), (&(iter__)))))) {
     543           0 :                 FatalError("Error deserializing 'int'");
     544           0 :                 return MsgValueError;
     545             :             }
     546             :             // Sentinel = 'numdev'
     547           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2469121787)))) {
     548           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int'");
     549           0 :                 return MsgValueError;
     550             :             }
     551           0 :             (msg__).EndRead(iter__, (msg__).type());
     552           0 :             PCameras::Transition(PCameras::Msg_ReleaseCaptureDevice__ID, (&(mState)));
     553           0 :             if ((!(RecvReleaseCaptureDevice(mozilla::Move(engine), mozilla::Move(numdev))))) {
     554           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     555             :                 // Error handled in mozilla::ipc::IPCResult
     556           0 :                 return MsgProcessingError;
     557             :             }
     558             : 
     559           0 :             return MsgProcessed;
     560             :         }
     561             :     case PCameras::Msg_StartCapture__ID:
     562             :         {
     563           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     564           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     565             :             }
     566           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_StartCapture", OTHER);
     567             : 
     568           0 :             PickleIterator iter__(msg__);
     569             :             CaptureEngine engine;
     570             :             int numdev;
     571           0 :             VideoCaptureCapability capability;
     572             : 
     573           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     574           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     575           0 :                 return MsgValueError;
     576             :             }
     577             :             // Sentinel = 'engine'
     578           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     579           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     580           0 :                 return MsgValueError;
     581             :             }
     582           0 :             if ((!(Read((&(numdev)), (&(msg__)), (&(iter__)))))) {
     583           0 :                 FatalError("Error deserializing 'int'");
     584           0 :                 return MsgValueError;
     585             :             }
     586             :             // Sentinel = 'numdev'
     587           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2469121787)))) {
     588           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int'");
     589           0 :                 return MsgValueError;
     590             :             }
     591           0 :             if ((!(Read((&(capability)), (&(msg__)), (&(iter__)))))) {
     592           0 :                 FatalError("Error deserializing 'VideoCaptureCapability'");
     593           0 :                 return MsgValueError;
     594             :             }
     595             :             // Sentinel = 'capability'
     596           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2146873968)))) {
     597           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'VideoCaptureCapability'");
     598           0 :                 return MsgValueError;
     599             :             }
     600           0 :             (msg__).EndRead(iter__, (msg__).type());
     601           0 :             PCameras::Transition(PCameras::Msg_StartCapture__ID, (&(mState)));
     602           0 :             if ((!(RecvStartCapture(mozilla::Move(engine), mozilla::Move(numdev), mozilla::Move(capability))))) {
     603           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     604             :                 // Error handled in mozilla::ipc::IPCResult
     605           0 :                 return MsgProcessingError;
     606             :             }
     607             : 
     608           0 :             return MsgProcessed;
     609             :         }
     610             :     case PCameras::Msg_StopCapture__ID:
     611             :         {
     612           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     613           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     614             :             }
     615           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_StopCapture", OTHER);
     616             : 
     617           0 :             PickleIterator iter__(msg__);
     618             :             CaptureEngine engine;
     619             :             int numdev;
     620             : 
     621           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     622           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     623           0 :                 return MsgValueError;
     624             :             }
     625             :             // Sentinel = 'engine'
     626           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     627           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     628           0 :                 return MsgValueError;
     629             :             }
     630           0 :             if ((!(Read((&(numdev)), (&(msg__)), (&(iter__)))))) {
     631           0 :                 FatalError("Error deserializing 'int'");
     632           0 :                 return MsgValueError;
     633             :             }
     634             :             // Sentinel = 'numdev'
     635           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2469121787)))) {
     636           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'int'");
     637           0 :                 return MsgValueError;
     638             :             }
     639           0 :             (msg__).EndRead(iter__, (msg__).type());
     640           0 :             PCameras::Transition(PCameras::Msg_StopCapture__ID, (&(mState)));
     641           0 :             if ((!(RecvStopCapture(mozilla::Move(engine), mozilla::Move(numdev))))) {
     642           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     643             :                 // Error handled in mozilla::ipc::IPCResult
     644           0 :                 return MsgProcessingError;
     645             :             }
     646             : 
     647           0 :             return MsgProcessed;
     648             :         }
     649             :     case PCameras::Msg_ReleaseFrame__ID:
     650             :         {
     651           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     652           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     653             :             }
     654           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_ReleaseFrame", OTHER);
     655             : 
     656           0 :             PickleIterator iter__(msg__);
     657           0 :             Shmem s;
     658             : 
     659           0 :             if ((!(Read((&(s)), (&(msg__)), (&(iter__)))))) {
     660           0 :                 FatalError("Error deserializing 'Shmem'");
     661           0 :                 return MsgValueError;
     662             :             }
     663             :             // Sentinel = 's'
     664           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1835142386)))) {
     665           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
     666           0 :                 return MsgValueError;
     667             :             }
     668           0 :             (msg__).EndRead(iter__, (msg__).type());
     669           0 :             PCameras::Transition(PCameras::Msg_ReleaseFrame__ID, (&(mState)));
     670           0 :             if ((!(RecvReleaseFrame(mozilla::Move(s))))) {
     671           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     672             :                 // Error handled in mozilla::ipc::IPCResult
     673           0 :                 return MsgProcessingError;
     674             :             }
     675             : 
     676           0 :             return MsgProcessed;
     677             :         }
     678             :     case PCameras::Msg_AllDone__ID:
     679             :         {
     680           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     681           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     682             :             }
     683           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_AllDone", OTHER);
     684             : 
     685           0 :             PCameras::Transition(PCameras::Msg_AllDone__ID, (&(mState)));
     686           0 :             if ((!(RecvAllDone()))) {
     687           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     688             :                 // Error handled in mozilla::ipc::IPCResult
     689           0 :                 return MsgProcessingError;
     690             :             }
     691             : 
     692           0 :             return MsgProcessed;
     693             :         }
     694             :     case PCameras::Msg_EnsureInitialized__ID:
     695             :         {
     696           0 :             if (mozilla::ipc::LoggingEnabledFor("PCamerasParent")) {
     697           0 :                 mozilla::ipc::LogMessageForProtocol("PCamerasParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     698             :             }
     699           0 :             AUTO_PROFILER_LABEL("PCameras::Msg_EnsureInitialized", OTHER);
     700             : 
     701           0 :             PickleIterator iter__(msg__);
     702             :             CaptureEngine engine;
     703             : 
     704           0 :             if ((!(Read((&(engine)), (&(msg__)), (&(iter__)))))) {
     705           0 :                 FatalError("Error deserializing 'CaptureEngine'");
     706           0 :                 return MsgValueError;
     707             :             }
     708             :             // Sentinel = 'engine'
     709           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 749038912)))) {
     710           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'CaptureEngine'");
     711           0 :                 return MsgValueError;
     712             :             }
     713           0 :             (msg__).EndRead(iter__, (msg__).type());
     714           0 :             PCameras::Transition(PCameras::Msg_EnsureInitialized__ID, (&(mState)));
     715           0 :             if ((!(RecvEnsureInitialized(mozilla::Move(engine))))) {
     716           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     717             :                 // Error handled in mozilla::ipc::IPCResult
     718           0 :                 return MsgProcessingError;
     719             :             }
     720             : 
     721           0 :             return MsgProcessed;
     722             :         }
     723             :     default:
     724             :         {
     725           0 :             return MsgNotKnown;
     726             :         }
     727             :     }
     728             : }
     729             : 
     730           0 : auto PCamerasParent::OnMessageReceived(
     731             :         const Message& msg__,
     732             :         Message*& reply__) -> PCamerasParent::Result
     733             : {
     734           0 :     return MsgNotKnown;
     735             : }
     736             : 
     737           0 : auto PCamerasParent::OnCallReceived(
     738             :         const Message& msg__,
     739             :         Message*& reply__) -> PCamerasParent::Result
     740             : {
     741           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     742             :     return MsgNotKnown;
     743             : }
     744             : 
     745           0 : auto PCamerasParent::GetProtocolTypeId() -> int32_t
     746             : {
     747           0 :     return PCamerasMsgStart;
     748             : }
     749             : 
     750           0 : auto PCamerasParent::ProtocolName() const -> const char*
     751             : {
     752           0 :     return "PCamerasParent";
     753             : }
     754             : 
     755           0 : auto PCamerasParent::DestroySubtree(ActorDestroyReason why) -> void
     756             : {
     757             :     // Unregister from our manager.
     758           0 :     Unregister(Id());
     759             : 
     760             :     // Reject owning pending promises.
     761           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     762             : 
     763             :     // Finally, destroy "us".
     764           0 :     ActorDestroy(why);
     765           0 : }
     766             : 
     767           0 : auto PCamerasParent::DeallocSubtree() -> void
     768             : {
     769           0 : }
     770             : 
     771           0 : auto PCamerasParent::Write(
     772             :         const SystemPrincipalInfo& v__,
     773             :         Message* msg__) -> void
     774             : {
     775           0 : }
     776             : 
     777           0 : auto PCamerasParent::Read(
     778             :         SystemPrincipalInfo* v__,
     779             :         const Message* msg__,
     780             :         PickleIterator* iter__) -> bool
     781             : {
     782           0 :     return true;
     783             : }
     784             : 
     785           0 : auto PCamerasParent::Write(
     786             :         const nsTArray<PrincipalInfo>& v__,
     787             :         Message* msg__) -> void
     788             : {
     789           0 :     uint32_t length = (v__).Length();
     790           0 :     Write(length, msg__);
     791             :     // Sentinel = ('length', 'PrincipalInfo[]')
     792           0 :     (msg__)->WriteSentinel(1032188126);
     793             : 
     794           0 :     for (auto& elem : v__) {
     795           0 :         Write(elem, msg__);
     796             :         // Sentinel = 'PrincipalInfo[]'
     797           0 :         (msg__)->WriteSentinel(413380193);
     798             :     }
     799           0 : }
     800             : 
     801           0 : auto PCamerasParent::Read(
     802             :         nsTArray<PrincipalInfo>* v__,
     803             :         const Message* msg__,
     804             :         PickleIterator* iter__) -> bool
     805             : {
     806           0 :     nsTArray<PrincipalInfo> fa;
     807             :     uint32_t length;
     808           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     809           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
     810           0 :         return false;
     811             :     }
     812             :     // Sentinel = ('length', 'PrincipalInfo[]')
     813           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
     814           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
     815           0 :         return false;
     816             :     }
     817             : 
     818           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
     819           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     820           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     821           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
     822           0 :             return false;
     823             :         }
     824             :         // Sentinel = 'PrincipalInfo[]'
     825           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
     826           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
     827           0 :             return false;
     828             :         }
     829             :     }
     830           0 :     (v__)->SwapElements(fa);
     831           0 :     return true;
     832             : }
     833             : 
     834           0 : auto PCamerasParent::Write(
     835             :         const VideoFrameProperties& v__,
     836             :         Message* msg__) -> void
     837             : {
     838           0 :     Write((v__).bufferSize(), msg__);
     839             :     // Sentinel = 'bufferSize'
     840           0 :     (msg__)->WriteSentinel(3444538779);
     841           0 :     Write((v__).timeStamp(), msg__);
     842             :     // Sentinel = 'timeStamp'
     843           0 :     (msg__)->WriteSentinel(988250409);
     844           0 :     Write((v__).ntpTimeMs(), msg__);
     845             :     // Sentinel = 'ntpTimeMs'
     846           0 :     (msg__)->WriteSentinel(2007070548);
     847           0 :     Write((v__).renderTimeMs(), msg__);
     848             :     // Sentinel = 'renderTimeMs'
     849           0 :     (msg__)->WriteSentinel(1309514403);
     850           0 :     Write((v__).rotation(), msg__);
     851             :     // Sentinel = 'rotation'
     852           0 :     (msg__)->WriteSentinel(289872474);
     853           0 :     Write((v__).yAllocatedSize(), msg__);
     854             :     // Sentinel = 'yAllocatedSize'
     855           0 :     (msg__)->WriteSentinel(328682969);
     856           0 :     Write((v__).uAllocatedSize(), msg__);
     857             :     // Sentinel = 'uAllocatedSize'
     858           0 :     (msg__)->WriteSentinel(304689277);
     859           0 :     Write((v__).vAllocatedSize(), msg__);
     860             :     // Sentinel = 'vAllocatedSize'
     861           0 :     (msg__)->WriteSentinel(3141825636);
     862           0 :     Write((v__).width(), msg__);
     863             :     // Sentinel = 'width'
     864           0 :     (msg__)->WriteSentinel(1444841265);
     865           0 :     Write((v__).height(), msg__);
     866             :     // Sentinel = 'height'
     867           0 :     (msg__)->WriteSentinel(440091919);
     868           0 :     Write((v__).yStride(), msg__);
     869             :     // Sentinel = 'yStride'
     870           0 :     (msg__)->WriteSentinel(2975587197);
     871           0 :     Write((v__).uStride(), msg__);
     872             :     // Sentinel = 'uStride'
     873           0 :     (msg__)->WriteSentinel(4174183513);
     874           0 :     Write((v__).vStride(), msg__);
     875             :     // Sentinel = 'vStride'
     876           0 :     (msg__)->WriteSentinel(1758048210);
     877           0 : }
     878             : 
     879           0 : auto PCamerasParent::Read(
     880             :         VideoFrameProperties* v__,
     881             :         const Message* msg__,
     882             :         PickleIterator* iter__) -> bool
     883             : {
     884           0 :     if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
     885           0 :         FatalError("Error deserializing 'bufferSize' (size_t) member of 'VideoFrameProperties'");
     886           0 :         return false;
     887             :     }
     888             :     // Sentinel = 'bufferSize'
     889           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
     890           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (size_t) member of 'VideoFrameProperties'");
     891           0 :         return false;
     892             :     }
     893           0 :     if ((!(Read((&((v__)->timeStamp())), msg__, iter__)))) {
     894           0 :         FatalError("Error deserializing 'timeStamp' (uint32_t) member of 'VideoFrameProperties'");
     895           0 :         return false;
     896             :     }
     897             :     // Sentinel = 'timeStamp'
     898           0 :     if ((!((msg__)->ReadSentinel(iter__, 988250409)))) {
     899           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'timeStamp' (uint32_t) member of 'VideoFrameProperties'");
     900           0 :         return false;
     901             :     }
     902           0 :     if ((!(Read((&((v__)->ntpTimeMs())), msg__, iter__)))) {
     903           0 :         FatalError("Error deserializing 'ntpTimeMs' (int64_t) member of 'VideoFrameProperties'");
     904           0 :         return false;
     905             :     }
     906             :     // Sentinel = 'ntpTimeMs'
     907           0 :     if ((!((msg__)->ReadSentinel(iter__, 2007070548)))) {
     908           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ntpTimeMs' (int64_t) member of 'VideoFrameProperties'");
     909           0 :         return false;
     910             :     }
     911           0 :     if ((!(Read((&((v__)->renderTimeMs())), msg__, iter__)))) {
     912           0 :         FatalError("Error deserializing 'renderTimeMs' (int64_t) member of 'VideoFrameProperties'");
     913           0 :         return false;
     914             :     }
     915             :     // Sentinel = 'renderTimeMs'
     916           0 :     if ((!((msg__)->ReadSentinel(iter__, 1309514403)))) {
     917           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'renderTimeMs' (int64_t) member of 'VideoFrameProperties'");
     918           0 :         return false;
     919             :     }
     920           0 :     if ((!(Read((&((v__)->rotation())), msg__, iter__)))) {
     921           0 :         FatalError("Error deserializing 'rotation' (int) member of 'VideoFrameProperties'");
     922           0 :         return false;
     923             :     }
     924             :     // Sentinel = 'rotation'
     925           0 :     if ((!((msg__)->ReadSentinel(iter__, 289872474)))) {
     926           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'rotation' (int) member of 'VideoFrameProperties'");
     927           0 :         return false;
     928             :     }
     929           0 :     if ((!(Read((&((v__)->yAllocatedSize())), msg__, iter__)))) {
     930           0 :         FatalError("Error deserializing 'yAllocatedSize' (int) member of 'VideoFrameProperties'");
     931           0 :         return false;
     932             :     }
     933             :     // Sentinel = 'yAllocatedSize'
     934           0 :     if ((!((msg__)->ReadSentinel(iter__, 328682969)))) {
     935           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'yAllocatedSize' (int) member of 'VideoFrameProperties'");
     936           0 :         return false;
     937             :     }
     938           0 :     if ((!(Read((&((v__)->uAllocatedSize())), msg__, iter__)))) {
     939           0 :         FatalError("Error deserializing 'uAllocatedSize' (int) member of 'VideoFrameProperties'");
     940           0 :         return false;
     941             :     }
     942             :     // Sentinel = 'uAllocatedSize'
     943           0 :     if ((!((msg__)->ReadSentinel(iter__, 304689277)))) {
     944           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uAllocatedSize' (int) member of 'VideoFrameProperties'");
     945           0 :         return false;
     946             :     }
     947           0 :     if ((!(Read((&((v__)->vAllocatedSize())), msg__, iter__)))) {
     948           0 :         FatalError("Error deserializing 'vAllocatedSize' (int) member of 'VideoFrameProperties'");
     949           0 :         return false;
     950             :     }
     951             :     // Sentinel = 'vAllocatedSize'
     952           0 :     if ((!((msg__)->ReadSentinel(iter__, 3141825636)))) {
     953           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'vAllocatedSize' (int) member of 'VideoFrameProperties'");
     954           0 :         return false;
     955             :     }
     956           0 :     if ((!(Read((&((v__)->width())), msg__, iter__)))) {
     957           0 :         FatalError("Error deserializing 'width' (int) member of 'VideoFrameProperties'");
     958           0 :         return false;
     959             :     }
     960             :     // Sentinel = 'width'
     961           0 :     if ((!((msg__)->ReadSentinel(iter__, 1444841265)))) {
     962           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'width' (int) member of 'VideoFrameProperties'");
     963           0 :         return false;
     964             :     }
     965           0 :     if ((!(Read((&((v__)->height())), msg__, iter__)))) {
     966           0 :         FatalError("Error deserializing 'height' (int) member of 'VideoFrameProperties'");
     967           0 :         return false;
     968             :     }
     969             :     // Sentinel = 'height'
     970           0 :     if ((!((msg__)->ReadSentinel(iter__, 440091919)))) {
     971           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'height' (int) member of 'VideoFrameProperties'");
     972           0 :         return false;
     973             :     }
     974           0 :     if ((!(Read((&((v__)->yStride())), msg__, iter__)))) {
     975           0 :         FatalError("Error deserializing 'yStride' (int) member of 'VideoFrameProperties'");
     976           0 :         return false;
     977             :     }
     978             :     // Sentinel = 'yStride'
     979           0 :     if ((!((msg__)->ReadSentinel(iter__, 2975587197)))) {
     980           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'yStride' (int) member of 'VideoFrameProperties'");
     981           0 :         return false;
     982             :     }
     983           0 :     if ((!(Read((&((v__)->uStride())), msg__, iter__)))) {
     984           0 :         FatalError("Error deserializing 'uStride' (int) member of 'VideoFrameProperties'");
     985           0 :         return false;
     986             :     }
     987             :     // Sentinel = 'uStride'
     988           0 :     if ((!((msg__)->ReadSentinel(iter__, 4174183513)))) {
     989           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'uStride' (int) member of 'VideoFrameProperties'");
     990           0 :         return false;
     991             :     }
     992           0 :     if ((!(Read((&((v__)->vStride())), msg__, iter__)))) {
     993           0 :         FatalError("Error deserializing 'vStride' (int) member of 'VideoFrameProperties'");
     994           0 :         return false;
     995             :     }
     996             :     // Sentinel = 'vStride'
     997           0 :     if ((!((msg__)->ReadSentinel(iter__, 1758048210)))) {
     998           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'vStride' (int) member of 'VideoFrameProperties'");
     999           0 :         return false;
    1000             :     }
    1001           0 :     return true;
    1002             : }
    1003             : 
    1004           0 : auto PCamerasParent::Write(
    1005             :         Shmem& v__,
    1006             :         Message* msg__) -> void
    1007             : {
    1008           0 :     IPC::WriteParam(msg__, v__);
    1009           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1010           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1011           0 : }
    1012             : 
    1013           0 : auto PCamerasParent::Read(
    1014             :         Shmem* v__,
    1015             :         const Message* msg__,
    1016             :         PickleIterator* iter__) -> bool
    1017             : {
    1018           0 :     Shmem tmp;
    1019           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
    1020           0 :         return false;
    1021             :     }
    1022             : 
    1023           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1024           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
    1025           0 :     if (rawmem) {
    1026           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
    1027           0 :         return true;
    1028             :     }
    1029           0 :     (*(v__)) = Shmem();
    1030           0 :     return true;
    1031             : }
    1032             : 
    1033           0 : auto PCamerasParent::Write(
    1034             :         const PrincipalInfo& v__,
    1035             :         Message* msg__) -> void
    1036             : {
    1037             :     typedef PrincipalInfo type__;
    1038           0 :     Write(int((v__).type()), msg__);
    1039             :     // Sentinel = 'PrincipalInfo'
    1040           0 :     (msg__)->WriteSentinel(4194518819);
    1041             : 
    1042           0 :     switch ((v__).type()) {
    1043             :     case type__::TContentPrincipalInfo:
    1044             :         {
    1045           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
    1046             :             // Sentinel = 'TContentPrincipalInfo'
    1047           0 :             (msg__)->WriteSentinel(3677342258);
    1048           0 :             return;
    1049             :         }
    1050             :     case type__::TSystemPrincipalInfo:
    1051             :         {
    1052           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
    1053             :             // Sentinel = 'TSystemPrincipalInfo'
    1054           0 :             (msg__)->WriteSentinel(3590603679);
    1055           0 :             return;
    1056             :         }
    1057             :     case type__::TNullPrincipalInfo:
    1058             :         {
    1059           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
    1060             :             // Sentinel = 'TNullPrincipalInfo'
    1061           0 :             (msg__)->WriteSentinel(3477774965);
    1062           0 :             return;
    1063             :         }
    1064             :     case type__::TExpandedPrincipalInfo:
    1065             :         {
    1066           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
    1067             :             // Sentinel = 'TExpandedPrincipalInfo'
    1068           0 :             (msg__)->WriteSentinel(589324917);
    1069           0 :             return;
    1070             :         }
    1071             :     default:
    1072             :         {
    1073           0 :             FatalError("unknown union type");
    1074           0 :             return;
    1075             :         }
    1076             :     }
    1077             : }
    1078             : 
    1079           0 : auto PCamerasParent::Read(
    1080             :         PrincipalInfo* v__,
    1081             :         const Message* msg__,
    1082             :         PickleIterator* iter__) -> bool
    1083             : {
    1084             :     typedef PrincipalInfo type__;
    1085             :     int type;
    1086           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1087           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
    1088           0 :         return false;
    1089             :     }
    1090             :     // Sentinel = 'PrincipalInfo'
    1091           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
    1092           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
    1093           0 :         return false;
    1094             :     }
    1095             : 
    1096           0 :     switch (type) {
    1097             :     case type__::TContentPrincipalInfo:
    1098             :         {
    1099           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
    1100           0 :             (*(v__)) = tmp;
    1101           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
    1102           0 :                 FatalError("Error deserializing Union type");
    1103           0 :                 return false;
    1104             :             }
    1105             :             // Sentinel = 'TContentPrincipalInfo'
    1106           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
    1107           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1108           0 :                 return false;
    1109             :             }
    1110           0 :             return true;
    1111             :         }
    1112             :     case type__::TSystemPrincipalInfo:
    1113             :         {
    1114           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
    1115           0 :             (*(v__)) = tmp;
    1116           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
    1117           0 :                 FatalError("Error deserializing Union type");
    1118           0 :                 return false;
    1119             :             }
    1120             :             // Sentinel = 'TSystemPrincipalInfo'
    1121           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
    1122           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1123           0 :                 return false;
    1124             :             }
    1125           0 :             return true;
    1126             :         }
    1127             :     case type__::TNullPrincipalInfo:
    1128             :         {
    1129           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
    1130           0 :             (*(v__)) = tmp;
    1131           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
    1132           0 :                 FatalError("Error deserializing Union type");
    1133           0 :                 return false;
    1134             :             }
    1135             :             // Sentinel = 'TNullPrincipalInfo'
    1136           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
    1137           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1138           0 :                 return false;
    1139             :             }
    1140           0 :             return true;
    1141             :         }
    1142             :     case type__::TExpandedPrincipalInfo:
    1143             :         {
    1144           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
    1145           0 :             (*(v__)) = tmp;
    1146           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
    1147           0 :                 FatalError("Error deserializing Union type");
    1148           0 :                 return false;
    1149             :             }
    1150             :             // Sentinel = 'TExpandedPrincipalInfo'
    1151           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
    1152           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1153           0 :                 return false;
    1154             :             }
    1155           0 :             return true;
    1156             :         }
    1157             :     default:
    1158             :         {
    1159           0 :             FatalError("unknown union type");
    1160           0 :             return false;
    1161             :         }
    1162             :     }
    1163             : }
    1164             : 
    1165           0 : auto PCamerasParent::Write(
    1166             :         const ContentPrincipalInfoOriginNoSuffix& v__,
    1167             :         Message* msg__) -> void
    1168             : {
    1169             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
    1170           0 :     Write(int((v__).type()), msg__);
    1171             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
    1172           0 :     (msg__)->WriteSentinel(2442066713);
    1173             : 
    1174           0 :     switch ((v__).type()) {
    1175             :     case type__::TnsCString:
    1176             :         {
    1177           0 :             Write((v__).get_nsCString(), msg__);
    1178             :             // Sentinel = 'TnsCString'
    1179           0 :             (msg__)->WriteSentinel(2427411293);
    1180           0 :             return;
    1181             :         }
    1182             :     case type__::Tvoid_t:
    1183             :         {
    1184           0 :             Write((v__).get_void_t(), msg__);
    1185             :             // Sentinel = 'Tvoid_t'
    1186           0 :             (msg__)->WriteSentinel(3041273328);
    1187           0 :             return;
    1188             :         }
    1189             :     default:
    1190             :         {
    1191           0 :             FatalError("unknown union type");
    1192           0 :             return;
    1193             :         }
    1194             :     }
    1195             : }
    1196             : 
    1197           0 : auto PCamerasParent::Read(
    1198             :         ContentPrincipalInfoOriginNoSuffix* v__,
    1199             :         const Message* msg__,
    1200             :         PickleIterator* iter__) -> bool
    1201             : {
    1202             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
    1203             :     int type;
    1204           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1205           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
    1206           0 :         return false;
    1207             :     }
    1208             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
    1209           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
    1210           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
    1211           0 :         return false;
    1212             :     }
    1213             : 
    1214           0 :     switch (type) {
    1215             :     case type__::TnsCString:
    1216             :         {
    1217           0 :             nsCString tmp = nsCString();
    1218           0 :             (*(v__)) = tmp;
    1219           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
    1220           0 :                 FatalError("Error deserializing Union type");
    1221           0 :                 return false;
    1222             :             }
    1223             :             // Sentinel = 'TnsCString'
    1224           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
    1225           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1226           0 :                 return false;
    1227             :             }
    1228           0 :             return true;
    1229             :         }
    1230             :     case type__::Tvoid_t:
    1231             :         {
    1232             :             void_t tmp = void_t();
    1233           0 :             (*(v__)) = tmp;
    1234           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1235           0 :                 FatalError("Error deserializing Union type");
    1236           0 :                 return false;
    1237             :             }
    1238             :             // Sentinel = 'Tvoid_t'
    1239           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1240           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1241           0 :                 return false;
    1242             :             }
    1243           0 :             return true;
    1244             :         }
    1245             :     default:
    1246             :         {
    1247           0 :             FatalError("unknown union type");
    1248           0 :             return false;
    1249             :         }
    1250             :     }
    1251             : }
    1252             : 
    1253           0 : auto PCamerasParent::Write(
    1254             :         const ContentPrincipalInfo& v__,
    1255             :         Message* msg__) -> void
    1256             : {
    1257           0 :     Write((v__).attrs(), msg__);
    1258             :     // Sentinel = 'attrs'
    1259           0 :     (msg__)->WriteSentinel(3014987797);
    1260           0 :     Write((v__).originNoSuffix(), msg__);
    1261             :     // Sentinel = 'originNoSuffix'
    1262           0 :     (msg__)->WriteSentinel(2833071422);
    1263           0 :     Write((v__).spec(), msg__);
    1264             :     // Sentinel = 'spec'
    1265           0 :     (msg__)->WriteSentinel(1630740541);
    1266           0 : }
    1267             : 
    1268           0 : auto PCamerasParent::Read(
    1269             :         ContentPrincipalInfo* v__,
    1270             :         const Message* msg__,
    1271             :         PickleIterator* iter__) -> bool
    1272             : {
    1273           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1274           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    1275           0 :         return false;
    1276             :     }
    1277             :     // Sentinel = 'attrs'
    1278           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1279           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    1280           0 :         return false;
    1281             :     }
    1282           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
    1283           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    1284           0 :         return false;
    1285             :     }
    1286             :     // Sentinel = 'originNoSuffix'
    1287           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
    1288           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    1289           0 :         return false;
    1290             :     }
    1291           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1292           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    1293           0 :         return false;
    1294             :     }
    1295             :     // Sentinel = 'spec'
    1296           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1297           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    1298           0 :         return false;
    1299             :     }
    1300           0 :     return true;
    1301             : }
    1302             : 
    1303           0 : auto PCamerasParent::Write(
    1304             :         const NullPrincipalInfo& v__,
    1305             :         Message* msg__) -> void
    1306             : {
    1307           0 :     Write((v__).attrs(), msg__);
    1308             :     // Sentinel = 'attrs'
    1309           0 :     (msg__)->WriteSentinel(3014987797);
    1310           0 :     Write((v__).spec(), msg__);
    1311             :     // Sentinel = 'spec'
    1312           0 :     (msg__)->WriteSentinel(1630740541);
    1313           0 : }
    1314             : 
    1315           0 : auto PCamerasParent::Read(
    1316             :         NullPrincipalInfo* v__,
    1317             :         const Message* msg__,
    1318             :         PickleIterator* iter__) -> bool
    1319             : {
    1320           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1321           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1322           0 :         return false;
    1323             :     }
    1324             :     // Sentinel = 'attrs'
    1325           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1326           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1327           0 :         return false;
    1328             :     }
    1329           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1330           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1331           0 :         return false;
    1332             :     }
    1333             :     // Sentinel = 'spec'
    1334           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1335           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1336           0 :         return false;
    1337             :     }
    1338           0 :     return true;
    1339             : }
    1340             : 
    1341           0 : auto PCamerasParent::Write(
    1342             :         const ExpandedPrincipalInfo& v__,
    1343             :         Message* msg__) -> void
    1344             : {
    1345           0 :     Write((v__).attrs(), msg__);
    1346             :     // Sentinel = 'attrs'
    1347           0 :     (msg__)->WriteSentinel(3014987797);
    1348           0 :     Write((v__).whitelist(), msg__);
    1349             :     // Sentinel = 'whitelist'
    1350           0 :     (msg__)->WriteSentinel(3731637258);
    1351           0 : }
    1352             : 
    1353           0 : auto PCamerasParent::Read(
    1354             :         ExpandedPrincipalInfo* v__,
    1355             :         const Message* msg__,
    1356             :         PickleIterator* iter__) -> bool
    1357             : {
    1358           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1359           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
    1360           0 :         return false;
    1361             :     }
    1362             :     // Sentinel = 'attrs'
    1363           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1364           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
    1365           0 :         return false;
    1366             :     }
    1367           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
    1368           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
    1369           0 :         return false;
    1370             :     }
    1371             :     // Sentinel = 'whitelist'
    1372           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
    1373           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
    1374           0 :         return false;
    1375             :     }
    1376           0 :     return true;
    1377             : }
    1378             : 
    1379           0 : auto PCamerasParent::Write(
    1380             :         const PCamerasParent* v__,
    1381             :         Message* msg__,
    1382             :         bool nullable__) -> void
    1383             : {
    1384             :     int32_t id;
    1385           0 :     if ((!(v__))) {
    1386           0 :         if ((!(nullable__))) {
    1387           0 :             FatalError("NULL actor value passed to non-nullable param");
    1388             :         }
    1389           0 :         id = 0;
    1390             :     }
    1391             :     else {
    1392           0 :         id = (v__)->Id();
    1393           0 :         if ((1) == (id)) {
    1394           0 :             FatalError("actor has been |delete|d");
    1395             :         }
    1396             :     }
    1397             : 
    1398           0 :     Write(id, msg__);
    1399           0 : }
    1400             : 
    1401           0 : auto PCamerasParent::Read(
    1402             :         PCamerasParent** v__,
    1403             :         const Message* msg__,
    1404             :         PickleIterator* iter__,
    1405             :         bool nullable__) -> bool
    1406             : {
    1407           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCameras", PCamerasMsgStart);
    1408           0 :     if ((actor).isNothing()) {
    1409           0 :         return false;
    1410             :     }
    1411             : 
    1412           0 :     (*(v__)) = static_cast<PCamerasParent*>((actor).value());
    1413           0 :     return true;
    1414             : }
    1415             : 
    1416           0 : auto PCamerasParent::Write(
    1417             :         const VideoCaptureCapability& v__,
    1418             :         Message* msg__) -> void
    1419             : {
    1420           0 :     Write((v__).width(), msg__);
    1421             :     // Sentinel = 'width'
    1422           0 :     (msg__)->WriteSentinel(1444841265);
    1423           0 :     Write((v__).height(), msg__);
    1424             :     // Sentinel = 'height'
    1425           0 :     (msg__)->WriteSentinel(440091919);
    1426           0 :     Write((v__).maxFPS(), msg__);
    1427             :     // Sentinel = 'maxFPS'
    1428           0 :     (msg__)->WriteSentinel(455546781);
    1429           0 :     Write((v__).expectedCaptureDelay(), msg__);
    1430             :     // Sentinel = 'expectedCaptureDelay'
    1431           0 :     (msg__)->WriteSentinel(1711170115);
    1432           0 :     Write((v__).rawType(), msg__);
    1433             :     // Sentinel = 'rawType'
    1434           0 :     (msg__)->WriteSentinel(112604069);
    1435           0 :     Write((v__).codecType(), msg__);
    1436             :     // Sentinel = 'codecType'
    1437           0 :     (msg__)->WriteSentinel(133774863);
    1438           0 :     Write((v__).interlaced(), msg__);
    1439             :     // Sentinel = 'interlaced'
    1440           0 :     (msg__)->WriteSentinel(3391760415);
    1441           0 : }
    1442             : 
    1443           0 : auto PCamerasParent::Read(
    1444             :         VideoCaptureCapability* v__,
    1445             :         const Message* msg__,
    1446             :         PickleIterator* iter__) -> bool
    1447             : {
    1448           0 :     if ((!(Read((&((v__)->width())), msg__, iter__)))) {
    1449           0 :         FatalError("Error deserializing 'width' (int) member of 'VideoCaptureCapability'");
    1450           0 :         return false;
    1451             :     }
    1452             :     // Sentinel = 'width'
    1453           0 :     if ((!((msg__)->ReadSentinel(iter__, 1444841265)))) {
    1454           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'width' (int) member of 'VideoCaptureCapability'");
    1455           0 :         return false;
    1456             :     }
    1457           0 :     if ((!(Read((&((v__)->height())), msg__, iter__)))) {
    1458           0 :         FatalError("Error deserializing 'height' (int) member of 'VideoCaptureCapability'");
    1459           0 :         return false;
    1460             :     }
    1461             :     // Sentinel = 'height'
    1462           0 :     if ((!((msg__)->ReadSentinel(iter__, 440091919)))) {
    1463           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'height' (int) member of 'VideoCaptureCapability'");
    1464           0 :         return false;
    1465             :     }
    1466           0 :     if ((!(Read((&((v__)->maxFPS())), msg__, iter__)))) {
    1467           0 :         FatalError("Error deserializing 'maxFPS' (int) member of 'VideoCaptureCapability'");
    1468           0 :         return false;
    1469             :     }
    1470             :     // Sentinel = 'maxFPS'
    1471           0 :     if ((!((msg__)->ReadSentinel(iter__, 455546781)))) {
    1472           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'maxFPS' (int) member of 'VideoCaptureCapability'");
    1473           0 :         return false;
    1474             :     }
    1475           0 :     if ((!(Read((&((v__)->expectedCaptureDelay())), msg__, iter__)))) {
    1476           0 :         FatalError("Error deserializing 'expectedCaptureDelay' (int) member of 'VideoCaptureCapability'");
    1477           0 :         return false;
    1478             :     }
    1479             :     // Sentinel = 'expectedCaptureDelay'
    1480           0 :     if ((!((msg__)->ReadSentinel(iter__, 1711170115)))) {
    1481           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'expectedCaptureDelay' (int) member of 'VideoCaptureCapability'");
    1482           0 :         return false;
    1483             :     }
    1484           0 :     if ((!(Read((&((v__)->rawType())), msg__, iter__)))) {
    1485           0 :         FatalError("Error deserializing 'rawType' (int) member of 'VideoCaptureCapability'");
    1486           0 :         return false;
    1487             :     }
    1488             :     // Sentinel = 'rawType'
    1489           0 :     if ((!((msg__)->ReadSentinel(iter__, 112604069)))) {
    1490           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'rawType' (int) member of 'VideoCaptureCapability'");
    1491           0 :         return false;
    1492             :     }
    1493           0 :     if ((!(Read((&((v__)->codecType())), msg__, iter__)))) {
    1494           0 :         FatalError("Error deserializing 'codecType' (int) member of 'VideoCaptureCapability'");
    1495           0 :         return false;
    1496             :     }
    1497             :     // Sentinel = 'codecType'
    1498           0 :     if ((!((msg__)->ReadSentinel(iter__, 133774863)))) {
    1499           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'codecType' (int) member of 'VideoCaptureCapability'");
    1500           0 :         return false;
    1501             :     }
    1502           0 :     if ((!(Read((&((v__)->interlaced())), msg__, iter__)))) {
    1503           0 :         FatalError("Error deserializing 'interlaced' (bool) member of 'VideoCaptureCapability'");
    1504           0 :         return false;
    1505             :     }
    1506             :     // Sentinel = 'interlaced'
    1507           0 :     if ((!((msg__)->ReadSentinel(iter__, 3391760415)))) {
    1508           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'interlaced' (bool) member of 'VideoCaptureCapability'");
    1509           0 :         return false;
    1510             :     }
    1511           0 :     return true;
    1512             : }
    1513             : 
    1514             : 
    1515             : 
    1516             : } // namespace camera
    1517             : } // namespace mozilla

Generated by: LCOV version 1.13