/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
void NeckoChild::InitNeckoChild() { if (!IsNeckoChild()) {
MOZ_ASSERT(false, "InitNeckoChild called by non-child!"); return;
}
if (!gNeckoChild) {
mozilla::dom::ContentChild* cpc =
mozilla::dom::ContentChild::GetSingleton();
NS_ASSERTION(cpc, "Content Protocol is NULL!"); if (NS_WARN_IF(cpc->IsShuttingDown())) { return;
}
RefPtr<NeckoChild> child = new NeckoChild();
gNeckoChild = cpc->SendPNeckoConstructor(child);
NS_ASSERTION(gNeckoChild, "PNecko Protocol init failed!");
}
}
PStunAddrsRequestChild* NeckoChild::AllocPStunAddrsRequestChild() { // We don't allocate here: instead we always use IPDL constructor that takes // an existing object
MOZ_ASSERT_UNREACHABLE( "AllocPStunAddrsRequestChild should not be called " "on child"); return nullptr;
}
PWebrtcTCPSocketChild* NeckoChild::AllocPWebrtcTCPSocketChild( const Maybe<TabId>& tabId) { // We don't allocate here: instead we always use IPDL constructor that takes // an existing object
MOZ_ASSERT_UNREACHABLE( "AllocPWebrtcTCPSocketChild should not be called on" " child"); return nullptr;
}
PCookieServiceChild* NeckoChild::AllocPCookieServiceChild() { // We don't allocate here: see CookieService::GetSingleton()
MOZ_ASSERT_UNREACHABLE("AllocPCookieServiceChild should not be called"); return nullptr;
}
bool NeckoChild::DeallocPCookieServiceChild(PCookieServiceChild* cs) {
NS_ASSERTION(IsNeckoChild(), "DeallocPCookieServiceChild called by non-child!");
CookieServiceChild* p = static_cast<CookieServiceChild*>(cs);
p->Release(); returntrue;
}
PWebSocketChild* NeckoChild::AllocPWebSocketChild(
PBrowserChild* browser, const SerializedLoadContext& aSerialized, const uint32_t& aSerial) {
MOZ_ASSERT_UNREACHABLE("AllocPWebSocketChild should not be called"); return nullptr;
}
PUDPSocketChild* NeckoChild::AllocPUDPSocketChild(nsIPrincipal* aPrincipal, const nsACString& aFilter) {
MOZ_ASSERT_UNREACHABLE("AllocPUDPSocket should not be called"); return nullptr;
}
PTransportProviderChild* NeckoChild::AllocPTransportProviderChild() { // This refcount is transferred to the receiver of the message that // includes the PTransportProviderChild actor.
RefPtr<TransportProviderChild> res = new TransportProviderChild();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.