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

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/dom/PFileSystemRequest.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace dom {
      11             : namespace PFileSystemRequest {
      12             : 
      13             : nsresult
      14           0 : CreateEndpoints(
      15             :         base::ProcessId aParentDestPid,
      16             :         base::ProcessId aChildDestPid,
      17             :         mozilla::ipc::Endpoint<mozilla::dom::PFileSystemRequestParent>* aParent,
      18             :         mozilla::ipc::Endpoint<mozilla::dom::PFileSystemRequestChild>* aChild)
      19             : {
      20           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PFileSystemRequestMsgStart, PFileSystemRequestMsgStartChild, aParent, aChild);
      21             : }
      22             : void
      23           0 : Transition(
      24             :         MessageType msg,
      25             :         State* next)
      26             : {
      27           0 :     switch ((*(next))) {
      28             :     case __Null:
      29           0 :         if ((Msg___delete____ID) == (msg)) {
      30           0 :             (*(next)) = __Dead;
      31             :         }
      32           0 :         break;
      33             :     case __Dead:
      34           0 :         mozilla::ipc::LogicError("__delete__()d actor");
      35           0 :         break;
      36             :     default:
      37           0 :         mozilla::ipc::LogicError("corrupted actor state");
      38           0 :         break;
      39             :     }
      40           0 : }
      41             : IPC::Message*
      42           0 : Msg___delete__(int32_t routingId)
      43             : {
      44           0 :     return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PFileSystemRequest::Msg___delete__", true);
      45             : }
      46             : IPC::Message*
      47           0 : Reply___delete__(int32_t routingId)
      48             : {
      49           0 :     return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PFileSystemRequest::Reply___delete__", true);
      50             : }
      51             : 
      52             : } // namespace PFileSystemRequest
      53             : } // namespace dom
      54             : } // namespace mozilla
      55             : 
      56             : //-----------------------------------------------------------------------------
      57             : // Method definitions for the IPDL type |struct FileSystemFileResponse|
      58             : //
      59             : namespace mozilla {
      60             : namespace dom {
      61           0 : MOZ_IMPLICIT FileSystemFileResponse::FileSystemFileResponse()
      62             : {
      63           0 :     Init();
      64           0 : }
      65             : 
      66           0 : FileSystemFileResponse::~FileSystemFileResponse()
      67             : {
      68           0 : }
      69             : 
      70           0 : auto FileSystemFileResponse::operator==(const FileSystemFileResponse& _o) const -> bool
      71             : {
      72           0 :     if ((!((blob()) == ((_o).blob())))) {
      73           0 :         return false;
      74             :     }
      75           0 :     return true;
      76             : }
      77             : 
      78           0 : auto FileSystemFileResponse::operator!=(const FileSystemFileResponse& _o) const -> bool
      79             : {
      80           0 :     return (!(operator==(_o)));
      81             : }
      82             : 
      83           0 : auto FileSystemFileResponse::Init() -> void
      84             : {
      85           0 : }
      86             : 
      87           0 : auto FileSystemFileResponse::Assign(const IPCBlob& _blob) -> void
      88             : {
      89           0 :     blob_ = _blob;
      90           0 : }
      91             : 
      92             : } // namespace dom
      93             : } // namespace mozilla
      94             : 
      95             : //-----------------------------------------------------------------------------
      96             : // Method definitions for the IPDL type |struct FileSystemDirectoryResponse|
      97             : //
      98             : namespace mozilla {
      99             : namespace dom {
     100           0 : MOZ_IMPLICIT FileSystemDirectoryResponse::FileSystemDirectoryResponse() :
     101           0 :     realPath_()
     102             : {
     103           0 :     Init();
     104           0 : }
     105             : 
     106           0 : FileSystemDirectoryResponse::~FileSystemDirectoryResponse()
     107             : {
     108           0 : }
     109             : 
     110           0 : auto FileSystemDirectoryResponse::operator==(const FileSystemDirectoryResponse& _o) const -> bool
     111             : {
     112           0 :     if ((!((realPath()) == ((_o).realPath())))) {
     113           0 :         return false;
     114             :     }
     115           0 :     return true;
     116             : }
     117             : 
     118           0 : auto FileSystemDirectoryResponse::operator!=(const FileSystemDirectoryResponse& _o) const -> bool
     119             : {
     120           0 :     return (!(operator==(_o)));
     121             : }
     122             : 
     123           0 : auto FileSystemDirectoryResponse::Init() -> void
     124             : {
     125           0 : }
     126             : 
     127           0 : auto FileSystemDirectoryResponse::Assign(const nsString& _realPath) -> void
     128             : {
     129           0 :     realPath_ = _realPath;
     130           0 : }
     131             : 
     132             : } // namespace dom
     133             : } // namespace mozilla
     134             : 
     135             : //-----------------------------------------------------------------------------
     136             : // Method definitions for the IPDL type |struct FileSystemDirectoryListingResponseFile|
     137             : //
     138             : namespace mozilla {
     139             : namespace dom {
     140           0 : MOZ_IMPLICIT FileSystemDirectoryListingResponseFile::FileSystemDirectoryListingResponseFile()
     141             : {
     142           0 :     Init();
     143           0 : }
     144             : 
     145           0 : FileSystemDirectoryListingResponseFile::~FileSystemDirectoryListingResponseFile()
     146             : {
     147           0 : }
     148             : 
     149           0 : auto FileSystemDirectoryListingResponseFile::operator==(const FileSystemDirectoryListingResponseFile& _o) const -> bool
     150             : {
     151           0 :     if ((!((blob()) == ((_o).blob())))) {
     152           0 :         return false;
     153             :     }
     154           0 :     return true;
     155             : }
     156             : 
     157           0 : auto FileSystemDirectoryListingResponseFile::operator!=(const FileSystemDirectoryListingResponseFile& _o) const -> bool
     158             : {
     159           0 :     return (!(operator==(_o)));
     160             : }
     161             : 
     162           0 : auto FileSystemDirectoryListingResponseFile::Init() -> void
     163             : {
     164           0 : }
     165             : 
     166           0 : auto FileSystemDirectoryListingResponseFile::Assign(const IPCBlob& _blob) -> void
     167             : {
     168           0 :     blob_ = _blob;
     169           0 : }
     170             : 
     171             : } // namespace dom
     172             : } // namespace mozilla
     173             : 
     174             : //-----------------------------------------------------------------------------
     175             : // Method definitions for the IPDL type |struct FileSystemDirectoryListingResponseDirectory|
     176             : //
     177             : namespace mozilla {
     178             : namespace dom {
     179           0 : MOZ_IMPLICIT FileSystemDirectoryListingResponseDirectory::FileSystemDirectoryListingResponseDirectory() :
     180           0 :     directoryRealPath_()
     181             : {
     182           0 :     Init();
     183           0 : }
     184             : 
     185           0 : FileSystemDirectoryListingResponseDirectory::~FileSystemDirectoryListingResponseDirectory()
     186             : {
     187           0 : }
     188             : 
     189           0 : auto FileSystemDirectoryListingResponseDirectory::operator==(const FileSystemDirectoryListingResponseDirectory& _o) const -> bool
     190             : {
     191           0 :     if ((!((directoryRealPath()) == ((_o).directoryRealPath())))) {
     192           0 :         return false;
     193             :     }
     194           0 :     return true;
     195             : }
     196             : 
     197           0 : auto FileSystemDirectoryListingResponseDirectory::operator!=(const FileSystemDirectoryListingResponseDirectory& _o) const -> bool
     198             : {
     199           0 :     return (!(operator==(_o)));
     200             : }
     201             : 
     202           0 : auto FileSystemDirectoryListingResponseDirectory::Init() -> void
     203             : {
     204           0 : }
     205             : 
     206           0 : auto FileSystemDirectoryListingResponseDirectory::Assign(const nsString& _directoryRealPath) -> void
     207             : {
     208           0 :     directoryRealPath_ = _directoryRealPath;
     209           0 : }
     210             : 
     211             : } // namespace dom
     212             : } // namespace mozilla
     213             : 
     214             : //-----------------------------------------------------------------------------
     215             : // Method definitions for the IPDL type |union FileSystemDirectoryListingResponseData|
     216             : //
     217             : namespace mozilla {
     218             : namespace dom {
     219           0 : auto FileSystemDirectoryListingResponseData::MaybeDestroy(Type aNewType) -> bool
     220             : {
     221           0 :     if ((mType) == (T__None)) {
     222           0 :         return true;
     223             :     }
     224           0 :     if ((mType) == (aNewType)) {
     225           0 :         return false;
     226             :     }
     227           0 :     switch (mType) {
     228             :     case TFileSystemDirectoryListingResponseFile:
     229             :         {
     230           0 :             (ptr_FileSystemDirectoryListingResponseFile())->~FileSystemDirectoryListingResponseFile__tdef();
     231           0 :             break;
     232             :         }
     233             :     case TFileSystemDirectoryListingResponseDirectory:
     234             :         {
     235           0 :             (ptr_FileSystemDirectoryListingResponseDirectory())->~FileSystemDirectoryListingResponseDirectory__tdef();
     236           0 :             break;
     237             :         }
     238             :     default:
     239             :         {
     240           0 :             mozilla::ipc::LogicError("not reached");
     241           0 :             break;
     242             :         }
     243             :     }
     244           0 :     return true;
     245             : }
     246             : 
     247           0 : MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(const FileSystemDirectoryListingResponseFile& aOther)
     248             : {
     249           0 :     new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile(aOther);
     250           0 :     mType = TFileSystemDirectoryListingResponseFile;
     251           0 : }
     252             : 
     253           0 : MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(const FileSystemDirectoryListingResponseDirectory& aOther)
     254             : {
     255           0 :     new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory(aOther);
     256           0 :     mType = TFileSystemDirectoryListingResponseDirectory;
     257           0 : }
     258             : 
     259           0 : MOZ_IMPLICIT FileSystemDirectoryListingResponseData::FileSystemDirectoryListingResponseData(const FileSystemDirectoryListingResponseData& aOther)
     260             : {
     261           0 :     (aOther).AssertSanity();
     262           0 :     switch ((aOther).type()) {
     263             :     case TFileSystemDirectoryListingResponseFile:
     264             :         {
     265           0 :             new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile((aOther).get_FileSystemDirectoryListingResponseFile());
     266           0 :             break;
     267             :         }
     268             :     case TFileSystemDirectoryListingResponseDirectory:
     269             :         {
     270           0 :             new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory((aOther).get_FileSystemDirectoryListingResponseDirectory());
     271           0 :             break;
     272             :         }
     273             :     case T__None:
     274             :         {
     275           0 :             break;
     276             :         }
     277             :     default:
     278             :         {
     279           0 :             mozilla::ipc::LogicError("unreached");
     280           0 :             return;
     281             :         }
     282             :     }
     283           0 :     mType = (aOther).type();
     284             : }
     285             : 
     286           0 : FileSystemDirectoryListingResponseData::~FileSystemDirectoryListingResponseData()
     287             : {
     288           0 :     static_cast<void>(MaybeDestroy(T__None));
     289           0 : }
     290             : 
     291           0 : auto FileSystemDirectoryListingResponseData::operator=(const FileSystemDirectoryListingResponseFile& aRhs) -> FileSystemDirectoryListingResponseData&
     292             : {
     293           0 :     if (MaybeDestroy(TFileSystemDirectoryListingResponseFile)) {
     294           0 :         new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile;
     295             :     }
     296           0 :     (*(ptr_FileSystemDirectoryListingResponseFile())) = aRhs;
     297           0 :     mType = TFileSystemDirectoryListingResponseFile;
     298           0 :     return (*(this));
     299             : }
     300             : 
     301           0 : auto FileSystemDirectoryListingResponseData::operator=(const FileSystemDirectoryListingResponseDirectory& aRhs) -> FileSystemDirectoryListingResponseData&
     302             : {
     303           0 :     if (MaybeDestroy(TFileSystemDirectoryListingResponseDirectory)) {
     304           0 :         new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory;
     305             :     }
     306           0 :     (*(ptr_FileSystemDirectoryListingResponseDirectory())) = aRhs;
     307           0 :     mType = TFileSystemDirectoryListingResponseDirectory;
     308           0 :     return (*(this));
     309             : }
     310             : 
     311           0 : auto FileSystemDirectoryListingResponseData::operator=(const FileSystemDirectoryListingResponseData& aRhs) -> FileSystemDirectoryListingResponseData&
     312             : {
     313           0 :     (aRhs).AssertSanity();
     314           0 :     Type t = (aRhs).type();
     315           0 :     switch (t) {
     316             :     case TFileSystemDirectoryListingResponseFile:
     317             :         {
     318           0 :             if (MaybeDestroy(t)) {
     319           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseFile()) FileSystemDirectoryListingResponseFile;
     320             :             }
     321           0 :             (*(ptr_FileSystemDirectoryListingResponseFile())) = (aRhs).get_FileSystemDirectoryListingResponseFile();
     322           0 :             break;
     323             :         }
     324             :     case TFileSystemDirectoryListingResponseDirectory:
     325             :         {
     326           0 :             if (MaybeDestroy(t)) {
     327           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponseDirectory()) FileSystemDirectoryListingResponseDirectory;
     328             :             }
     329           0 :             (*(ptr_FileSystemDirectoryListingResponseDirectory())) = (aRhs).get_FileSystemDirectoryListingResponseDirectory();
     330           0 :             break;
     331             :         }
     332             :     case T__None:
     333             :         {
     334           0 :             static_cast<void>(MaybeDestroy(t));
     335           0 :             break;
     336             :         }
     337             :     default:
     338             :         {
     339           0 :             mozilla::ipc::LogicError("unreached");
     340           0 :             break;
     341             :         }
     342             :     }
     343           0 :     mType = t;
     344           0 :     return (*(this));
     345             : }
     346             : 
     347           0 : auto FileSystemDirectoryListingResponseData::operator==(const FileSystemDirectoryListingResponseFile& aRhs) const -> bool
     348             : {
     349           0 :     return (get_FileSystemDirectoryListingResponseFile()) == (aRhs);
     350             : }
     351             : 
     352           0 : auto FileSystemDirectoryListingResponseData::operator==(const FileSystemDirectoryListingResponseDirectory& aRhs) const -> bool
     353             : {
     354           0 :     return (get_FileSystemDirectoryListingResponseDirectory()) == (aRhs);
     355             : }
     356             : 
     357           0 : auto FileSystemDirectoryListingResponseData::operator==(const FileSystemDirectoryListingResponseData& aRhs) const -> bool
     358             : {
     359           0 :     if ((type()) != ((aRhs).type())) {
     360           0 :         return false;
     361             :     }
     362             : 
     363           0 :     switch (type()) {
     364             :     case TFileSystemDirectoryListingResponseFile:
     365             :         {
     366           0 :             return (get_FileSystemDirectoryListingResponseFile()) == ((aRhs).get_FileSystemDirectoryListingResponseFile());
     367             :         }
     368             :     case TFileSystemDirectoryListingResponseDirectory:
     369             :         {
     370           0 :             return (get_FileSystemDirectoryListingResponseDirectory()) == ((aRhs).get_FileSystemDirectoryListingResponseDirectory());
     371             :         }
     372             :     default:
     373             :         {
     374           0 :             mozilla::ipc::LogicError("unreached");
     375           0 :             return false;
     376             :         }
     377             :     }
     378             : }
     379             : 
     380           0 : auto FileSystemDirectoryListingResponseData::get(FileSystemDirectoryListingResponseFile* aOutValue) const -> void
     381             : {
     382           0 :     (*(aOutValue)) = get_FileSystemDirectoryListingResponseFile();
     383           0 : }
     384             : 
     385           0 : auto FileSystemDirectoryListingResponseData::get(FileSystemDirectoryListingResponseDirectory* aOutValue) const -> void
     386             : {
     387           0 :     (*(aOutValue)) = get_FileSystemDirectoryListingResponseDirectory();
     388           0 : }
     389             : 
     390             : } // namespace dom
     391             : } // namespace mozilla
     392             : 
     393             : //-----------------------------------------------------------------------------
     394             : // Method definitions for the IPDL type |struct FileSystemDirectoryListingResponse|
     395             : //
     396             : namespace mozilla {
     397             : namespace dom {
     398           0 : MOZ_IMPLICIT FileSystemDirectoryListingResponse::FileSystemDirectoryListingResponse()
     399             : {
     400           0 :     Init();
     401           0 : }
     402             : 
     403           0 : FileSystemDirectoryListingResponse::~FileSystemDirectoryListingResponse()
     404             : {
     405           0 : }
     406             : 
     407           0 : auto FileSystemDirectoryListingResponse::operator==(const FileSystemDirectoryListingResponse& _o) const -> bool
     408             : {
     409           0 :     if ((!((data()) == ((_o).data())))) {
     410           0 :         return false;
     411             :     }
     412           0 :     return true;
     413             : }
     414             : 
     415           0 : auto FileSystemDirectoryListingResponse::operator!=(const FileSystemDirectoryListingResponse& _o) const -> bool
     416             : {
     417           0 :     return (!(operator==(_o)));
     418             : }
     419             : 
     420           0 : auto FileSystemDirectoryListingResponse::Init() -> void
     421             : {
     422           0 : }
     423             : 
     424           0 : auto FileSystemDirectoryListingResponse::Assign(const nsTArray<FileSystemDirectoryListingResponseData>& _data) -> void
     425             : {
     426           0 :     data_ = _data;
     427           0 : }
     428             : 
     429             : } // namespace dom
     430             : } // namespace mozilla
     431             : 
     432             : //-----------------------------------------------------------------------------
     433             : // Method definitions for the IPDL type |struct FileSystemFilesResponse|
     434             : //
     435             : namespace mozilla {
     436             : namespace dom {
     437           0 : MOZ_IMPLICIT FileSystemFilesResponse::FileSystemFilesResponse()
     438             : {
     439           0 :     Init();
     440           0 : }
     441             : 
     442           0 : FileSystemFilesResponse::~FileSystemFilesResponse()
     443             : {
     444           0 : }
     445             : 
     446           0 : auto FileSystemFilesResponse::operator==(const FileSystemFilesResponse& _o) const -> bool
     447             : {
     448           0 :     if ((!((data()) == ((_o).data())))) {
     449           0 :         return false;
     450             :     }
     451           0 :     return true;
     452             : }
     453             : 
     454           0 : auto FileSystemFilesResponse::operator!=(const FileSystemFilesResponse& _o) const -> bool
     455             : {
     456           0 :     return (!(operator==(_o)));
     457             : }
     458             : 
     459           0 : auto FileSystemFilesResponse::Init() -> void
     460             : {
     461           0 : }
     462             : 
     463           0 : auto FileSystemFilesResponse::Assign(const nsTArray<FileSystemFileResponse>& _data) -> void
     464             : {
     465           0 :     data_ = _data;
     466           0 : }
     467             : 
     468             : } // namespace dom
     469             : } // namespace mozilla
     470             : 
     471             : //-----------------------------------------------------------------------------
     472             : // Method definitions for the IPDL type |struct FileSystemErrorResponse|
     473             : //
     474             : namespace mozilla {
     475             : namespace dom {
     476           0 : MOZ_IMPLICIT FileSystemErrorResponse::FileSystemErrorResponse() :
     477           0 :     error_()
     478             : {
     479           0 :     Init();
     480           0 : }
     481             : 
     482           0 : FileSystemErrorResponse::~FileSystemErrorResponse()
     483             : {
     484           0 : }
     485             : 
     486           0 : auto FileSystemErrorResponse::operator==(const FileSystemErrorResponse& _o) const -> bool
     487             : {
     488           0 :     if ((!((error()) == ((_o).error())))) {
     489           0 :         return false;
     490             :     }
     491           0 :     return true;
     492             : }
     493             : 
     494           0 : auto FileSystemErrorResponse::operator!=(const FileSystemErrorResponse& _o) const -> bool
     495             : {
     496           0 :     return (!(operator==(_o)));
     497             : }
     498             : 
     499           0 : auto FileSystemErrorResponse::Init() -> void
     500             : {
     501           0 : }
     502             : 
     503           0 : auto FileSystemErrorResponse::Assign(const nsresult& _error) -> void
     504             : {
     505           0 :     error_ = _error;
     506           0 : }
     507             : 
     508             : } // namespace dom
     509             : } // namespace mozilla
     510             : 
     511             : //-----------------------------------------------------------------------------
     512             : // Method definitions for the IPDL type |union FileSystemResponseValue|
     513             : //
     514             : namespace mozilla {
     515             : namespace dom {
     516           0 : auto FileSystemResponseValue::MaybeDestroy(Type aNewType) -> bool
     517             : {
     518           0 :     if ((mType) == (T__None)) {
     519           0 :         return true;
     520             :     }
     521           0 :     if ((mType) == (aNewType)) {
     522           0 :         return false;
     523             :     }
     524           0 :     switch (mType) {
     525             :     case TFileSystemDirectoryResponse:
     526             :         {
     527           0 :             (ptr_FileSystemDirectoryResponse())->~FileSystemDirectoryResponse__tdef();
     528           0 :             break;
     529             :         }
     530             :     case TFileSystemDirectoryListingResponse:
     531             :         {
     532           0 :             (ptr_FileSystemDirectoryListingResponse())->~FileSystemDirectoryListingResponse__tdef();
     533           0 :             break;
     534             :         }
     535             :     case TFileSystemFileResponse:
     536             :         {
     537           0 :             (ptr_FileSystemFileResponse())->~FileSystemFileResponse__tdef();
     538           0 :             break;
     539             :         }
     540             :     case TFileSystemFilesResponse:
     541             :         {
     542           0 :             (ptr_FileSystemFilesResponse())->~FileSystemFilesResponse__tdef();
     543           0 :             break;
     544             :         }
     545             :     case TFileSystemErrorResponse:
     546             :         {
     547           0 :             (ptr_FileSystemErrorResponse())->~FileSystemErrorResponse__tdef();
     548           0 :             break;
     549             :         }
     550             :     default:
     551             :         {
     552           0 :             mozilla::ipc::LogicError("not reached");
     553           0 :             break;
     554             :         }
     555             :     }
     556           0 :     return true;
     557             : }
     558             : 
     559           0 : MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemDirectoryResponse& aOther)
     560             : {
     561           0 :     new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse(aOther);
     562           0 :     mType = TFileSystemDirectoryResponse;
     563           0 : }
     564             : 
     565           0 : MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemDirectoryListingResponse& aOther)
     566             : {
     567           0 :     new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse(aOther);
     568           0 :     mType = TFileSystemDirectoryListingResponse;
     569           0 : }
     570             : 
     571           0 : MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemFileResponse& aOther)
     572             : {
     573           0 :     new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse(aOther);
     574           0 :     mType = TFileSystemFileResponse;
     575           0 : }
     576             : 
     577           0 : MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemFilesResponse& aOther)
     578             : {
     579           0 :     new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse(aOther);
     580           0 :     mType = TFileSystemFilesResponse;
     581           0 : }
     582             : 
     583           0 : MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemErrorResponse& aOther)
     584             : {
     585           0 :     new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse(aOther);
     586           0 :     mType = TFileSystemErrorResponse;
     587           0 : }
     588             : 
     589           0 : MOZ_IMPLICIT FileSystemResponseValue::FileSystemResponseValue(const FileSystemResponseValue& aOther)
     590             : {
     591           0 :     (aOther).AssertSanity();
     592           0 :     switch ((aOther).type()) {
     593             :     case TFileSystemDirectoryResponse:
     594             :         {
     595           0 :             new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse((aOther).get_FileSystemDirectoryResponse());
     596           0 :             break;
     597             :         }
     598             :     case TFileSystemDirectoryListingResponse:
     599             :         {
     600           0 :             new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse((aOther).get_FileSystemDirectoryListingResponse());
     601           0 :             break;
     602             :         }
     603             :     case TFileSystemFileResponse:
     604             :         {
     605           0 :             new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse((aOther).get_FileSystemFileResponse());
     606           0 :             break;
     607             :         }
     608             :     case TFileSystemFilesResponse:
     609             :         {
     610           0 :             new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse((aOther).get_FileSystemFilesResponse());
     611           0 :             break;
     612             :         }
     613             :     case TFileSystemErrorResponse:
     614             :         {
     615           0 :             new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse((aOther).get_FileSystemErrorResponse());
     616           0 :             break;
     617             :         }
     618             :     case T__None:
     619             :         {
     620           0 :             break;
     621             :         }
     622             :     default:
     623             :         {
     624           0 :             mozilla::ipc::LogicError("unreached");
     625           0 :             return;
     626             :         }
     627             :     }
     628           0 :     mType = (aOther).type();
     629             : }
     630             : 
     631           0 : FileSystemResponseValue::~FileSystemResponseValue()
     632             : {
     633           0 :     static_cast<void>(MaybeDestroy(T__None));
     634           0 : }
     635             : 
     636           0 : auto FileSystemResponseValue::operator=(const FileSystemDirectoryResponse& aRhs) -> FileSystemResponseValue&
     637             : {
     638           0 :     if (MaybeDestroy(TFileSystemDirectoryResponse)) {
     639           0 :         new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse;
     640             :     }
     641           0 :     (*(ptr_FileSystemDirectoryResponse())) = aRhs;
     642           0 :     mType = TFileSystemDirectoryResponse;
     643           0 :     return (*(this));
     644             : }
     645             : 
     646           0 : auto FileSystemResponseValue::operator=(const FileSystemDirectoryListingResponse& aRhs) -> FileSystemResponseValue&
     647             : {
     648           0 :     if (MaybeDestroy(TFileSystemDirectoryListingResponse)) {
     649           0 :         new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse;
     650             :     }
     651           0 :     (*(ptr_FileSystemDirectoryListingResponse())) = aRhs;
     652           0 :     mType = TFileSystemDirectoryListingResponse;
     653           0 :     return (*(this));
     654             : }
     655             : 
     656           0 : auto FileSystemResponseValue::operator=(const FileSystemFileResponse& aRhs) -> FileSystemResponseValue&
     657             : {
     658           0 :     if (MaybeDestroy(TFileSystemFileResponse)) {
     659           0 :         new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse;
     660             :     }
     661           0 :     (*(ptr_FileSystemFileResponse())) = aRhs;
     662           0 :     mType = TFileSystemFileResponse;
     663           0 :     return (*(this));
     664             : }
     665             : 
     666           0 : auto FileSystemResponseValue::operator=(const FileSystemFilesResponse& aRhs) -> FileSystemResponseValue&
     667             : {
     668           0 :     if (MaybeDestroy(TFileSystemFilesResponse)) {
     669           0 :         new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse;
     670             :     }
     671           0 :     (*(ptr_FileSystemFilesResponse())) = aRhs;
     672           0 :     mType = TFileSystemFilesResponse;
     673           0 :     return (*(this));
     674             : }
     675             : 
     676           0 : auto FileSystemResponseValue::operator=(const FileSystemErrorResponse& aRhs) -> FileSystemResponseValue&
     677             : {
     678           0 :     if (MaybeDestroy(TFileSystemErrorResponse)) {
     679           0 :         new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse;
     680             :     }
     681           0 :     (*(ptr_FileSystemErrorResponse())) = aRhs;
     682           0 :     mType = TFileSystemErrorResponse;
     683           0 :     return (*(this));
     684             : }
     685             : 
     686           0 : auto FileSystemResponseValue::operator=(const FileSystemResponseValue& aRhs) -> FileSystemResponseValue&
     687             : {
     688           0 :     (aRhs).AssertSanity();
     689           0 :     Type t = (aRhs).type();
     690           0 :     switch (t) {
     691             :     case TFileSystemDirectoryResponse:
     692             :         {
     693           0 :             if (MaybeDestroy(t)) {
     694           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemDirectoryResponse()) FileSystemDirectoryResponse;
     695             :             }
     696           0 :             (*(ptr_FileSystemDirectoryResponse())) = (aRhs).get_FileSystemDirectoryResponse();
     697           0 :             break;
     698             :         }
     699             :     case TFileSystemDirectoryListingResponse:
     700             :         {
     701           0 :             if (MaybeDestroy(t)) {
     702           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemDirectoryListingResponse()) FileSystemDirectoryListingResponse;
     703             :             }
     704           0 :             (*(ptr_FileSystemDirectoryListingResponse())) = (aRhs).get_FileSystemDirectoryListingResponse();
     705           0 :             break;
     706             :         }
     707             :     case TFileSystemFileResponse:
     708             :         {
     709           0 :             if (MaybeDestroy(t)) {
     710           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemFileResponse()) FileSystemFileResponse;
     711             :             }
     712           0 :             (*(ptr_FileSystemFileResponse())) = (aRhs).get_FileSystemFileResponse();
     713           0 :             break;
     714             :         }
     715             :     case TFileSystemFilesResponse:
     716             :         {
     717           0 :             if (MaybeDestroy(t)) {
     718           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemFilesResponse()) FileSystemFilesResponse;
     719             :             }
     720           0 :             (*(ptr_FileSystemFilesResponse())) = (aRhs).get_FileSystemFilesResponse();
     721           0 :             break;
     722             :         }
     723             :     case TFileSystemErrorResponse:
     724             :         {
     725           0 :             if (MaybeDestroy(t)) {
     726           0 :                 new (mozilla::KnownNotNull, ptr_FileSystemErrorResponse()) FileSystemErrorResponse;
     727             :             }
     728           0 :             (*(ptr_FileSystemErrorResponse())) = (aRhs).get_FileSystemErrorResponse();
     729           0 :             break;
     730             :         }
     731             :     case T__None:
     732             :         {
     733           0 :             static_cast<void>(MaybeDestroy(t));
     734           0 :             break;
     735             :         }
     736             :     default:
     737             :         {
     738           0 :             mozilla::ipc::LogicError("unreached");
     739           0 :             break;
     740             :         }
     741             :     }
     742           0 :     mType = t;
     743           0 :     return (*(this));
     744             : }
     745             : 
     746           0 : auto FileSystemResponseValue::operator==(const FileSystemDirectoryResponse& aRhs) const -> bool
     747             : {
     748           0 :     return (get_FileSystemDirectoryResponse()) == (aRhs);
     749             : }
     750             : 
     751           0 : auto FileSystemResponseValue::operator==(const FileSystemDirectoryListingResponse& aRhs) const -> bool
     752             : {
     753           0 :     return (get_FileSystemDirectoryListingResponse()) == (aRhs);
     754             : }
     755             : 
     756           0 : auto FileSystemResponseValue::operator==(const FileSystemFileResponse& aRhs) const -> bool
     757             : {
     758           0 :     return (get_FileSystemFileResponse()) == (aRhs);
     759             : }
     760             : 
     761           0 : auto FileSystemResponseValue::operator==(const FileSystemFilesResponse& aRhs) const -> bool
     762             : {
     763           0 :     return (get_FileSystemFilesResponse()) == (aRhs);
     764             : }
     765             : 
     766           0 : auto FileSystemResponseValue::operator==(const FileSystemErrorResponse& aRhs) const -> bool
     767             : {
     768           0 :     return (get_FileSystemErrorResponse()) == (aRhs);
     769             : }
     770             : 
     771           0 : auto FileSystemResponseValue::operator==(const FileSystemResponseValue& aRhs) const -> bool
     772             : {
     773           0 :     if ((type()) != ((aRhs).type())) {
     774           0 :         return false;
     775             :     }
     776             : 
     777           0 :     switch (type()) {
     778             :     case TFileSystemDirectoryResponse:
     779             :         {
     780           0 :             return (get_FileSystemDirectoryResponse()) == ((aRhs).get_FileSystemDirectoryResponse());
     781             :         }
     782             :     case TFileSystemDirectoryListingResponse:
     783             :         {
     784           0 :             return (get_FileSystemDirectoryListingResponse()) == ((aRhs).get_FileSystemDirectoryListingResponse());
     785             :         }
     786             :     case TFileSystemFileResponse:
     787             :         {
     788           0 :             return (get_FileSystemFileResponse()) == ((aRhs).get_FileSystemFileResponse());
     789             :         }
     790             :     case TFileSystemFilesResponse:
     791             :         {
     792           0 :             return (get_FileSystemFilesResponse()) == ((aRhs).get_FileSystemFilesResponse());
     793             :         }
     794             :     case TFileSystemErrorResponse:
     795             :         {
     796           0 :             return (get_FileSystemErrorResponse()) == ((aRhs).get_FileSystemErrorResponse());
     797             :         }
     798             :     default:
     799             :         {
     800           0 :             mozilla::ipc::LogicError("unreached");
     801           0 :             return false;
     802             :         }
     803             :     }
     804             : }
     805             : 
     806           0 : auto FileSystemResponseValue::get(FileSystemDirectoryResponse* aOutValue) const -> void
     807             : {
     808           0 :     (*(aOutValue)) = get_FileSystemDirectoryResponse();
     809           0 : }
     810             : 
     811           0 : auto FileSystemResponseValue::get(FileSystemDirectoryListingResponse* aOutValue) const -> void
     812             : {
     813           0 :     (*(aOutValue)) = get_FileSystemDirectoryListingResponse();
     814           0 : }
     815             : 
     816           0 : auto FileSystemResponseValue::get(FileSystemFileResponse* aOutValue) const -> void
     817             : {
     818           0 :     (*(aOutValue)) = get_FileSystemFileResponse();
     819           0 : }
     820             : 
     821           0 : auto FileSystemResponseValue::get(FileSystemFilesResponse* aOutValue) const -> void
     822             : {
     823           0 :     (*(aOutValue)) = get_FileSystemFilesResponse();
     824           0 : }
     825             : 
     826           0 : auto FileSystemResponseValue::get(FileSystemErrorResponse* aOutValue) const -> void
     827             : {
     828           0 :     (*(aOutValue)) = get_FileSystemErrorResponse();
     829           0 : }
     830             : 
     831             : } // namespace dom
     832             : } // namespace mozilla

Generated by: LCOV version 1.13