1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #include "ClientManagerChild.h" 8 #include "ClientManagerParent.h" 9 10 namespace mozilla { 11 namespace dom { 12 AllocClientManagerChild()13PClientManagerChild* AllocClientManagerChild() { 14 MOZ_ASSERT_UNREACHABLE( 15 "Default ClientManagerChild allocator should not be invoked"); 16 return nullptr; 17 } 18 DeallocClientManagerChild(PClientManagerChild * aActor)19bool DeallocClientManagerChild(PClientManagerChild* aActor) { 20 delete aActor; 21 return true; 22 } 23 AllocClientManagerParent()24PClientManagerParent* AllocClientManagerParent() { 25 return new ClientManagerParent(); 26 } 27 DeallocClientManagerParent(PClientManagerParent * aActor)28bool DeallocClientManagerParent(PClientManagerParent* aActor) { 29 delete aActor; 30 return true; 31 } 32 InitClientManagerParent(PClientManagerParent * aActor)33void InitClientManagerParent(PClientManagerParent* aActor) { 34 auto actor = static_cast<ClientManagerParent*>(aActor); 35 actor->Init(); 36 } 37 38 } // namespace dom 39 } // namespace mozilla 40