LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPluginScriptableObject.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 295 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 67 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/plugins/PPluginScriptableObject.h"
       8             : 
       9             : namespace mozilla {
      10             : namespace plugins {
      11             : namespace PPluginScriptableObject {
      12             : 
      13             : nsresult
      14           0 : CreateEndpoints(
      15             :         base::ProcessId aParentDestPid,
      16             :         base::ProcessId aChildDestPid,
      17             :         mozilla::ipc::Endpoint<mozilla::plugins::PPluginScriptableObjectParent>* aParent,
      18             :         mozilla::ipc::Endpoint<mozilla::plugins::PPluginScriptableObjectChild>* aChild)
      19             : {
      20           0 :     return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PPluginScriptableObjectMsgStart, PPluginScriptableObjectMsgStartChild, 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, "PPluginScriptableObject::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, "PPluginScriptableObject::Reply___delete__", true);
      50             : }
      51             : IPC::Message*
      52           0 : Msg_NPN_Evaluate(int32_t routingId)
      53             : {
      54           0 :     return new IPC::Message(routingId, Msg_NPN_Evaluate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_NPN_Evaluate", true);
      55             : }
      56             : IPC::Message*
      57           0 : Reply_NPN_Evaluate(int32_t routingId)
      58             : {
      59           0 :     return new IPC::Message(routingId, Reply_NPN_Evaluate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_NPN_Evaluate", true);
      60             : }
      61             : IPC::Message*
      62           0 : Msg_Invalidate(int32_t routingId)
      63             : {
      64           0 :     return new IPC::Message(routingId, Msg_Invalidate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_Invalidate", true);
      65             : }
      66             : IPC::Message*
      67           0 : Reply_Invalidate(int32_t routingId)
      68             : {
      69           0 :     return new IPC::Message(routingId, Reply_Invalidate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_Invalidate", true);
      70             : }
      71             : IPC::Message*
      72           0 : Msg_HasMethod(int32_t routingId)
      73             : {
      74           0 :     return new IPC::Message(routingId, Msg_HasMethod__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_HasMethod", true);
      75             : }
      76             : IPC::Message*
      77           0 : Reply_HasMethod(int32_t routingId)
      78             : {
      79           0 :     return new IPC::Message(routingId, Reply_HasMethod__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_HasMethod", true);
      80             : }
      81             : IPC::Message*
      82           0 : Msg_Invoke(int32_t routingId)
      83             : {
      84           0 :     return new IPC::Message(routingId, Msg_Invoke__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_Invoke", true);
      85             : }
      86             : IPC::Message*
      87           0 : Reply_Invoke(int32_t routingId)
      88             : {
      89           0 :     return new IPC::Message(routingId, Reply_Invoke__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_Invoke", true);
      90             : }
      91             : IPC::Message*
      92           0 : Msg_InvokeDefault(int32_t routingId)
      93             : {
      94           0 :     return new IPC::Message(routingId, Msg_InvokeDefault__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_InvokeDefault", true);
      95             : }
      96             : IPC::Message*
      97           0 : Reply_InvokeDefault(int32_t routingId)
      98             : {
      99           0 :     return new IPC::Message(routingId, Reply_InvokeDefault__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_InvokeDefault", true);
     100             : }
     101             : IPC::Message*
     102           0 : Msg_HasProperty(int32_t routingId)
     103             : {
     104           0 :     return new IPC::Message(routingId, Msg_HasProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_HasProperty", true);
     105             : }
     106             : IPC::Message*
     107           0 : Reply_HasProperty(int32_t routingId)
     108             : {
     109           0 :     return new IPC::Message(routingId, Reply_HasProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_HasProperty", true);
     110             : }
     111             : IPC::Message*
     112           0 : Msg_SetProperty(int32_t routingId)
     113             : {
     114           0 :     return new IPC::Message(routingId, Msg_SetProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_SetProperty", true);
     115             : }
     116             : IPC::Message*
     117           0 : Reply_SetProperty(int32_t routingId)
     118             : {
     119           0 :     return new IPC::Message(routingId, Reply_SetProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_SetProperty", true);
     120             : }
     121             : IPC::Message*
     122           0 : Msg_RemoveProperty(int32_t routingId)
     123             : {
     124           0 :     return new IPC::Message(routingId, Msg_RemoveProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_RemoveProperty", true);
     125             : }
     126             : IPC::Message*
     127           0 : Reply_RemoveProperty(int32_t routingId)
     128             : {
     129           0 :     return new IPC::Message(routingId, Reply_RemoveProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_RemoveProperty", true);
     130             : }
     131             : IPC::Message*
     132           0 : Msg_Enumerate(int32_t routingId)
     133             : {
     134           0 :     return new IPC::Message(routingId, Msg_Enumerate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_Enumerate", true);
     135             : }
     136             : IPC::Message*
     137           0 : Reply_Enumerate(int32_t routingId)
     138             : {
     139           0 :     return new IPC::Message(routingId, Reply_Enumerate__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_Enumerate", true);
     140             : }
     141             : IPC::Message*
     142           0 : Msg_Construct(int32_t routingId)
     143             : {
     144           0 :     return new IPC::Message(routingId, Msg_Construct__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_Construct", true);
     145             : }
     146             : IPC::Message*
     147           0 : Reply_Construct(int32_t routingId)
     148             : {
     149           0 :     return new IPC::Message(routingId, Reply_Construct__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_Construct", true);
     150             : }
     151             : IPC::Message*
     152           0 : Msg_Protect(int32_t routingId)
     153             : {
     154           0 :     return new IPC::Message(routingId, Msg_Protect__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_Protect", true);
     155             : }
     156             : IPC::Message*
     157           0 : Msg_Unprotect(int32_t routingId)
     158             : {
     159           0 :     return new IPC::Message(routingId, Msg_Unprotect__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_Unprotect", true);
     160             : }
     161             : IPC::Message*
     162           0 : Msg_GetParentProperty(int32_t routingId)
     163             : {
     164           0 :     return new IPC::Message(routingId, Msg_GetParentProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_GetParentProperty", true);
     165             : }
     166             : IPC::Message*
     167           0 : Reply_GetParentProperty(int32_t routingId)
     168             : {
     169           0 :     return new IPC::Message(routingId, Reply_GetParentProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_GetParentProperty", true);
     170             : }
     171             : IPC::Message*
     172           0 : Msg_GetChildProperty(int32_t routingId)
     173             : {
     174           0 :     return new IPC::Message(routingId, Msg_GetChildProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Msg_GetChildProperty", true);
     175             : }
     176             : IPC::Message*
     177           0 : Reply_GetChildProperty(int32_t routingId)
     178             : {
     179           0 :     return new IPC::Message(routingId, Reply_GetChildProperty__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PPluginScriptableObject::Reply_GetChildProperty", true);
     180             : }
     181             : 
     182             : } // namespace PPluginScriptableObject
     183             : } // namespace plugins
     184             : } // namespace mozilla
     185             : 
     186             : //-----------------------------------------------------------------------------
     187             : // Method definitions for the IPDL type |union Variant|
     188             : //
     189             : namespace mozilla {
     190             : namespace plugins {
     191           0 : auto Variant::MaybeDestroy(Type aNewType) -> bool
     192             : {
     193           0 :     if ((mType) == (T__None)) {
     194           0 :         return true;
     195             :     }
     196           0 :     if ((mType) == (aNewType)) {
     197           0 :         return false;
     198             :     }
     199           0 :     switch (mType) {
     200             :     case Tvoid_t:
     201             :         {
     202           0 :             (ptr_void_t())->~void_t__tdef();
     203           0 :             break;
     204             :         }
     205             :     case Tnull_t:
     206             :         {
     207           0 :             (ptr_null_t())->~null_t__tdef();
     208           0 :             break;
     209             :         }
     210             :     case Tbool:
     211             :         {
     212           0 :             (ptr_bool())->~bool__tdef();
     213           0 :             break;
     214             :         }
     215             :     case Tint:
     216             :         {
     217           0 :             (ptr_int())->~int__tdef();
     218           0 :             break;
     219             :         }
     220             :     case Tdouble:
     221             :         {
     222           0 :             (ptr_double())->~double__tdef();
     223           0 :             break;
     224             :         }
     225             :     case TnsCString:
     226             :         {
     227           0 :             (ptr_nsCString())->~nsCString__tdef();
     228           0 :             break;
     229             :         }
     230             :     case TPPluginScriptableObjectParent:
     231             :         {
     232           0 :             (ptr_PPluginScriptableObjectParent())->~PPluginScriptableObjectParent__tdef();
     233           0 :             break;
     234             :         }
     235             :     case TPPluginScriptableObjectChild:
     236             :         {
     237           0 :             (ptr_PPluginScriptableObjectChild())->~PPluginScriptableObjectChild__tdef();
     238           0 :             break;
     239             :         }
     240             :     default:
     241             :         {
     242           0 :             mozilla::ipc::LogicError("not reached");
     243           0 :             break;
     244             :         }
     245             :     }
     246           0 :     return true;
     247             : }
     248             : 
     249           0 : MOZ_IMPLICIT Variant::Variant(const void_t& aOther)
     250             : {
     251           0 :     new (mozilla::KnownNotNull, ptr_void_t()) void_t(aOther);
     252           0 :     mType = Tvoid_t;
     253           0 : }
     254             : 
     255           0 : MOZ_IMPLICIT Variant::Variant(const null_t& aOther)
     256             : {
     257           0 :     new (mozilla::KnownNotNull, ptr_null_t()) null_t(aOther);
     258           0 :     mType = Tnull_t;
     259           0 : }
     260             : 
     261           0 : MOZ_IMPLICIT Variant::Variant(const bool& aOther)
     262             : {
     263           0 :     new (mozilla::KnownNotNull, ptr_bool()) bool(aOther);
     264           0 :     mType = Tbool;
     265           0 : }
     266             : 
     267           0 : MOZ_IMPLICIT Variant::Variant(const int& aOther)
     268             : {
     269           0 :     new (mozilla::KnownNotNull, ptr_int()) int(aOther);
     270           0 :     mType = Tint;
     271           0 : }
     272             : 
     273           0 : MOZ_IMPLICIT Variant::Variant(const double& aOther)
     274             : {
     275           0 :     new (mozilla::KnownNotNull, ptr_double()) double(aOther);
     276           0 :     mType = Tdouble;
     277           0 : }
     278             : 
     279           0 : MOZ_IMPLICIT Variant::Variant(const nsCString& aOther)
     280             : {
     281           0 :     new (mozilla::KnownNotNull, ptr_nsCString()) nsCString(aOther);
     282           0 :     mType = TnsCString;
     283           0 : }
     284             : 
     285           0 : MOZ_IMPLICIT Variant::Variant(PPluginScriptableObjectParent* aOther)
     286             : {
     287           0 :     new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectParent()) PPluginScriptableObjectParent*(const_cast<PPluginScriptableObjectParent*>(aOther));
     288           0 :     mType = TPPluginScriptableObjectParent;
     289           0 : }
     290             : 
     291           0 : MOZ_IMPLICIT Variant::Variant(PPluginScriptableObjectChild* aOther)
     292             : {
     293           0 :     new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectChild()) PPluginScriptableObjectChild*(const_cast<PPluginScriptableObjectChild*>(aOther));
     294           0 :     mType = TPPluginScriptableObjectChild;
     295           0 : }
     296             : 
     297           0 : MOZ_IMPLICIT Variant::Variant(const Variant& aOther)
     298             : {
     299           0 :     (aOther).AssertSanity();
     300           0 :     switch ((aOther).type()) {
     301             :     case Tvoid_t:
     302             :         {
     303           0 :             new (mozilla::KnownNotNull, ptr_void_t()) void_t((aOther).get_void_t());
     304           0 :             break;
     305             :         }
     306             :     case Tnull_t:
     307             :         {
     308           0 :             new (mozilla::KnownNotNull, ptr_null_t()) null_t((aOther).get_null_t());
     309           0 :             break;
     310             :         }
     311             :     case Tbool:
     312             :         {
     313           0 :             new (mozilla::KnownNotNull, ptr_bool()) bool((aOther).get_bool());
     314           0 :             break;
     315             :         }
     316             :     case Tint:
     317             :         {
     318           0 :             new (mozilla::KnownNotNull, ptr_int()) int((aOther).get_int());
     319           0 :             break;
     320             :         }
     321             :     case Tdouble:
     322             :         {
     323           0 :             new (mozilla::KnownNotNull, ptr_double()) double((aOther).get_double());
     324           0 :             break;
     325             :         }
     326             :     case TnsCString:
     327             :         {
     328           0 :             new (mozilla::KnownNotNull, ptr_nsCString()) nsCString((aOther).get_nsCString());
     329           0 :             break;
     330             :         }
     331             :     case TPPluginScriptableObjectParent:
     332             :         {
     333           0 :             new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectParent()) PPluginScriptableObjectParent*(const_cast<PPluginScriptableObjectParent*>((aOther).get_PPluginScriptableObjectParent()));
     334           0 :             break;
     335             :         }
     336             :     case TPPluginScriptableObjectChild:
     337             :         {
     338           0 :             new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectChild()) PPluginScriptableObjectChild*(const_cast<PPluginScriptableObjectChild*>((aOther).get_PPluginScriptableObjectChild()));
     339           0 :             break;
     340             :         }
     341             :     case T__None:
     342             :         {
     343           0 :             break;
     344             :         }
     345             :     default:
     346             :         {
     347           0 :             mozilla::ipc::LogicError("unreached");
     348           0 :             return;
     349             :         }
     350             :     }
     351           0 :     mType = (aOther).type();
     352             : }
     353             : 
     354           0 : Variant::~Variant()
     355             : {
     356           0 :     static_cast<void>(MaybeDestroy(T__None));
     357           0 : }
     358             : 
     359           0 : auto Variant::operator=(const void_t& aRhs) -> Variant&
     360             : {
     361           0 :     if (MaybeDestroy(Tvoid_t)) {
     362           0 :         new (mozilla::KnownNotNull, ptr_void_t()) void_t;
     363             :     }
     364           0 :     (*(ptr_void_t())) = aRhs;
     365           0 :     mType = Tvoid_t;
     366           0 :     return (*(this));
     367             : }
     368             : 
     369           0 : auto Variant::operator=(const null_t& aRhs) -> Variant&
     370             : {
     371           0 :     if (MaybeDestroy(Tnull_t)) {
     372           0 :         new (mozilla::KnownNotNull, ptr_null_t()) null_t;
     373             :     }
     374           0 :     (*(ptr_null_t())) = aRhs;
     375           0 :     mType = Tnull_t;
     376           0 :     return (*(this));
     377             : }
     378             : 
     379           0 : auto Variant::operator=(const bool& aRhs) -> Variant&
     380             : {
     381           0 :     if (MaybeDestroy(Tbool)) {
     382           0 :         new (mozilla::KnownNotNull, ptr_bool()) bool;
     383             :     }
     384           0 :     (*(ptr_bool())) = aRhs;
     385           0 :     mType = Tbool;
     386           0 :     return (*(this));
     387             : }
     388             : 
     389           0 : auto Variant::operator=(const int& aRhs) -> Variant&
     390             : {
     391           0 :     if (MaybeDestroy(Tint)) {
     392           0 :         new (mozilla::KnownNotNull, ptr_int()) int;
     393             :     }
     394           0 :     (*(ptr_int())) = aRhs;
     395           0 :     mType = Tint;
     396           0 :     return (*(this));
     397             : }
     398             : 
     399           0 : auto Variant::operator=(const double& aRhs) -> Variant&
     400             : {
     401           0 :     if (MaybeDestroy(Tdouble)) {
     402           0 :         new (mozilla::KnownNotNull, ptr_double()) double;
     403             :     }
     404           0 :     (*(ptr_double())) = aRhs;
     405           0 :     mType = Tdouble;
     406           0 :     return (*(this));
     407             : }
     408             : 
     409           0 : auto Variant::operator=(const nsCString& aRhs) -> Variant&
     410             : {
     411           0 :     if (MaybeDestroy(TnsCString)) {
     412           0 :         new (mozilla::KnownNotNull, ptr_nsCString()) nsCString;
     413             :     }
     414           0 :     (*(ptr_nsCString())) = aRhs;
     415           0 :     mType = TnsCString;
     416           0 :     return (*(this));
     417             : }
     418             : 
     419           0 : auto Variant::operator=(PPluginScriptableObjectParent* aRhs) -> Variant&
     420             : {
     421           0 :     if (MaybeDestroy(TPPluginScriptableObjectParent)) {
     422           0 :         new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectParent()) PPluginScriptableObjectParent*;
     423             :     }
     424           0 :     (*(ptr_PPluginScriptableObjectParent())) = const_cast<PPluginScriptableObjectParent*>(aRhs);
     425           0 :     mType = TPPluginScriptableObjectParent;
     426           0 :     return (*(this));
     427             : }
     428             : 
     429           0 : auto Variant::operator=(PPluginScriptableObjectChild* aRhs) -> Variant&
     430             : {
     431           0 :     if (MaybeDestroy(TPPluginScriptableObjectChild)) {
     432           0 :         new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectChild()) PPluginScriptableObjectChild*;
     433             :     }
     434           0 :     (*(ptr_PPluginScriptableObjectChild())) = const_cast<PPluginScriptableObjectChild*>(aRhs);
     435           0 :     mType = TPPluginScriptableObjectChild;
     436           0 :     return (*(this));
     437             : }
     438             : 
     439           0 : auto Variant::operator=(const Variant& aRhs) -> Variant&
     440             : {
     441           0 :     (aRhs).AssertSanity();
     442           0 :     Type t = (aRhs).type();
     443           0 :     switch (t) {
     444             :     case Tvoid_t:
     445             :         {
     446           0 :             if (MaybeDestroy(t)) {
     447           0 :                 new (mozilla::KnownNotNull, ptr_void_t()) void_t;
     448             :             }
     449           0 :             (*(ptr_void_t())) = (aRhs).get_void_t();
     450           0 :             break;
     451             :         }
     452             :     case Tnull_t:
     453             :         {
     454           0 :             if (MaybeDestroy(t)) {
     455           0 :                 new (mozilla::KnownNotNull, ptr_null_t()) null_t;
     456             :             }
     457           0 :             (*(ptr_null_t())) = (aRhs).get_null_t();
     458           0 :             break;
     459             :         }
     460             :     case Tbool:
     461             :         {
     462           0 :             if (MaybeDestroy(t)) {
     463           0 :                 new (mozilla::KnownNotNull, ptr_bool()) bool;
     464             :             }
     465           0 :             (*(ptr_bool())) = (aRhs).get_bool();
     466           0 :             break;
     467             :         }
     468             :     case Tint:
     469             :         {
     470           0 :             if (MaybeDestroy(t)) {
     471           0 :                 new (mozilla::KnownNotNull, ptr_int()) int;
     472             :             }
     473           0 :             (*(ptr_int())) = (aRhs).get_int();
     474           0 :             break;
     475             :         }
     476             :     case Tdouble:
     477             :         {
     478           0 :             if (MaybeDestroy(t)) {
     479           0 :                 new (mozilla::KnownNotNull, ptr_double()) double;
     480             :             }
     481           0 :             (*(ptr_double())) = (aRhs).get_double();
     482           0 :             break;
     483             :         }
     484             :     case TnsCString:
     485             :         {
     486           0 :             if (MaybeDestroy(t)) {
     487           0 :                 new (mozilla::KnownNotNull, ptr_nsCString()) nsCString;
     488             :             }
     489           0 :             (*(ptr_nsCString())) = (aRhs).get_nsCString();
     490           0 :             break;
     491             :         }
     492             :     case TPPluginScriptableObjectParent:
     493             :         {
     494           0 :             if (MaybeDestroy(t)) {
     495           0 :                 new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectParent()) PPluginScriptableObjectParent*;
     496             :             }
     497           0 :             (*(ptr_PPluginScriptableObjectParent())) = const_cast<PPluginScriptableObjectParent*>((aRhs).get_PPluginScriptableObjectParent());
     498           0 :             break;
     499             :         }
     500             :     case TPPluginScriptableObjectChild:
     501             :         {
     502           0 :             if (MaybeDestroy(t)) {
     503           0 :                 new (mozilla::KnownNotNull, ptr_PPluginScriptableObjectChild()) PPluginScriptableObjectChild*;
     504             :             }
     505           0 :             (*(ptr_PPluginScriptableObjectChild())) = const_cast<PPluginScriptableObjectChild*>((aRhs).get_PPluginScriptableObjectChild());
     506           0 :             break;
     507             :         }
     508             :     case T__None:
     509             :         {
     510           0 :             static_cast<void>(MaybeDestroy(t));
     511           0 :             break;
     512             :         }
     513             :     default:
     514             :         {
     515           0 :             mozilla::ipc::LogicError("unreached");
     516           0 :             break;
     517             :         }
     518             :     }
     519           0 :     mType = t;
     520           0 :     return (*(this));
     521             : }
     522             : 
     523           0 : auto Variant::operator==(const void_t& aRhs) const -> bool
     524             : {
     525           0 :     return (get_void_t()) == (aRhs);
     526             : }
     527             : 
     528           0 : auto Variant::operator==(const null_t& aRhs) const -> bool
     529             : {
     530           0 :     return (get_null_t()) == (aRhs);
     531             : }
     532             : 
     533           0 : auto Variant::operator==(const bool& aRhs) const -> bool
     534             : {
     535           0 :     return (get_bool()) == (aRhs);
     536             : }
     537             : 
     538           0 : auto Variant::operator==(const int& aRhs) const -> bool
     539             : {
     540           0 :     return (get_int()) == (aRhs);
     541             : }
     542             : 
     543           0 : auto Variant::operator==(const double& aRhs) const -> bool
     544             : {
     545           0 :     return (get_double()) == (aRhs);
     546             : }
     547             : 
     548           0 : auto Variant::operator==(const nsCString& aRhs) const -> bool
     549             : {
     550           0 :     return (get_nsCString()) == (aRhs);
     551             : }
     552             : 
     553           0 : auto Variant::operator==(PPluginScriptableObjectParent* aRhs) const -> bool
     554             : {
     555           0 :     return (get_PPluginScriptableObjectParent()) == (aRhs);
     556             : }
     557             : 
     558           0 : auto Variant::operator==(PPluginScriptableObjectChild* aRhs) const -> bool
     559             : {
     560           0 :     return (get_PPluginScriptableObjectChild()) == (aRhs);
     561             : }
     562             : 
     563           0 : auto Variant::operator==(const Variant& aRhs) const -> bool
     564             : {
     565           0 :     if ((type()) != ((aRhs).type())) {
     566           0 :         return false;
     567             :     }
     568             : 
     569           0 :     switch (type()) {
     570             :     case Tvoid_t:
     571             :         {
     572           0 :             return (get_void_t()) == ((aRhs).get_void_t());
     573             :         }
     574             :     case Tnull_t:
     575             :         {
     576           0 :             return (get_null_t()) == ((aRhs).get_null_t());
     577             :         }
     578             :     case Tbool:
     579             :         {
     580           0 :             return (get_bool()) == ((aRhs).get_bool());
     581             :         }
     582             :     case Tint:
     583             :         {
     584           0 :             return (get_int()) == ((aRhs).get_int());
     585             :         }
     586             :     case Tdouble:
     587             :         {
     588           0 :             return (get_double()) == ((aRhs).get_double());
     589             :         }
     590             :     case TnsCString:
     591             :         {
     592           0 :             return (get_nsCString()) == ((aRhs).get_nsCString());
     593             :         }
     594             :     case TPPluginScriptableObjectParent:
     595             :         {
     596           0 :             return (get_PPluginScriptableObjectParent()) == ((aRhs).get_PPluginScriptableObjectParent());
     597             :         }
     598             :     case TPPluginScriptableObjectChild:
     599             :         {
     600           0 :             return (get_PPluginScriptableObjectChild()) == ((aRhs).get_PPluginScriptableObjectChild());
     601             :         }
     602             :     default:
     603             :         {
     604           0 :             mozilla::ipc::LogicError("unreached");
     605           0 :             return false;
     606             :         }
     607             :     }
     608             : }
     609             : 
     610           0 : auto Variant::get(void_t* aOutValue) const -> void
     611             : {
     612           0 :     (*(aOutValue)) = get_void_t();
     613           0 : }
     614             : 
     615           0 : auto Variant::get(null_t* aOutValue) const -> void
     616             : {
     617           0 :     (*(aOutValue)) = get_null_t();
     618           0 : }
     619             : 
     620           0 : auto Variant::get(bool* aOutValue) const -> void
     621             : {
     622           0 :     (*(aOutValue)) = get_bool();
     623           0 : }
     624             : 
     625           0 : auto Variant::get(int* aOutValue) const -> void
     626             : {
     627           0 :     (*(aOutValue)) = get_int();
     628           0 : }
     629             : 
     630           0 : auto Variant::get(double* aOutValue) const -> void
     631             : {
     632           0 :     (*(aOutValue)) = get_double();
     633           0 : }
     634             : 
     635           0 : auto Variant::get(nsCString* aOutValue) const -> void
     636             : {
     637           0 :     (*(aOutValue)) = get_nsCString();
     638           0 : }
     639             : 
     640           0 : auto Variant::get(PPluginScriptableObjectParent** aOutValue) const -> void
     641             : {
     642           0 :     (*(aOutValue)) = get_PPluginScriptableObjectParent();
     643           0 : }
     644             : 
     645           0 : auto Variant::get(PPluginScriptableObjectChild** aOutValue) const -> void
     646             : {
     647           0 :     (*(aOutValue)) = get_PPluginScriptableObjectChild();
     648           0 : }
     649             : 
     650             : } // namespace plugins
     651             : } // namespace mozilla

Generated by: LCOV version 1.13