ipc/glue/BackgroundParentImpl.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:91f47b62e877
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/. */
4
5 #ifndef mozilla_ipc_backgroundparentimpl_h__
6 #define mozilla_ipc_backgroundparentimpl_h__
7
8 #include "mozilla/Attributes.h"
9 #include "mozilla/ipc/PBackgroundParent.h"
10
11 namespace mozilla {
12 namespace ipc {
13
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();
21
22 virtual void
23 ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
24
25 virtual PBackgroundTestParent*
26 AllocPBackgroundTestParent(const nsCString& aTestArg) MOZ_OVERRIDE;
27
28 virtual bool
29 RecvPBackgroundTestConstructor(PBackgroundTestParent* aActor,
30 const nsCString& aTestArg) MOZ_OVERRIDE;
31
32 virtual bool
33 DeallocPBackgroundTestParent(PBackgroundTestParent* aActor) MOZ_OVERRIDE;
34 };
35
36 } // namespace ipc
37 } // namespace mozilla
38
39 #endif // mozilla_ipc_backgroundparentimpl_h__

mercurial