michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_ipc_backgroundparentimpl_h__ michael@0: #define mozilla_ipc_backgroundparentimpl_h__ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/ipc/PBackgroundParent.h" michael@0: michael@0: namespace mozilla { michael@0: namespace ipc { michael@0: michael@0: // Instances of this class should never be created directly. This class is meant michael@0: // to be inherited in BackgroundImpl. michael@0: class BackgroundParentImpl : public PBackgroundParent michael@0: { michael@0: protected: michael@0: BackgroundParentImpl(); michael@0: virtual ~BackgroundParentImpl(); michael@0: michael@0: virtual void michael@0: ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE; michael@0: michael@0: virtual PBackgroundTestParent* michael@0: AllocPBackgroundTestParent(const nsCString& aTestArg) MOZ_OVERRIDE; michael@0: michael@0: virtual bool michael@0: RecvPBackgroundTestConstructor(PBackgroundTestParent* aActor, michael@0: const nsCString& aTestArg) MOZ_OVERRIDE; michael@0: michael@0: virtual bool michael@0: DeallocPBackgroundTestParent(PBackgroundTestParent* aActor) MOZ_OVERRIDE; michael@0: }; michael@0: michael@0: } // namespace ipc michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_ipc_backgroundparentimpl_h__