LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundFileRequest.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 493 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 103 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/PBackgroundFileRequest.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace dom {
      11             : namespace PBackgroundFileRequest {
      12             : 
      13             : nsresult
      14           0 : CreateEndpoints(
      15             :         base::ProcessId aParentDestPid,
      16             :         base::ProcessId aChildDestPid,
      17             :         mozilla::ipc::Endpoint<mozilla::dom::PBackgroundFileRequestParent>* aParent,
      18             :         mozilla::ipc::Endpoint<mozilla::dom::PBackgroundFileRequestChild>* aChild)
      19             : {
      20           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PBackgroundFileRequestMsgStart, PBackgroundFileRequestMsgStartChild, 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, "PBackgroundFileRequest::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, "PBackgroundFileRequest::Reply___delete__", true);
      50             : }
      51             : IPC::Message*
      52           0 : Msg_Progress(int32_t routingId)
      53             : {
      54           0 :     return new IPC::Message(routingId, Msg_Progress__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundFileRequest::Msg_Progress", true);
      55             : }
      56             : 
      57             : } // namespace PBackgroundFileRequest
      58             : } // namespace dom
      59             : } // namespace mozilla
      60             : 
      61             : //-----------------------------------------------------------------------------
      62             : // Method definitions for the IPDL type |union FileRequestSize|
      63             : //
      64             : namespace mozilla {
      65             : namespace dom {
      66           0 : auto FileRequestSize::MaybeDestroy(Type aNewType) -> bool
      67             : {
      68           0 :     if ((mType) == (T__None)) {
      69           0 :         return true;
      70             :     }
      71           0 :     if ((mType) == (aNewType)) {
      72           0 :         return false;
      73             :     }
      74           0 :     switch (mType) {
      75             :     case Tvoid_t:
      76             :         {
      77           0 :             (ptr_void_t())->~void_t__tdef();
      78           0 :             break;
      79             :         }
      80             :     case Tuint64_t:
      81             :         {
      82           0 :             (ptr_uint64_t())->~uint64_t__tdef();
      83           0 :             break;
      84             :         }
      85             :     default:
      86             :         {
      87           0 :             mozilla::ipc::LogicError("not reached");
      88           0 :             break;
      89             :         }
      90             :     }
      91           0 :     return true;
      92             : }
      93             : 
      94           0 : MOZ_IMPLICIT FileRequestSize::FileRequestSize(const void_t& aOther)
      95             : {
      96           0 :     new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
      97           0 :     mType = Tvoid_t;
      98           0 : }
      99             : 
     100           0 : MOZ_IMPLICIT FileRequestSize::FileRequestSize(const uint64_t& aOther)
     101             : {
     102           0 :     new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t(aOther);
     103           0 :     mType = Tuint64_t;
     104           0 : }
     105             : 
     106           0 : MOZ_IMPLICIT FileRequestSize::FileRequestSize(const FileRequestSize& aOther)
     107             : {
     108           0 :     (aOther).AssertSanity();
     109           0 :     switch ((aOther).type()) {
     110             :     case Tvoid_t:
     111             :         {
     112           0 :             new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
     113           0 :             break;
     114             :         }
     115             :     case Tuint64_t:
     116             :         {
     117           0 :             new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t((aOther).get_uint64_t());
     118           0 :             break;
     119             :         }
     120             :     case T__None:
     121             :         {
     122           0 :             break;
     123             :         }
     124             :     default:
     125             :         {
     126           0 :             mozilla::ipc::LogicError("unreached");
     127           0 :             return;
     128             :         }
     129             :     }
     130           0 :     mType = (aOther).type();
     131             : }
     132             : 
     133           0 : FileRequestSize::~FileRequestSize()
     134             : {
     135           0 :     static_cast<void>(MaybeDestroy(T__None));
     136           0 : }
     137             : 
     138           0 : auto FileRequestSize::operator=(const void_t& aRhs) -> FileRequestSize&
     139             : {
     140           0 :     if (MaybeDestroy(Tvoid_t)) {
     141           0 :         new (mozilla::KnownNotNull, ptr_void_t()) void_t;
     142             :     }
     143           0 :     (*(ptr_void_t())) = aRhs;
     144           0 :     mType = Tvoid_t;
     145           0 :     return (*(this));
     146             : }
     147             : 
     148           0 : auto FileRequestSize::operator=(const uint64_t& aRhs) -> FileRequestSize&
     149             : {
     150           0 :     if (MaybeDestroy(Tuint64_t)) {
     151           0 :         new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t;
     152             :     }
     153           0 :     (*(ptr_uint64_t())) = aRhs;
     154           0 :     mType = Tuint64_t;
     155           0 :     return (*(this));
     156             : }
     157             : 
     158           0 : auto FileRequestSize::operator=(const FileRequestSize& aRhs) -> FileRequestSize&
     159             : {
     160           0 :     (aRhs).AssertSanity();
     161           0 :     Type t = (aRhs).type();
     162           0 :     switch (t) {
     163             :     case Tvoid_t:
     164             :         {
     165           0 :             if (MaybeDestroy(t)) {
     166           0 :                 new (mozilla::KnownNotNull, ptr_void_t()) void_t;
     167             :             }
     168           0 :             (*(ptr_void_t())) = (aRhs).get_void_t();
     169           0 :             break;
     170             :         }
     171             :     case Tuint64_t:
     172             :         {
     173           0 :             if (MaybeDestroy(t)) {
     174           0 :                 new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t;
     175             :             }
     176           0 :             (*(ptr_uint64_t())) = (aRhs).get_uint64_t();
     177           0 :             break;
     178             :         }
     179             :     case T__None:
     180             :         {
     181           0 :             static_cast<void>(MaybeDestroy(t));
     182           0 :             break;
     183             :         }
     184             :     default:
     185             :         {
     186           0 :             mozilla::ipc::LogicError("unreached");
     187           0 :             break;
     188             :         }
     189             :     }
     190           0 :     mType = t;
     191           0 :     return (*(this));
     192             : }
     193             : 
     194           0 : auto FileRequestSize::operator==(const void_t& aRhs) const -> bool
     195             : {
     196           0 :     return (get_void_t()) == (aRhs);
     197             : }
     198             : 
     199           0 : auto FileRequestSize::operator==(const uint64_t& aRhs) const -> bool
     200             : {
     201           0 :     return (get_uint64_t()) == (aRhs);
     202             : }
     203             : 
     204           0 : auto FileRequestSize::operator==(const FileRequestSize& aRhs) const -> bool
     205             : {
     206           0 :     if ((type()) != ((aRhs).type())) {
     207           0 :         return false;
     208             :     }
     209             : 
     210           0 :     switch (type()) {
     211             :     case Tvoid_t:
     212             :         {
     213           0 :             return (get_void_t()) == ((aRhs).get_void_t());
     214             :         }
     215             :     case Tuint64_t:
     216             :         {
     217           0 :             return (get_uint64_t()) == ((aRhs).get_uint64_t());
     218             :         }
     219             :     default:
     220             :         {
     221           0 :             mozilla::ipc::LogicError("unreached");
     222           0 :             return false;
     223             :         }
     224             :     }
     225             : }
     226             : 
     227           0 : auto FileRequestSize::get(void_t* aOutValue) const -> void
     228             : {
     229           0 :     (*(aOutValue)) = get_void_t();
     230           0 : }
     231             : 
     232           0 : auto FileRequestSize::get(uint64_t* aOutValue) const -> void
     233             : {
     234           0 :     (*(aOutValue)) = get_uint64_t();
     235           0 : }
     236             : 
     237             : } // namespace dom
     238             : } // namespace mozilla
     239             : 
     240             : //-----------------------------------------------------------------------------
     241             : // Method definitions for the IPDL type |union FileRequestLastModified|
     242             : //
     243             : namespace mozilla {
     244             : namespace dom {
     245           0 : auto FileRequestLastModified::MaybeDestroy(Type aNewType) -> bool
     246             : {
     247           0 :     if ((mType) == (T__None)) {
     248           0 :         return true;
     249             :     }
     250           0 :     if ((mType) == (aNewType)) {
     251           0 :         return false;
     252             :     }
     253           0 :     switch (mType) {
     254             :     case Tvoid_t:
     255             :         {
     256           0 :             (ptr_void_t())->~void_t__tdef();
     257           0 :             break;
     258             :         }
     259             :     case Tint64_t:
     260             :         {
     261           0 :             (ptr_int64_t())->~int64_t__tdef();
     262           0 :             break;
     263             :         }
     264             :     default:
     265             :         {
     266           0 :             mozilla::ipc::LogicError("not reached");
     267           0 :             break;
     268             :         }
     269             :     }
     270           0 :     return true;
     271             : }
     272             : 
     273           0 : MOZ_IMPLICIT FileRequestLastModified::FileRequestLastModified(const void_t& aOther)
     274             : {
     275           0 :     new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
     276           0 :     mType = Tvoid_t;
     277           0 : }
     278             : 
     279           0 : MOZ_IMPLICIT FileRequestLastModified::FileRequestLastModified(const int64_t& aOther)
     280             : {
     281           0 :     new (mozilla::KnownNotNull, ptr_int64_t()) int64_t(aOther);
     282           0 :     mType = Tint64_t;
     283           0 : }
     284             : 
     285           0 : MOZ_IMPLICIT FileRequestLastModified::FileRequestLastModified(const FileRequestLastModified& aOther)
     286             : {
     287           0 :     (aOther).AssertSanity();
     288           0 :     switch ((aOther).type()) {
     289             :     case Tvoid_t:
     290             :         {
     291           0 :             new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
     292           0 :             break;
     293             :         }
     294             :     case Tint64_t:
     295             :         {
     296           0 :             new (mozilla::KnownNotNull, ptr_int64_t()) int64_t((aOther).get_int64_t());
     297           0 :             break;
     298             :         }
     299             :     case T__None:
     300             :         {
     301           0 :             break;
     302             :         }
     303             :     default:
     304             :         {
     305           0 :             mozilla::ipc::LogicError("unreached");
     306           0 :             return;
     307             :         }
     308             :     }
     309           0 :     mType = (aOther).type();
     310             : }
     311             : 
     312           0 : FileRequestLastModified::~FileRequestLastModified()
     313             : {
     314           0 :     static_cast<void>(MaybeDestroy(T__None));
     315           0 : }
     316             : 
     317           0 : auto FileRequestLastModified::operator=(const void_t& aRhs) -> FileRequestLastModified&
     318             : {
     319           0 :     if (MaybeDestroy(Tvoid_t)) {
     320           0 :         new (mozilla::KnownNotNull, ptr_void_t()) void_t;
     321             :     }
     322           0 :     (*(ptr_void_t())) = aRhs;
     323           0 :     mType = Tvoid_t;
     324           0 :     return (*(this));
     325             : }
     326             : 
     327           0 : auto FileRequestLastModified::operator=(const int64_t& aRhs) -> FileRequestLastModified&
     328             : {
     329           0 :     if (MaybeDestroy(Tint64_t)) {
     330           0 :         new (mozilla::KnownNotNull, ptr_int64_t()) int64_t;
     331             :     }
     332           0 :     (*(ptr_int64_t())) = aRhs;
     333           0 :     mType = Tint64_t;
     334           0 :     return (*(this));
     335             : }
     336             : 
     337           0 : auto FileRequestLastModified::operator=(const FileRequestLastModified& aRhs) -> FileRequestLastModified&
     338             : {
     339           0 :     (aRhs).AssertSanity();
     340           0 :     Type t = (aRhs).type();
     341           0 :     switch (t) {
     342             :     case Tvoid_t:
     343             :         {
     344           0 :             if (MaybeDestroy(t)) {
     345           0 :                 new (mozilla::KnownNotNull, ptr_void_t()) void_t;
     346             :             }
     347           0 :             (*(ptr_void_t())) = (aRhs).get_void_t();
     348           0 :             break;
     349             :         }
     350             :     case Tint64_t:
     351             :         {
     352           0 :             if (MaybeDestroy(t)) {
     353           0 :                 new (mozilla::KnownNotNull, ptr_int64_t()) int64_t;
     354             :             }
     355           0 :             (*(ptr_int64_t())) = (aRhs).get_int64_t();
     356           0 :             break;
     357             :         }
     358             :     case T__None:
     359             :         {
     360           0 :             static_cast<void>(MaybeDestroy(t));
     361           0 :             break;
     362             :         }
     363             :     default:
     364             :         {
     365           0 :             mozilla::ipc::LogicError("unreached");
     366           0 :             break;
     367             :         }
     368             :     }
     369           0 :     mType = t;
     370           0 :     return (*(this));
     371             : }
     372             : 
     373           0 : auto FileRequestLastModified::operator==(const void_t& aRhs) const -> bool
     374             : {
     375           0 :     return (get_void_t()) == (aRhs);
     376             : }
     377             : 
     378           0 : auto FileRequestLastModified::operator==(const int64_t& aRhs) const -> bool
     379             : {
     380           0 :     return (get_int64_t()) == (aRhs);
     381             : }
     382             : 
     383           0 : auto FileRequestLastModified::operator==(const FileRequestLastModified& aRhs) const -> bool
     384             : {
     385           0 :     if ((type()) != ((aRhs).type())) {
     386           0 :         return false;
     387             :     }
     388             : 
     389           0 :     switch (type()) {
     390             :     case Tvoid_t:
     391             :         {
     392           0 :             return (get_void_t()) == ((aRhs).get_void_t());
     393             :         }
     394             :     case Tint64_t:
     395             :         {
     396           0 :             return (get_int64_t()) == ((aRhs).get_int64_t());
     397             :         }
     398             :     default:
     399             :         {
     400           0 :             mozilla::ipc::LogicError("unreached");
     401           0 :             return false;
     402             :         }
     403             :     }
     404             : }
     405             : 
     406           0 : auto FileRequestLastModified::get(void_t* aOutValue) const -> void
     407             : {
     408           0 :     (*(aOutValue)) = get_void_t();
     409           0 : }
     410             : 
     411           0 : auto FileRequestLastModified::get(int64_t* aOutValue) const -> void
     412             : {
     413           0 :     (*(aOutValue)) = get_int64_t();
     414           0 : }
     415             : 
     416             : } // namespace dom
     417             : } // namespace mozilla
     418             : 
     419             : //-----------------------------------------------------------------------------
     420             : // Method definitions for the IPDL type |struct FileRequestMetadata|
     421             : //
     422             : namespace mozilla {
     423             : namespace dom {
     424           0 : MOZ_IMPLICIT FileRequestMetadata::FileRequestMetadata()
     425             : {
     426           0 :     Init();
     427           0 : }
     428             : 
     429           0 : FileRequestMetadata::~FileRequestMetadata()
     430             : {
     431           0 : }
     432             : 
     433           0 : auto FileRequestMetadata::operator==(const FileRequestMetadata& _o) const -> bool
     434             : {
     435           0 :     if ((!((size()) == ((_o).size())))) {
     436           0 :         return false;
     437             :     }
     438           0 :     if ((!((lastModified()) == ((_o).lastModified())))) {
     439           0 :         return false;
     440             :     }
     441           0 :     return true;
     442             : }
     443             : 
     444           0 : auto FileRequestMetadata::operator!=(const FileRequestMetadata& _o) const -> bool
     445             : {
     446           0 :     return (!(operator==(_o)));
     447             : }
     448             : 
     449           0 : auto FileRequestMetadata::Init() -> void
     450             : {
     451           0 : }
     452             : 
     453           0 : auto FileRequestMetadata::Assign(
     454             :         const FileRequestSize& _size,
     455             :         const FileRequestLastModified& _lastModified) -> void
     456             : {
     457           0 :     size_ = _size;
     458           0 :     lastModified_ = _lastModified;
     459           0 : }
     460             : 
     461             : } // namespace dom
     462             : } // namespace mozilla
     463             : 
     464             : //-----------------------------------------------------------------------------
     465             : // Method definitions for the IPDL type |struct FileRequestGetMetadataResponse|
     466             : //
     467             : namespace mozilla {
     468             : namespace dom {
     469           0 : MOZ_IMPLICIT FileRequestGetMetadataResponse::FileRequestGetMetadataResponse()
     470             : {
     471           0 :     Init();
     472           0 : }
     473             : 
     474           0 : FileRequestGetMetadataResponse::~FileRequestGetMetadataResponse()
     475             : {
     476           0 : }
     477             : 
     478           0 : auto FileRequestGetMetadataResponse::operator==(const FileRequestGetMetadataResponse& _o) const -> bool
     479             : {
     480           0 :     if ((!((metadata()) == ((_o).metadata())))) {
     481           0 :         return false;
     482             :     }
     483           0 :     return true;
     484             : }
     485             : 
     486           0 : auto FileRequestGetMetadataResponse::operator!=(const FileRequestGetMetadataResponse& _o) const -> bool
     487             : {
     488           0 :     return (!(operator==(_o)));
     489             : }
     490             : 
     491           0 : auto FileRequestGetMetadataResponse::Init() -> void
     492             : {
     493           0 : }
     494             : 
     495           0 : auto FileRequestGetMetadataResponse::Assign(const FileRequestMetadata& _metadata) -> void
     496             : {
     497           0 :     metadata_ = _metadata;
     498           0 : }
     499             : 
     500             : } // namespace dom
     501             : } // namespace mozilla
     502             : 
     503             : //-----------------------------------------------------------------------------
     504             : // Method definitions for the IPDL type |struct FileRequestReadResponse|
     505             : //
     506             : namespace mozilla {
     507             : namespace dom {
     508           0 : MOZ_IMPLICIT FileRequestReadResponse::FileRequestReadResponse() :
     509           0 :     data_()
     510             : {
     511           0 :     Init();
     512           0 : }
     513             : 
     514           0 : FileRequestReadResponse::~FileRequestReadResponse()
     515             : {
     516           0 : }
     517             : 
     518           0 : auto FileRequestReadResponse::operator==(const FileRequestReadResponse& _o) const -> bool
     519             : {
     520           0 :     if ((!((data()) == ((_o).data())))) {
     521           0 :         return false;
     522             :     }
     523           0 :     return true;
     524             : }
     525             : 
     526           0 : auto FileRequestReadResponse::operator!=(const FileRequestReadResponse& _o) const -> bool
     527             : {
     528           0 :     return (!(operator==(_o)));
     529             : }
     530             : 
     531           0 : auto FileRequestReadResponse::Init() -> void
     532             : {
     533           0 : }
     534             : 
     535           0 : auto FileRequestReadResponse::Assign(const nsCString& _data) -> void
     536             : {
     537           0 :     data_ = _data;
     538           0 : }
     539             : 
     540             : } // namespace dom
     541             : } // namespace mozilla
     542             : 
     543             : //-----------------------------------------------------------------------------
     544             : // Method definitions for the IPDL type |struct FileRequestWriteResponse|
     545             : //
     546             : namespace mozilla {
     547             : namespace dom {
     548           0 : FileRequestWriteResponse::~FileRequestWriteResponse()
     549             : {
     550           0 : }
     551             : 
     552           0 : auto FileRequestWriteResponse::operator==(const FileRequestWriteResponse& _o) const -> bool
     553             : {
     554           0 :     return true;
     555             : }
     556             : 
     557           0 : auto FileRequestWriteResponse::operator!=(const FileRequestWriteResponse& _o) const -> bool
     558             : {
     559           0 :     return (!(operator==(_o)));
     560             : }
     561             : 
     562           0 : auto FileRequestWriteResponse::Init() -> void
     563             : {
     564           0 : }
     565             : 
     566           0 : auto FileRequestWriteResponse::Assign() -> void
     567             : {
     568           0 : }
     569             : 
     570             : } // namespace dom
     571             : } // namespace mozilla
     572             : 
     573             : //-----------------------------------------------------------------------------
     574             : // Method definitions for the IPDL type |struct FileRequestTruncateResponse|
     575             : //
     576             : namespace mozilla {
     577             : namespace dom {
     578           0 : FileRequestTruncateResponse::~FileRequestTruncateResponse()
     579             : {
     580           0 : }
     581             : 
     582           0 : auto FileRequestTruncateResponse::operator==(const FileRequestTruncateResponse& _o) const -> bool
     583             : {
     584           0 :     return true;
     585             : }
     586             : 
     587           0 : auto FileRequestTruncateResponse::operator!=(const FileRequestTruncateResponse& _o) const -> bool
     588             : {
     589           0 :     return (!(operator==(_o)));
     590             : }
     591             : 
     592           0 : auto FileRequestTruncateResponse::Init() -> void
     593             : {
     594           0 : }
     595             : 
     596           0 : auto FileRequestTruncateResponse::Assign() -> void
     597             : {
     598           0 : }
     599             : 
     600             : } // namespace dom
     601             : } // namespace mozilla
     602             : 
     603             : //-----------------------------------------------------------------------------
     604             : // Method definitions for the IPDL type |struct FileRequestFlushResponse|
     605             : //
     606             : namespace mozilla {
     607             : namespace dom {
     608           0 : FileRequestFlushResponse::~FileRequestFlushResponse()
     609             : {
     610           0 : }
     611             : 
     612           0 : auto FileRequestFlushResponse::operator==(const FileRequestFlushResponse& _o) const -> bool
     613             : {
     614           0 :     return true;
     615             : }
     616             : 
     617           0 : auto FileRequestFlushResponse::operator!=(const FileRequestFlushResponse& _o) const -> bool
     618             : {
     619           0 :     return (!(operator==(_o)));
     620             : }
     621             : 
     622           0 : auto FileRequestFlushResponse::Init() -> void
     623             : {
     624           0 : }
     625             : 
     626           0 : auto FileRequestFlushResponse::Assign() -> void
     627             : {
     628           0 : }
     629             : 
     630             : } // namespace dom
     631             : } // namespace mozilla
     632             : 
     633             : //-----------------------------------------------------------------------------
     634             : // Method definitions for the IPDL type |struct FileRequestGetFileResponse|
     635             : //
     636             : namespace mozilla {
     637             : namespace dom {
     638           0 : MOZ_IMPLICIT FileRequestGetFileResponse::FileRequestGetFileResponse()
     639             : {
     640           0 :     Init();
     641           0 : }
     642             : 
     643           0 : FileRequestGetFileResponse::~FileRequestGetFileResponse()
     644             : {
     645           0 : }
     646             : 
     647           0 : auto FileRequestGetFileResponse::operator==(const FileRequestGetFileResponse& _o) const -> bool
     648             : {
     649           0 :     if ((!((fileParent()) == ((_o).fileParent())))) {
     650           0 :         return false;
     651             :     }
     652           0 :     if ((!((fileChild()) == ((_o).fileChild())))) {
     653           0 :         return false;
     654             :     }
     655           0 :     if ((!((metadata()) == ((_o).metadata())))) {
     656           0 :         return false;
     657             :     }
     658           0 :     return true;
     659             : }
     660             : 
     661           0 : auto FileRequestGetFileResponse::operator!=(const FileRequestGetFileResponse& _o) const -> bool
     662             : {
     663           0 :     return (!(operator==(_o)));
     664             : }
     665             : 
     666           0 : auto FileRequestGetFileResponse::Init() -> void
     667             : {
     668           0 :     fileParent_ = nullptr;
     669           0 :     fileChild_ = nullptr;
     670           0 : }
     671             : 
     672           0 : auto FileRequestGetFileResponse::Assign(
     673             :         PPendingIPCBlobParent* _fileParent,
     674             :         PPendingIPCBlobChild* _fileChild,
     675             :         const FileRequestMetadata& _metadata) -> void
     676             : {
     677           0 :     fileParent_ = _fileParent;
     678           0 :     fileChild_ = _fileChild;
     679           0 :     metadata_ = _metadata;
     680           0 : }
     681             : 
     682             : } // namespace dom
     683             : } // namespace mozilla
     684             : 
     685             : //-----------------------------------------------------------------------------
     686             : // Method definitions for the IPDL type |union FileRequestResponse|
     687             : //
     688             : namespace mozilla {
     689             : namespace dom {
     690           0 : auto FileRequestResponse::MaybeDestroy(Type aNewType) -> bool
     691             : {
     692           0 :     if ((mType) == (T__None)) {
     693           0 :         return true;
     694             :     }
     695           0 :     if ((mType) == (aNewType)) {
     696           0 :         return false;
     697             :     }
     698           0 :     switch (mType) {
     699             :     case Tnsresult:
     700             :         {
     701           0 :             (ptr_nsresult())->~nsresult__tdef();
     702           0 :             break;
     703             :         }
     704             :     case TFileRequestGetMetadataResponse:
     705             :         {
     706           0 :             (ptr_FileRequestGetMetadataResponse())->~FileRequestGetMetadataResponse__tdef();
     707           0 :             break;
     708             :         }
     709             :     case TFileRequestReadResponse:
     710             :         {
     711           0 :             (ptr_FileRequestReadResponse())->~FileRequestReadResponse__tdef();
     712           0 :             break;
     713             :         }
     714             :     case TFileRequestWriteResponse:
     715             :         {
     716           0 :             (ptr_FileRequestWriteResponse())->~FileRequestWriteResponse__tdef();
     717           0 :             break;
     718             :         }
     719             :     case TFileRequestTruncateResponse:
     720             :         {
     721           0 :             (ptr_FileRequestTruncateResponse())->~FileRequestTruncateResponse__tdef();
     722           0 :             break;
     723             :         }
     724             :     case TFileRequestFlushResponse:
     725             :         {
     726           0 :             (ptr_FileRequestFlushResponse())->~FileRequestFlushResponse__tdef();
     727           0 :             break;
     728             :         }
     729             :     case TFileRequestGetFileResponse:
     730             :         {
     731           0 :             (ptr_FileRequestGetFileResponse())->~FileRequestGetFileResponse__tdef();
     732           0 :             break;
     733             :         }
     734             :     default:
     735             :         {
     736           0 :             mozilla::ipc::LogicError("not reached");
     737           0 :             break;
     738             :         }
     739             :     }
     740           0 :     return true;
     741             : }
     742             : 
     743           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const nsresult& aOther)
     744             : {
     745           0 :     new (mozilla::KnownNotNull, ptr_nsresult()) nsresult(aOther);
     746           0 :     mType = Tnsresult;
     747           0 : }
     748             : 
     749           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestGetMetadataResponse& aOther)
     750             : {
     751           0 :     new (mozilla::KnownNotNull, ptr_FileRequestGetMetadataResponse()) FileRequestGetMetadataResponse(aOther);
     752           0 :     mType = TFileRequestGetMetadataResponse;
     753           0 : }
     754             : 
     755           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestReadResponse& aOther)
     756             : {
     757           0 :     new (mozilla::KnownNotNull, ptr_FileRequestReadResponse()) FileRequestReadResponse(aOther);
     758           0 :     mType = TFileRequestReadResponse;
     759           0 : }
     760             : 
     761           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestWriteResponse& aOther)
     762             : {
     763           0 :     new (mozilla::KnownNotNull, ptr_FileRequestWriteResponse()) FileRequestWriteResponse(aOther);
     764           0 :     mType = TFileRequestWriteResponse;
     765           0 : }
     766             : 
     767           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestTruncateResponse& aOther)
     768             : {
     769           0 :     new (mozilla::KnownNotNull, ptr_FileRequestTruncateResponse()) FileRequestTruncateResponse(aOther);
     770           0 :     mType = TFileRequestTruncateResponse;
     771           0 : }
     772             : 
     773           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestFlushResponse& aOther)
     774             : {
     775           0 :     new (mozilla::KnownNotNull, ptr_FileRequestFlushResponse()) FileRequestFlushResponse(aOther);
     776           0 :     mType = TFileRequestFlushResponse;
     777           0 : }
     778             : 
     779           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestGetFileResponse& aOther)
     780             : {
     781           0 :     new (mozilla::KnownNotNull, ptr_FileRequestGetFileResponse()) FileRequestGetFileResponse(aOther);
     782           0 :     mType = TFileRequestGetFileResponse;
     783           0 : }
     784             : 
     785           0 : MOZ_IMPLICIT FileRequestResponse::FileRequestResponse(const FileRequestResponse& aOther)
     786             : {
     787           0 :     (aOther).AssertSanity();
     788           0 :     switch ((aOther).type()) {
     789             :     case Tnsresult:
     790             :         {
     791           0 :             new (mozilla::KnownNotNull, ptr_nsresult()) nsresult((aOther).get_nsresult());
     792           0 :             break;
     793             :         }
     794             :     case TFileRequestGetMetadataResponse:
     795             :         {
     796           0 :             new (mozilla::KnownNotNull, ptr_FileRequestGetMetadataResponse()) FileRequestGetMetadataResponse((aOther).get_FileRequestGetMetadataResponse());
     797           0 :             break;
     798             :         }
     799             :     case TFileRequestReadResponse:
     800             :         {
     801           0 :             new (mozilla::KnownNotNull, ptr_FileRequestReadResponse()) FileRequestReadResponse((aOther).get_FileRequestReadResponse());
     802           0 :             break;
     803             :         }
     804             :     case TFileRequestWriteResponse:
     805             :         {
     806           0 :             new (mozilla::KnownNotNull, ptr_FileRequestWriteResponse()) FileRequestWriteResponse((aOther).get_FileRequestWriteResponse());
     807           0 :             break;
     808             :         }
     809             :     case TFileRequestTruncateResponse:
     810             :         {
     811           0 :             new (mozilla::KnownNotNull, ptr_FileRequestTruncateResponse()) FileRequestTruncateResponse((aOther).get_FileRequestTruncateResponse());
     812           0 :             break;
     813             :         }
     814             :     case TFileRequestFlushResponse:
     815             :         {
     816           0 :             new (mozilla::KnownNotNull, ptr_FileRequestFlushResponse()) FileRequestFlushResponse((aOther).get_FileRequestFlushResponse());
     817           0 :             break;
     818             :         }
     819             :     case TFileRequestGetFileResponse:
     820             :         {
     821           0 :             new (mozilla::KnownNotNull, ptr_FileRequestGetFileResponse()) FileRequestGetFileResponse((aOther).get_FileRequestGetFileResponse());
     822           0 :             break;
     823             :         }
     824             :     case T__None:
     825             :         {
     826           0 :             break;
     827             :         }
     828             :     default:
     829             :         {
     830           0 :             mozilla::ipc::LogicError("unreached");
     831           0 :             return;
     832             :         }
     833             :     }
     834           0 :     mType = (aOther).type();
     835             : }
     836             : 
     837           0 : FileRequestResponse::~FileRequestResponse()
     838             : {
     839           0 :     static_cast<void>(MaybeDestroy(T__None));
     840           0 : }
     841             : 
     842           0 : auto FileRequestResponse::operator=(const nsresult& aRhs) -> FileRequestResponse&
     843             : {
     844           0 :     if (MaybeDestroy(Tnsresult)) {
     845           0 :         new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
     846             :     }
     847           0 :     (*(ptr_nsresult())) = aRhs;
     848           0 :     mType = Tnsresult;
     849           0 :     return (*(this));
     850             : }
     851             : 
     852           0 : auto FileRequestResponse::operator=(const FileRequestGetMetadataResponse& aRhs) -> FileRequestResponse&
     853             : {
     854           0 :     if (MaybeDestroy(TFileRequestGetMetadataResponse)) {
     855           0 :         new (mozilla::KnownNotNull, ptr_FileRequestGetMetadataResponse()) FileRequestGetMetadataResponse;
     856             :     }
     857           0 :     (*(ptr_FileRequestGetMetadataResponse())) = aRhs;
     858           0 :     mType = TFileRequestGetMetadataResponse;
     859           0 :     return (*(this));
     860             : }
     861             : 
     862           0 : auto FileRequestResponse::operator=(const FileRequestReadResponse& aRhs) -> FileRequestResponse&
     863             : {
     864           0 :     if (MaybeDestroy(TFileRequestReadResponse)) {
     865           0 :         new (mozilla::KnownNotNull, ptr_FileRequestReadResponse()) FileRequestReadResponse;
     866             :     }
     867           0 :     (*(ptr_FileRequestReadResponse())) = aRhs;
     868           0 :     mType = TFileRequestReadResponse;
     869           0 :     return (*(this));
     870             : }
     871             : 
     872           0 : auto FileRequestResponse::operator=(const FileRequestWriteResponse& aRhs) -> FileRequestResponse&
     873             : {
     874           0 :     if (MaybeDestroy(TFileRequestWriteResponse)) {
     875           0 :         new (mozilla::KnownNotNull, ptr_FileRequestWriteResponse()) FileRequestWriteResponse;
     876             :     }
     877           0 :     (*(ptr_FileRequestWriteResponse())) = aRhs;
     878           0 :     mType = TFileRequestWriteResponse;
     879           0 :     return (*(this));
     880             : }
     881             : 
     882           0 : auto FileRequestResponse::operator=(const FileRequestTruncateResponse& aRhs) -> FileRequestResponse&
     883             : {
     884           0 :     if (MaybeDestroy(TFileRequestTruncateResponse)) {
     885           0 :         new (mozilla::KnownNotNull, ptr_FileRequestTruncateResponse()) FileRequestTruncateResponse;
     886             :     }
     887           0 :     (*(ptr_FileRequestTruncateResponse())) = aRhs;
     888           0 :     mType = TFileRequestTruncateResponse;
     889           0 :     return (*(this));
     890             : }
     891             : 
     892           0 : auto FileRequestResponse::operator=(const FileRequestFlushResponse& aRhs) -> FileRequestResponse&
     893             : {
     894           0 :     if (MaybeDestroy(TFileRequestFlushResponse)) {
     895           0 :         new (mozilla::KnownNotNull, ptr_FileRequestFlushResponse()) FileRequestFlushResponse;
     896             :     }
     897           0 :     (*(ptr_FileRequestFlushResponse())) = aRhs;
     898           0 :     mType = TFileRequestFlushResponse;
     899           0 :     return (*(this));
     900             : }
     901             : 
     902           0 : auto FileRequestResponse::operator=(const FileRequestGetFileResponse& aRhs) -> FileRequestResponse&
     903             : {
     904           0 :     if (MaybeDestroy(TFileRequestGetFileResponse)) {
     905           0 :         new (mozilla::KnownNotNull, ptr_FileRequestGetFileResponse()) FileRequestGetFileResponse;
     906             :     }
     907           0 :     (*(ptr_FileRequestGetFileResponse())) = aRhs;
     908           0 :     mType = TFileRequestGetFileResponse;
     909           0 :     return (*(this));
     910             : }
     911             : 
     912           0 : auto FileRequestResponse::operator=(const FileRequestResponse& aRhs) -> FileRequestResponse&
     913             : {
     914           0 :     (aRhs).AssertSanity();
     915           0 :     Type t = (aRhs).type();
     916           0 :     switch (t) {
     917             :     case Tnsresult:
     918             :         {
     919           0 :             if (MaybeDestroy(t)) {
     920           0 :                 new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
     921             :             }
     922           0 :             (*(ptr_nsresult())) = (aRhs).get_nsresult();
     923           0 :             break;
     924             :         }
     925             :     case TFileRequestGetMetadataResponse:
     926             :         {
     927           0 :             if (MaybeDestroy(t)) {
     928           0 :                 new (mozilla::KnownNotNull, ptr_FileRequestGetMetadataResponse()) FileRequestGetMetadataResponse;
     929             :             }
     930           0 :             (*(ptr_FileRequestGetMetadataResponse())) = (aRhs).get_FileRequestGetMetadataResponse();
     931           0 :             break;
     932             :         }
     933             :     case TFileRequestReadResponse:
     934             :         {
     935           0 :             if (MaybeDestroy(t)) {
     936           0 :                 new (mozilla::KnownNotNull, ptr_FileRequestReadResponse()) FileRequestReadResponse;
     937             :             }
     938           0 :             (*(ptr_FileRequestReadResponse())) = (aRhs).get_FileRequestReadResponse();
     939           0 :             break;
     940             :         }
     941             :     case TFileRequestWriteResponse:
     942             :         {
     943           0 :             if (MaybeDestroy(t)) {
     944           0 :                 new (mozilla::KnownNotNull, ptr_FileRequestWriteResponse()) FileRequestWriteResponse;
     945             :             }
     946           0 :             (*(ptr_FileRequestWriteResponse())) = (aRhs).get_FileRequestWriteResponse();
     947           0 :             break;
     948             :         }
     949             :     case TFileRequestTruncateResponse:
     950             :         {
     951           0 :             if (MaybeDestroy(t)) {
     952           0 :                 new (mozilla::KnownNotNull, ptr_FileRequestTruncateResponse()) FileRequestTruncateResponse;
     953             :             }
     954           0 :             (*(ptr_FileRequestTruncateResponse())) = (aRhs).get_FileRequestTruncateResponse();
     955           0 :             break;
     956             :         }
     957             :     case TFileRequestFlushResponse:
     958             :         {
     959           0 :             if (MaybeDestroy(t)) {
     960           0 :                 new (mozilla::KnownNotNull, ptr_FileRequestFlushResponse()) FileRequestFlushResponse;
     961             :             }
     962           0 :             (*(ptr_FileRequestFlushResponse())) = (aRhs).get_FileRequestFlushResponse();
     963           0 :             break;
     964             :         }
     965             :     case TFileRequestGetFileResponse:
     966             :         {
     967           0 :             if (MaybeDestroy(t)) {
     968           0 :                 new (mozilla::KnownNotNull, ptr_FileRequestGetFileResponse()) FileRequestGetFileResponse;
     969             :             }
     970           0 :             (*(ptr_FileRequestGetFileResponse())) = (aRhs).get_FileRequestGetFileResponse();
     971           0 :             break;
     972             :         }
     973             :     case T__None:
     974             :         {
     975           0 :             static_cast<void>(MaybeDestroy(t));
     976           0 :             break;
     977             :         }
     978             :     default:
     979             :         {
     980           0 :             mozilla::ipc::LogicError("unreached");
     981           0 :             break;
     982             :         }
     983             :     }
     984           0 :     mType = t;
     985           0 :     return (*(this));
     986             : }
     987             : 
     988           0 : auto FileRequestResponse::operator==(const nsresult& aRhs) const -> bool
     989             : {
     990           0 :     return (get_nsresult()) == (aRhs);
     991             : }
     992             : 
     993           0 : auto FileRequestResponse::operator==(const FileRequestGetMetadataResponse& aRhs) const -> bool
     994             : {
     995           0 :     return (get_FileRequestGetMetadataResponse()) == (aRhs);
     996             : }
     997             : 
     998           0 : auto FileRequestResponse::operator==(const FileRequestReadResponse& aRhs) const -> bool
     999             : {
    1000           0 :     return (get_FileRequestReadResponse()) == (aRhs);
    1001             : }
    1002             : 
    1003           0 : auto FileRequestResponse::operator==(const FileRequestWriteResponse& aRhs) const -> bool
    1004             : {
    1005           0 :     return (get_FileRequestWriteResponse()) == (aRhs);
    1006             : }
    1007             : 
    1008           0 : auto FileRequestResponse::operator==(const FileRequestTruncateResponse& aRhs) const -> bool
    1009             : {
    1010           0 :     return (get_FileRequestTruncateResponse()) == (aRhs);
    1011             : }
    1012             : 
    1013           0 : auto FileRequestResponse::operator==(const FileRequestFlushResponse& aRhs) const -> bool
    1014             : {
    1015           0 :     return (get_FileRequestFlushResponse()) == (aRhs);
    1016             : }
    1017             : 
    1018           0 : auto FileRequestResponse::operator==(const FileRequestGetFileResponse& aRhs) const -> bool
    1019             : {
    1020           0 :     return (get_FileRequestGetFileResponse()) == (aRhs);
    1021             : }
    1022             : 
    1023           0 : auto FileRequestResponse::operator==(const FileRequestResponse& aRhs) const -> bool
    1024             : {
    1025           0 :     if ((type()) != ((aRhs).type())) {
    1026           0 :         return false;
    1027             :     }
    1028             : 
    1029           0 :     switch (type()) {
    1030             :     case Tnsresult:
    1031             :         {
    1032           0 :             return (get_nsresult()) == ((aRhs).get_nsresult());
    1033             :         }
    1034             :     case TFileRequestGetMetadataResponse:
    1035             :         {
    1036           0 :             return (get_FileRequestGetMetadataResponse()) == ((aRhs).get_FileRequestGetMetadataResponse());
    1037             :         }
    1038             :     case TFileRequestReadResponse:
    1039             :         {
    1040           0 :             return (get_FileRequestReadResponse()) == ((aRhs).get_FileRequestReadResponse());
    1041             :         }
    1042             :     case TFileRequestWriteResponse:
    1043             :         {
    1044           0 :             return (get_FileRequestWriteResponse()) == ((aRhs).get_FileRequestWriteResponse());
    1045             :         }
    1046             :     case TFileRequestTruncateResponse:
    1047             :         {
    1048           0 :             return (get_FileRequestTruncateResponse()) == ((aRhs).get_FileRequestTruncateResponse());
    1049             :         }
    1050             :     case TFileRequestFlushResponse:
    1051             :         {
    1052           0 :             return (get_FileRequestFlushResponse()) == ((aRhs).get_FileRequestFlushResponse());
    1053             :         }
    1054             :     case TFileRequestGetFileResponse:
    1055             :         {
    1056           0 :             return (get_FileRequestGetFileResponse()) == ((aRhs).get_FileRequestGetFileResponse());
    1057             :         }
    1058             :     default:
    1059             :         {
    1060           0 :             mozilla::ipc::LogicError("unreached");
    1061           0 :             return false;
    1062             :         }
    1063             :     }
    1064             : }
    1065             : 
    1066           0 : auto FileRequestResponse::get(nsresult* aOutValue) const -> void
    1067             : {
    1068           0 :     (*(aOutValue)) = get_nsresult();
    1069           0 : }
    1070             : 
    1071           0 : auto FileRequestResponse::get(FileRequestGetMetadataResponse* aOutValue) const -> void
    1072             : {
    1073           0 :     (*(aOutValue)) = get_FileRequestGetMetadataResponse();
    1074           0 : }
    1075             : 
    1076           0 : auto FileRequestResponse::get(FileRequestReadResponse* aOutValue) const -> void
    1077             : {
    1078           0 :     (*(aOutValue)) = get_FileRequestReadResponse();
    1079           0 : }
    1080             : 
    1081           0 : auto FileRequestResponse::get(FileRequestWriteResponse* aOutValue) const -> void
    1082             : {
    1083           0 :     (*(aOutValue)) = get_FileRequestWriteResponse();
    1084           0 : }
    1085             : 
    1086           0 : auto FileRequestResponse::get(FileRequestTruncateResponse* aOutValue) const -> void
    1087             : {
    1088           0 :     (*(aOutValue)) = get_FileRequestTruncateResponse();
    1089           0 : }
    1090             : 
    1091           0 : auto FileRequestResponse::get(FileRequestFlushResponse* aOutValue) const -> void
    1092             : {
    1093           0 :     (*(aOutValue)) = get_FileRequestFlushResponse();
    1094           0 : }
    1095             : 
    1096           0 : auto FileRequestResponse::get(FileRequestGetFileResponse* aOutValue) const -> void
    1097             : {
    1098           0 :     (*(aOutValue)) = get_FileRequestGetFileResponse();
    1099           0 : }
    1100             : 
    1101             : } // namespace dom
    1102             : } // namespace mozilla

Generated by: LCOV version 1.13