LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundIDBDatabase.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 210 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 48 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/PBackgroundIDBDatabase.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace dom {
      11             : namespace indexedDB {
      12             : namespace PBackgroundIDBDatabase {
      13             : 
      14             : nsresult
      15           0 : CreateEndpoints(
      16             :         base::ProcessId aParentDestPid,
      17             :         base::ProcessId aChildDestPid,
      18             :         mozilla::ipc::Endpoint<mozilla::dom::indexedDB::PBackgroundIDBDatabaseParent>* aParent,
      19             :         mozilla::ipc::Endpoint<mozilla::dom::indexedDB::PBackgroundIDBDatabaseChild>* aChild)
      20             : {
      21           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PBackgroundIDBDatabaseMsgStart, PBackgroundIDBDatabaseMsgStartChild, 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_DeleteMe(int32_t routingId)
      44             : {
      45           0 :     return new IPC::Message(routingId, Msg_DeleteMe__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_DeleteMe", true);
      46             : }
      47             : IPC::Message*
      48           0 : Msg_Blocked(int32_t routingId)
      49             : {
      50           0 :     return new IPC::Message(routingId, Msg_Blocked__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_Blocked", true);
      51             : }
      52             : IPC::Message*
      53           0 : Msg_Close(int32_t routingId)
      54             : {
      55           0 :     return new IPC::Message(routingId, Msg_Close__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_Close", true);
      56             : }
      57             : IPC::Message*
      58           0 : Msg_PBackgroundIDBDatabaseFileConstructor(int32_t routingId)
      59             : {
      60           0 :     return new IPC::Message(routingId, Msg_PBackgroundIDBDatabaseFileConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_PBackgroundIDBDatabaseFileConstructor", true);
      61             : }
      62             : IPC::Message*
      63           0 : Reply_PBackgroundIDBDatabaseFileConstructor(int32_t routingId)
      64             : {
      65           0 :     return new IPC::Message(routingId, Reply_PBackgroundIDBDatabaseFileConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Reply_PBackgroundIDBDatabaseFileConstructor", true);
      66             : }
      67             : IPC::Message*
      68           0 : Msg_PBackgroundIDBDatabaseRequestConstructor(int32_t routingId)
      69             : {
      70           0 :     return new IPC::Message(routingId, Msg_PBackgroundIDBDatabaseRequestConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_PBackgroundIDBDatabaseRequestConstructor", true);
      71             : }
      72             : IPC::Message*
      73           0 : Reply_PBackgroundIDBDatabaseRequestConstructor(int32_t routingId)
      74             : {
      75           0 :     return new IPC::Message(routingId, Reply_PBackgroundIDBDatabaseRequestConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Reply_PBackgroundIDBDatabaseRequestConstructor", true);
      76             : }
      77             : IPC::Message*
      78           0 : Msg_PBackgroundIDBTransactionConstructor(int32_t routingId)
      79             : {
      80           0 :     return new IPC::Message(routingId, Msg_PBackgroundIDBTransactionConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_PBackgroundIDBTransactionConstructor", true);
      81             : }
      82             : IPC::Message*
      83           0 : Reply_PBackgroundIDBTransactionConstructor(int32_t routingId)
      84             : {
      85           0 :     return new IPC::Message(routingId, Reply_PBackgroundIDBTransactionConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Reply_PBackgroundIDBTransactionConstructor", true);
      86             : }
      87             : IPC::Message*
      88           0 : Msg___delete__(int32_t routingId)
      89             : {
      90           0 :     return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg___delete__", true);
      91             : }
      92             : IPC::Message*
      93           0 : Reply___delete__(int32_t routingId)
      94             : {
      95           0 :     return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Reply___delete__", true);
      96             : }
      97             : IPC::Message*
      98           0 : Msg_VersionChange(int32_t routingId)
      99             : {
     100           0 :     return new IPC::Message(routingId, Msg_VersionChange__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_VersionChange", true);
     101             : }
     102             : IPC::Message*
     103           0 : Msg_Invalidate(int32_t routingId)
     104             : {
     105           0 :     return new IPC::Message(routingId, Msg_Invalidate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_Invalidate", true);
     106             : }
     107             : IPC::Message*
     108           0 : Msg_CloseAfterInvalidationComplete(int32_t routingId)
     109             : {
     110           0 :     return new IPC::Message(routingId, Msg_CloseAfterInvalidationComplete__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_CloseAfterInvalidationComplete", true);
     111             : }
     112             : IPC::Message*
     113           0 : Msg_PBackgroundIDBVersionChangeTransactionConstructor(int32_t routingId)
     114             : {
     115           0 :     return new IPC::Message(routingId, Msg_PBackgroundIDBVersionChangeTransactionConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_PBackgroundIDBVersionChangeTransactionConstructor", true);
     116             : }
     117             : IPC::Message*
     118           0 : Reply_PBackgroundIDBVersionChangeTransactionConstructor(int32_t routingId)
     119             : {
     120           0 :     return new IPC::Message(routingId, Reply_PBackgroundIDBVersionChangeTransactionConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Reply_PBackgroundIDBVersionChangeTransactionConstructor", true);
     121             : }
     122             : IPC::Message*
     123           0 : Msg_PBackgroundMutableFileConstructor(int32_t routingId)
     124             : {
     125           0 :     return new IPC::Message(routingId, Msg_PBackgroundMutableFileConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Msg_PBackgroundMutableFileConstructor", true);
     126             : }
     127             : IPC::Message*
     128           0 : Reply_PBackgroundMutableFileConstructor(int32_t routingId)
     129             : {
     130           0 :     return new IPC::Message(routingId, Reply_PBackgroundMutableFileConstructor__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PBackgroundIDBDatabase::Reply_PBackgroundMutableFileConstructor", true);
     131             : }
     132             : 
     133             : } // namespace PBackgroundIDBDatabase
     134             : } // namespace indexedDB
     135             : } // namespace dom
     136             : } // namespace mozilla
     137             : 
     138             : //-----------------------------------------------------------------------------
     139             : // Method definitions for the IPDL type |struct CreateFileParams|
     140             : //
     141             : namespace mozilla {
     142             : namespace dom {
     143             : namespace indexedDB {
     144           0 : MOZ_IMPLICIT CreateFileParams::CreateFileParams() :
     145             :     name_(),
     146           0 :     type_()
     147             : {
     148           0 :     Init();
     149           0 : }
     150             : 
     151           0 : CreateFileParams::~CreateFileParams()
     152             : {
     153           0 : }
     154             : 
     155           0 : auto CreateFileParams::operator==(const CreateFileParams& _o) const -> bool
     156             : {
     157           0 :     if ((!((name()) == ((_o).name())))) {
     158           0 :         return false;
     159             :     }
     160           0 :     if ((!((type()) == ((_o).type())))) {
     161           0 :         return false;
     162             :     }
     163           0 :     return true;
     164             : }
     165             : 
     166           0 : auto CreateFileParams::operator!=(const CreateFileParams& _o) const -> bool
     167             : {
     168           0 :     return (!(operator==(_o)));
     169             : }
     170             : 
     171           0 : auto CreateFileParams::Init() -> void
     172             : {
     173           0 : }
     174             : 
     175           0 : auto CreateFileParams::Assign(
     176             :         const nsString& _name,
     177             :         const nsString& _type) -> void
     178             : {
     179           0 :     name_ = _name;
     180           0 :     type_ = _type;
     181           0 : }
     182             : 
     183             : } // namespace indexedDB
     184             : } // namespace dom
     185             : } // namespace mozilla
     186             : 
     187             : //-----------------------------------------------------------------------------
     188             : // Method definitions for the IPDL type |union DatabaseRequestParams|
     189             : //
     190             : namespace mozilla {
     191             : namespace dom {
     192             : namespace indexedDB {
     193           0 : auto DatabaseRequestParams::MaybeDestroy(Type aNewType) -> bool
     194             : {
     195           0 :     if ((mType) == (T__None)) {
     196           0 :         return true;
     197             :     }
     198           0 :     if ((mType) == (aNewType)) {
     199           0 :         return false;
     200             :     }
     201           0 :     switch (mType) {
     202             :     case TCreateFileParams:
     203             :         {
     204           0 :             (ptr_CreateFileParams())->~CreateFileParams__tdef();
     205           0 :             break;
     206             :         }
     207             :     default:
     208             :         {
     209           0 :             mozilla::ipc::LogicError("not reached");
     210           0 :             break;
     211             :         }
     212             :     }
     213           0 :     return true;
     214             : }
     215             : 
     216           0 : MOZ_IMPLICIT DatabaseRequestParams::DatabaseRequestParams(const CreateFileParams& aOther)
     217             : {
     218           0 :     new (mozilla::KnownNotNull, ptr_CreateFileParams()) CreateFileParams(aOther);
     219           0 :     mType = TCreateFileParams;
     220           0 : }
     221             : 
     222           0 : MOZ_IMPLICIT DatabaseRequestParams::DatabaseRequestParams(const DatabaseRequestParams& aOther)
     223             : {
     224           0 :     (aOther).AssertSanity();
     225           0 :     switch ((aOther).type()) {
     226             :     case TCreateFileParams:
     227             :         {
     228           0 :             new (mozilla::KnownNotNull, ptr_CreateFileParams()) CreateFileParams((aOther).get_CreateFileParams());
     229           0 :             break;
     230             :         }
     231             :     case T__None:
     232             :         {
     233           0 :             break;
     234             :         }
     235             :     default:
     236             :         {
     237           0 :             mozilla::ipc::LogicError("unreached");
     238           0 :             return;
     239             :         }
     240             :     }
     241           0 :     mType = (aOther).type();
     242             : }
     243             : 
     244           0 : DatabaseRequestParams::~DatabaseRequestParams()
     245             : {
     246           0 :     static_cast<void>(MaybeDestroy(T__None));
     247           0 : }
     248             : 
     249           0 : auto DatabaseRequestParams::operator=(const CreateFileParams& aRhs) -> DatabaseRequestParams&
     250             : {
     251           0 :     if (MaybeDestroy(TCreateFileParams)) {
     252           0 :         new (mozilla::KnownNotNull, ptr_CreateFileParams()) CreateFileParams;
     253             :     }
     254           0 :     (*(ptr_CreateFileParams())) = aRhs;
     255           0 :     mType = TCreateFileParams;
     256           0 :     return (*(this));
     257             : }
     258             : 
     259           0 : auto DatabaseRequestParams::operator=(const DatabaseRequestParams& aRhs) -> DatabaseRequestParams&
     260             : {
     261           0 :     (aRhs).AssertSanity();
     262           0 :     Type t = (aRhs).type();
     263           0 :     switch (t) {
     264             :     case TCreateFileParams:
     265             :         {
     266           0 :             if (MaybeDestroy(t)) {
     267           0 :                 new (mozilla::KnownNotNull, ptr_CreateFileParams()) CreateFileParams;
     268             :             }
     269           0 :             (*(ptr_CreateFileParams())) = (aRhs).get_CreateFileParams();
     270           0 :             break;
     271             :         }
     272             :     case T__None:
     273             :         {
     274           0 :             static_cast<void>(MaybeDestroy(t));
     275           0 :             break;
     276             :         }
     277             :     default:
     278             :         {
     279           0 :             mozilla::ipc::LogicError("unreached");
     280           0 :             break;
     281             :         }
     282             :     }
     283           0 :     mType = t;
     284           0 :     return (*(this));
     285             : }
     286             : 
     287           0 : auto DatabaseRequestParams::operator==(const CreateFileParams& aRhs) const -> bool
     288             : {
     289           0 :     return (get_CreateFileParams()) == (aRhs);
     290             : }
     291             : 
     292           0 : auto DatabaseRequestParams::operator==(const DatabaseRequestParams& aRhs) const -> bool
     293             : {
     294           0 :     if ((type()) != ((aRhs).type())) {
     295           0 :         return false;
     296             :     }
     297             : 
     298           0 :     switch (type()) {
     299             :     case TCreateFileParams:
     300             :         {
     301           0 :             return (get_CreateFileParams()) == ((aRhs).get_CreateFileParams());
     302             :         }
     303             :     default:
     304             :         {
     305           0 :             mozilla::ipc::LogicError("unreached");
     306           0 :             return false;
     307             :         }
     308             :     }
     309             : }
     310             : 
     311           0 : auto DatabaseRequestParams::get(CreateFileParams* aOutValue) const -> void
     312             : {
     313           0 :     (*(aOutValue)) = get_CreateFileParams();
     314           0 : }
     315             : 
     316             : } // namespace indexedDB
     317             : } // namespace dom
     318             : } // namespace mozilla
     319             : 
     320             : //-----------------------------------------------------------------------------
     321             : // Method definitions for the IPDL type |union NullableVersion|
     322             : //
     323             : namespace mozilla {
     324             : namespace dom {
     325             : namespace indexedDB {
     326           0 : auto NullableVersion::MaybeDestroy(Type aNewType) -> bool
     327             : {
     328           0 :     if ((mType) == (T__None)) {
     329           0 :         return true;
     330             :     }
     331           0 :     if ((mType) == (aNewType)) {
     332           0 :         return false;
     333             :     }
     334           0 :     switch (mType) {
     335             :     case Tnull_t:
     336             :         {
     337           0 :             (ptr_null_t())->~null_t__tdef();
     338           0 :             break;
     339             :         }
     340             :     case Tuint64_t:
     341             :         {
     342           0 :             (ptr_uint64_t())->~uint64_t__tdef();
     343           0 :             break;
     344             :         }
     345             :     default:
     346             :         {
     347           0 :             mozilla::ipc::LogicError("not reached");
     348           0 :             break;
     349             :         }
     350             :     }
     351           0 :     return true;
     352             : }
     353             : 
     354           0 : MOZ_IMPLICIT NullableVersion::NullableVersion(const null_t& aOther)
     355             : {
     356           0 :     new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther);
     357           0 :     mType = Tnull_t;
     358           0 : }
     359             : 
     360           0 : MOZ_IMPLICIT NullableVersion::NullableVersion(const uint64_t& aOther)
     361             : {
     362           0 :     new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t(aOther);
     363           0 :     mType = Tuint64_t;
     364           0 : }
     365             : 
     366           0 : MOZ_IMPLICIT NullableVersion::NullableVersion(const NullableVersion& aOther)
     367             : {
     368           0 :     (aOther).AssertSanity();
     369           0 :     switch ((aOther).type()) {
     370             :     case Tnull_t:
     371             :         {
     372           0 :             new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t());
     373           0 :             break;
     374             :         }
     375             :     case Tuint64_t:
     376             :         {
     377           0 :             new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t((aOther).get_uint64_t());
     378           0 :             break;
     379             :         }
     380             :     case T__None:
     381             :         {
     382           0 :             break;
     383             :         }
     384             :     default:
     385             :         {
     386           0 :             mozilla::ipc::LogicError("unreached");
     387           0 :             return;
     388             :         }
     389             :     }
     390           0 :     mType = (aOther).type();
     391             : }
     392             : 
     393           0 : NullableVersion::~NullableVersion()
     394             : {
     395           0 :     static_cast<void>(MaybeDestroy(T__None));
     396           0 : }
     397             : 
     398           0 : auto NullableVersion::operator=(const null_t& aRhs) -> NullableVersion&
     399             : {
     400           0 :     if (MaybeDestroy(Tnull_t)) {
     401           0 :         new (mozilla::KnownNotNull, ptr_null_t()) null_t;
     402             :     }
     403           0 :     (*(ptr_null_t())) = aRhs;
     404           0 :     mType = Tnull_t;
     405           0 :     return (*(this));
     406             : }
     407             : 
     408           0 : auto NullableVersion::operator=(const uint64_t& aRhs) -> NullableVersion&
     409             : {
     410           0 :     if (MaybeDestroy(Tuint64_t)) {
     411           0 :         new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t;
     412             :     }
     413           0 :     (*(ptr_uint64_t())) = aRhs;
     414           0 :     mType = Tuint64_t;
     415           0 :     return (*(this));
     416             : }
     417             : 
     418           0 : auto NullableVersion::operator=(const NullableVersion& aRhs) -> NullableVersion&
     419             : {
     420           0 :     (aRhs).AssertSanity();
     421           0 :     Type t = (aRhs).type();
     422           0 :     switch (t) {
     423             :     case Tnull_t:
     424             :         {
     425           0 :             if (MaybeDestroy(t)) {
     426           0 :                 new (mozilla::KnownNotNull, ptr_null_t()) null_t;
     427             :             }
     428           0 :             (*(ptr_null_t())) = (aRhs).get_null_t();
     429           0 :             break;
     430             :         }
     431             :     case Tuint64_t:
     432             :         {
     433           0 :             if (MaybeDestroy(t)) {
     434           0 :                 new (mozilla::KnownNotNull, ptr_uint64_t()) uint64_t;
     435             :             }
     436           0 :             (*(ptr_uint64_t())) = (aRhs).get_uint64_t();
     437           0 :             break;
     438             :         }
     439             :     case T__None:
     440             :         {
     441           0 :             static_cast<void>(MaybeDestroy(t));
     442           0 :             break;
     443             :         }
     444             :     default:
     445             :         {
     446           0 :             mozilla::ipc::LogicError("unreached");
     447           0 :             break;
     448             :         }
     449             :     }
     450           0 :     mType = t;
     451           0 :     return (*(this));
     452             : }
     453             : 
     454           0 : auto NullableVersion::operator==(const null_t& aRhs) const -> bool
     455             : {
     456           0 :     return (get_null_t()) == (aRhs);
     457             : }
     458             : 
     459           0 : auto NullableVersion::operator==(const uint64_t& aRhs) const -> bool
     460             : {
     461           0 :     return (get_uint64_t()) == (aRhs);
     462             : }
     463             : 
     464           0 : auto NullableVersion::operator==(const NullableVersion& aRhs) const -> bool
     465             : {
     466           0 :     if ((type()) != ((aRhs).type())) {
     467           0 :         return false;
     468             :     }
     469             : 
     470           0 :     switch (type()) {
     471             :     case Tnull_t:
     472             :         {
     473           0 :             return (get_null_t()) == ((aRhs).get_null_t());
     474             :         }
     475             :     case Tuint64_t:
     476             :         {
     477           0 :             return (get_uint64_t()) == ((aRhs).get_uint64_t());
     478             :         }
     479             :     default:
     480             :         {
     481           0 :             mozilla::ipc::LogicError("unreached");
     482           0 :             return false;
     483             :         }
     484             :     }
     485             : }
     486             : 
     487           0 : auto NullableVersion::get(null_t* aOutValue) const -> void
     488             : {
     489           0 :     (*(aOutValue)) = get_null_t();
     490           0 : }
     491             : 
     492           0 : auto NullableVersion::get(uint64_t* aOutValue) const -> void
     493             : {
     494           0 :     (*(aOutValue)) = get_uint64_t();
     495           0 : }
     496             : 
     497             : } // namespace indexedDB
     498             : } // namespace dom
     499             : } // namespace mozilla

Generated by: LCOV version 1.13