LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundIDBFactoryRequest.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 167 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 36 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/indexedDB/PBackgroundIDBFactoryRequest.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace dom {
      11             : namespace indexedDB {
      12             : namespace PBackgroundIDBFactoryRequest {
      13             : 
      14             : nsresult
      15           0 : CreateEndpoints(
      16             :         base::ProcessId aParentDestPid,
      17             :         base::ProcessId aChildDestPid,
      18             :         mozilla::ipc::Endpoint<mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestParent>* aParent,
      19             :         mozilla::ipc::Endpoint<mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestChild>* aChild)
      20             : {
      21           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PBackgroundIDBFactoryRequestMsgStart, PBackgroundIDBFactoryRequestMsgStartChild, aParent, aChild);
      22             : }
      23             : void
      24           0 : Transition(
      25             :         MessageType msg,
      26             :         State* next)
      27             : {
      28           0 :     switch ((*(next))) {
      29             :     case __Null:
      30           0 :         if ((Msg___delete____ID) == (msg)) {
      31           0 :             (*(next)) = __Dead;
      32             :         }
      33           0 :         break;
      34             :     case __Dead:
      35           0 :         mozilla::ipc::LogicError("__delete__()d actor");
      36           0 :         break;
      37             :     default:
      38           0 :         mozilla::ipc::LogicError("corrupted actor state");
      39           0 :         break;
      40             :     }
      41           0 : }
      42             : IPC::Message*
      43           0 : Msg___delete__(int32_t routingId)
      44             : {
      45           0 :     return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBFactoryRequest::Msg___delete__", true);
      46             : }
      47             : IPC::Message*
      48           0 : Reply___delete__(int32_t routingId)
      49             : {
      50           0 :     return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBFactoryRequest::Reply___delete__", true);
      51             : }
      52             : IPC::Message*
      53           0 : Msg_PermissionChallenge(int32_t routingId)
      54             : {
      55           0 :     return new IPC::Message(routingId, Msg_PermissionChallenge__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBFactoryRequest::Msg_PermissionChallenge", true);
      56             : }
      57             : IPC::Message*
      58           0 : Msg_Blocked(int32_t routingId)
      59             : {
      60           0 :     return new IPC::Message(routingId, Msg_Blocked__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBFactoryRequest::Msg_Blocked", true);
      61             : }
      62             : IPC::Message*
      63           0 : Msg_PermissionRetry(int32_t routingId)
      64             : {
      65           0 :     return new IPC::Message(routingId, Msg_PermissionRetry__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBFactoryRequest::Msg_PermissionRetry", true);
      66             : }
      67             : 
      68             : } // namespace PBackgroundIDBFactoryRequest
      69             : } // namespace indexedDB
      70             : } // namespace dom
      71             : } // namespace mozilla
      72             : 
      73             : //-----------------------------------------------------------------------------
      74             : // Method definitions for the IPDL type |struct OpenDatabaseRequestResponse|
      75             : //
      76             : namespace mozilla {
      77             : namespace dom {
      78             : namespace indexedDB {
      79           0 : MOZ_IMPLICIT OpenDatabaseRequestResponse::OpenDatabaseRequestResponse()
      80             : {
      81           0 :     Init();
      82           0 : }
      83             : 
      84           0 : OpenDatabaseRequestResponse::~OpenDatabaseRequestResponse()
      85             : {
      86           0 : }
      87             : 
      88           0 : auto OpenDatabaseRequestResponse::operator==(const OpenDatabaseRequestResponse& _o) const -> bool
      89             : {
      90           0 :     if ((!((databaseParent()) == ((_o).databaseParent())))) {
      91           0 :         return false;
      92             :     }
      93           0 :     if ((!((databaseChild()) == ((_o).databaseChild())))) {
      94           0 :         return false;
      95             :     }
      96           0 :     return true;
      97             : }
      98             : 
      99           0 : auto OpenDatabaseRequestResponse::operator!=(const OpenDatabaseRequestResponse& _o) const -> bool
     100             : {
     101           0 :     return (!(operator==(_o)));
     102             : }
     103             : 
     104           0 : auto OpenDatabaseRequestResponse::Init() -> void
     105             : {
     106           0 :     databaseParent_ = nullptr;
     107           0 :     databaseChild_ = nullptr;
     108           0 : }
     109             : 
     110           0 : auto OpenDatabaseRequestResponse::Assign(
     111             :         PBackgroundIDBDatabaseParent* _databaseParent,
     112             :         PBackgroundIDBDatabaseChild* _databaseChild) -> void
     113             : {
     114           0 :     databaseParent_ = _databaseParent;
     115           0 :     databaseChild_ = _databaseChild;
     116           0 : }
     117             : 
     118             : } // namespace indexedDB
     119             : } // namespace dom
     120             : } // namespace mozilla
     121             : 
     122             : //-----------------------------------------------------------------------------
     123             : // Method definitions for the IPDL type |struct DeleteDatabaseRequestResponse|
     124             : //
     125             : namespace mozilla {
     126             : namespace dom {
     127             : namespace indexedDB {
     128           0 : MOZ_IMPLICIT DeleteDatabaseRequestResponse::DeleteDatabaseRequestResponse() :
     129           0 :     previousVersion_()
     130             : {
     131           0 :     Init();
     132           0 : }
     133             : 
     134           0 : DeleteDatabaseRequestResponse::~DeleteDatabaseRequestResponse()
     135             : {
     136           0 : }
     137             : 
     138           0 : auto DeleteDatabaseRequestResponse::operator==(const DeleteDatabaseRequestResponse& _o) const -> bool
     139             : {
     140           0 :     if ((!((previousVersion()) == ((_o).previousVersion())))) {
     141           0 :         return false;
     142             :     }
     143           0 :     return true;
     144             : }
     145             : 
     146           0 : auto DeleteDatabaseRequestResponse::operator!=(const DeleteDatabaseRequestResponse& _o) const -> bool
     147             : {
     148           0 :     return (!(operator==(_o)));
     149             : }
     150             : 
     151           0 : auto DeleteDatabaseRequestResponse::Init() -> void
     152             : {
     153           0 : }
     154             : 
     155           0 : auto DeleteDatabaseRequestResponse::Assign(const uint64_t& _previousVersion) -> void
     156             : {
     157           0 :     previousVersion_ = _previousVersion;
     158           0 : }
     159             : 
     160             : } // namespace indexedDB
     161             : } // namespace dom
     162             : } // namespace mozilla
     163             : 
     164             : //-----------------------------------------------------------------------------
     165             : // Method definitions for the IPDL type |union FactoryRequestResponse|
     166             : //
     167             : namespace mozilla {
     168             : namespace dom {
     169             : namespace indexedDB {
     170           0 : auto FactoryRequestResponse::MaybeDestroy(Type aNewType) -> bool
     171             : {
     172           0 :     if ((mType) == (T__None)) {
     173           0 :         return true;
     174             :     }
     175           0 :     if ((mType) == (aNewType)) {
     176           0 :         return false;
     177             :     }
     178           0 :     switch (mType) {
     179             :     case Tnsresult:
     180             :         {
     181           0 :             (ptr_nsresult())->~nsresult__tdef();
     182           0 :             break;
     183             :         }
     184             :     case TOpenDatabaseRequestResponse:
     185             :         {
     186           0 :             (ptr_OpenDatabaseRequestResponse())->~OpenDatabaseRequestResponse__tdef();
     187           0 :             break;
     188             :         }
     189             :     case TDeleteDatabaseRequestResponse:
     190             :         {
     191           0 :             (ptr_DeleteDatabaseRequestResponse())->~DeleteDatabaseRequestResponse__tdef();
     192           0 :             break;
     193             :         }
     194             :     default:
     195             :         {
     196           0 :             mozilla::ipc::LogicError("not reached");
     197           0 :             break;
     198             :         }
     199             :     }
     200           0 :     return true;
     201             : }
     202             : 
     203           0 : MOZ_IMPLICIT FactoryRequestResponse::FactoryRequestResponse(const nsresult& aOther)
     204             : {
     205           0 :     new (mozilla::KnownNotNull, ptr_nsresult()) nsresult(aOther);
     206           0 :     mType = Tnsresult;
     207           0 : }
     208             : 
     209           0 : MOZ_IMPLICIT FactoryRequestResponse::FactoryRequestResponse(const OpenDatabaseRequestResponse& aOther)
     210             : {
     211           0 :     new (mozilla::KnownNotNull, ptr_OpenDatabaseRequestResponse()) OpenDatabaseRequestResponse(aOther);
     212           0 :     mType = TOpenDatabaseRequestResponse;
     213           0 : }
     214             : 
     215           0 : MOZ_IMPLICIT FactoryRequestResponse::FactoryRequestResponse(const DeleteDatabaseRequestResponse& aOther)
     216             : {
     217           0 :     new (mozilla::KnownNotNull, ptr_DeleteDatabaseRequestResponse()) DeleteDatabaseRequestResponse(aOther);
     218           0 :     mType = TDeleteDatabaseRequestResponse;
     219           0 : }
     220             : 
     221           0 : MOZ_IMPLICIT FactoryRequestResponse::FactoryRequestResponse(const FactoryRequestResponse& aOther)
     222             : {
     223           0 :     (aOther).AssertSanity();
     224           0 :     switch ((aOther).type()) {
     225             :     case Tnsresult:
     226             :         {
     227           0 :             new (mozilla::KnownNotNull, ptr_nsresult()) nsresult((aOther).get_nsresult());
     228           0 :             break;
     229             :         }
     230             :     case TOpenDatabaseRequestResponse:
     231             :         {
     232           0 :             new (mozilla::KnownNotNull, ptr_OpenDatabaseRequestResponse()) OpenDatabaseRequestResponse((aOther).get_OpenDatabaseRequestResponse());
     233           0 :             break;
     234             :         }
     235             :     case TDeleteDatabaseRequestResponse:
     236             :         {
     237           0 :             new (mozilla::KnownNotNull, ptr_DeleteDatabaseRequestResponse()) DeleteDatabaseRequestResponse((aOther).get_DeleteDatabaseRequestResponse());
     238           0 :             break;
     239             :         }
     240             :     case T__None:
     241             :         {
     242           0 :             break;
     243             :         }
     244             :     default:
     245             :         {
     246           0 :             mozilla::ipc::LogicError("unreached");
     247           0 :             return;
     248             :         }
     249             :     }
     250           0 :     mType = (aOther).type();
     251             : }
     252             : 
     253           0 : FactoryRequestResponse::~FactoryRequestResponse()
     254             : {
     255           0 :     static_cast<void>(MaybeDestroy(T__None));
     256           0 : }
     257             : 
     258           0 : auto FactoryRequestResponse::operator=(const nsresult& aRhs) -> FactoryRequestResponse&
     259             : {
     260           0 :     if (MaybeDestroy(Tnsresult)) {
     261           0 :         new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
     262             :     }
     263           0 :     (*(ptr_nsresult())) = aRhs;
     264           0 :     mType = Tnsresult;
     265           0 :     return (*(this));
     266             : }
     267             : 
     268           0 : auto FactoryRequestResponse::operator=(const OpenDatabaseRequestResponse& aRhs) -> FactoryRequestResponse&
     269             : {
     270           0 :     if (MaybeDestroy(TOpenDatabaseRequestResponse)) {
     271           0 :         new (mozilla::KnownNotNull, ptr_OpenDatabaseRequestResponse()) OpenDatabaseRequestResponse;
     272             :     }
     273           0 :     (*(ptr_OpenDatabaseRequestResponse())) = aRhs;
     274           0 :     mType = TOpenDatabaseRequestResponse;
     275           0 :     return (*(this));
     276             : }
     277             : 
     278           0 : auto FactoryRequestResponse::operator=(const DeleteDatabaseRequestResponse& aRhs) -> FactoryRequestResponse&
     279             : {
     280           0 :     if (MaybeDestroy(TDeleteDatabaseRequestResponse)) {
     281           0 :         new (mozilla::KnownNotNull, ptr_DeleteDatabaseRequestResponse()) DeleteDatabaseRequestResponse;
     282             :     }
     283           0 :     (*(ptr_DeleteDatabaseRequestResponse())) = aRhs;
     284           0 :     mType = TDeleteDatabaseRequestResponse;
     285           0 :     return (*(this));
     286             : }
     287             : 
     288           0 : auto FactoryRequestResponse::operator=(const FactoryRequestResponse& aRhs) -> FactoryRequestResponse&
     289             : {
     290           0 :     (aRhs).AssertSanity();
     291           0 :     Type t = (aRhs).type();
     292           0 :     switch (t) {
     293             :     case Tnsresult:
     294             :         {
     295           0 :             if (MaybeDestroy(t)) {
     296           0 :                 new (mozilla::KnownNotNull, ptr_nsresult()) nsresult;
     297             :             }
     298           0 :             (*(ptr_nsresult())) = (aRhs).get_nsresult();
     299           0 :             break;
     300             :         }
     301             :     case TOpenDatabaseRequestResponse:
     302             :         {
     303           0 :             if (MaybeDestroy(t)) {
     304           0 :                 new (mozilla::KnownNotNull, ptr_OpenDatabaseRequestResponse()) OpenDatabaseRequestResponse;
     305             :             }
     306           0 :             (*(ptr_OpenDatabaseRequestResponse())) = (aRhs).get_OpenDatabaseRequestResponse();
     307           0 :             break;
     308             :         }
     309             :     case TDeleteDatabaseRequestResponse:
     310             :         {
     311           0 :             if (MaybeDestroy(t)) {
     312           0 :                 new (mozilla::KnownNotNull, ptr_DeleteDatabaseRequestResponse()) DeleteDatabaseRequestResponse;
     313             :             }
     314           0 :             (*(ptr_DeleteDatabaseRequestResponse())) = (aRhs).get_DeleteDatabaseRequestResponse();
     315           0 :             break;
     316             :         }
     317             :     case T__None:
     318             :         {
     319           0 :             static_cast<void>(MaybeDestroy(t));
     320           0 :             break;
     321             :         }
     322             :     default:
     323             :         {
     324           0 :             mozilla::ipc::LogicError("unreached");
     325           0 :             break;
     326             :         }
     327             :     }
     328           0 :     mType = t;
     329           0 :     return (*(this));
     330             : }
     331             : 
     332           0 : auto FactoryRequestResponse::operator==(const nsresult& aRhs) const -> bool
     333             : {
     334           0 :     return (get_nsresult()) == (aRhs);
     335             : }
     336             : 
     337           0 : auto FactoryRequestResponse::operator==(const OpenDatabaseRequestResponse& aRhs) const -> bool
     338             : {
     339           0 :     return (get_OpenDatabaseRequestResponse()) == (aRhs);
     340             : }
     341             : 
     342           0 : auto FactoryRequestResponse::operator==(const DeleteDatabaseRequestResponse& aRhs) const -> bool
     343             : {
     344           0 :     return (get_DeleteDatabaseRequestResponse()) == (aRhs);
     345             : }
     346             : 
     347           0 : auto FactoryRequestResponse::operator==(const FactoryRequestResponse& aRhs) const -> bool
     348             : {
     349           0 :     if ((type()) != ((aRhs).type())) {
     350           0 :         return false;
     351             :     }
     352             : 
     353           0 :     switch (type()) {
     354             :     case Tnsresult:
     355             :         {
     356           0 :             return (get_nsresult()) == ((aRhs).get_nsresult());
     357             :         }
     358             :     case TOpenDatabaseRequestResponse:
     359             :         {
     360           0 :             return (get_OpenDatabaseRequestResponse()) == ((aRhs).get_OpenDatabaseRequestResponse());
     361             :         }
     362             :     case TDeleteDatabaseRequestResponse:
     363             :         {
     364           0 :             return (get_DeleteDatabaseRequestResponse()) == ((aRhs).get_DeleteDatabaseRequestResponse());
     365             :         }
     366             :     default:
     367             :         {
     368           0 :             mozilla::ipc::LogicError("unreached");
     369           0 :             return false;
     370             :         }
     371             :     }
     372             : }
     373             : 
     374           0 : auto FactoryRequestResponse::get(nsresult* aOutValue) const -> void
     375             : {
     376           0 :     (*(aOutValue)) = get_nsresult();
     377           0 : }
     378             : 
     379           0 : auto FactoryRequestResponse::get(OpenDatabaseRequestResponse* aOutValue) const -> void
     380             : {
     381           0 :     (*(aOutValue)) = get_OpenDatabaseRequestResponse();
     382           0 : }
     383             : 
     384           0 : auto FactoryRequestResponse::get(DeleteDatabaseRequestResponse* aOutValue) const -> void
     385             : {
     386           0 :     (*(aOutValue)) = get_DeleteDatabaseRequestResponse();
     387           0 : }
     388             : 
     389             : } // namespace indexedDB
     390             : } // namespace dom
     391             : } // namespace mozilla

Generated by: LCOV version 1.13