Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef mozilla_ipc_backgroundparentimpl_h__
6 #define mozilla_ipc_backgroundparentimpl_h__
8 #include "mozilla/Attributes.h"
9 #include "mozilla/ipc/PBackgroundParent.h"
11 namespace mozilla {
12 namespace ipc {
14 // Instances of this class should never be created directly. This class is meant
15 // to be inherited in BackgroundImpl.
16 class BackgroundParentImpl : public PBackgroundParent
17 {
18 protected:
19 BackgroundParentImpl();
20 virtual ~BackgroundParentImpl();
22 virtual void
23 ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
25 virtual PBackgroundTestParent*
26 AllocPBackgroundTestParent(const nsCString& aTestArg) MOZ_OVERRIDE;
28 virtual bool
29 RecvPBackgroundTestConstructor(PBackgroundTestParent* aActor,
30 const nsCString& aTestArg) MOZ_OVERRIDE;
32 virtual bool
33 DeallocPBackgroundTestParent(PBackgroundTestParent* aActor) MOZ_OVERRIDE;
34 };
36 } // namespace ipc
37 } // namespace mozilla
39 #endif // mozilla_ipc_backgroundparentimpl_h__