ipc/glue/BackgroundParentImpl.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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__

mercurial