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

Generated by: LCOV version 1.13