nsresult DOMStorageDBChild::Init() { ContentChild* child = ContentChild::GetSingleton(); AddIPDLReference(); child->SendPStorageConstructor(this); return NS_OK; }
void StorageChild::InitRemote() { ContentChild* child = ContentChild::GetSingleton(); AddIPDLReference(); child->SendPStorageConstructor(this, null_t()); SendInit(mUseDB, mCanUseChromePersist, mSessionOnly, mInPrivateBrowsing, mDomain, mScopeDBKey, mQuotaDomainDBKey, mQuotaETLDplus1DomainDBKey, mStorageType); }
nsresult StorageChild::CloneFrom(bool aCallerSecure, DOMStorageBase* aThat) { StorageChild* other = static_cast<StorageChild*>(aThat); ContentChild* child = ContentChild::GetSingleton(); StorageClone clone(nullptr, other, aCallerSecure); AddIPDLReference(); child->SendPStorageConstructor(this, clone); SendInit(mUseDB, mCanUseChromePersist, mSessionOnly, mInPrivateBrowsing, mDomain, mScopeDBKey, mQuotaDomainDBKey, mQuotaETLDplus1DomainDBKey, mStorageType); return NS_OK; }