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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef ipc_testshell_TestShellChild_h
6 #define ipc_testshell_TestShellChild_h 1
8 #include "mozilla/ipc/PTestShellChild.h"
9 #include "mozilla/ipc/PTestShellCommandChild.h"
10 #include "mozilla/ipc/XPCShellEnvironment.h"
12 #include "nsAutoPtr.h"
18 class XPCShellEnvironment
;
20 class TestShellChild
: public PTestShellChild
{
24 mozilla::ipc::IPCResult
RecvExecuteCommand(const nsString
& aCommand
);
26 PTestShellCommandChild
* AllocPTestShellCommandChild(const nsString
& aCommand
);
28 mozilla::ipc::IPCResult
RecvPTestShellCommandConstructor(
29 PTestShellCommandChild
* aActor
, const nsString
& aCommand
) override
;
31 bool DeallocPTestShellCommandChild(PTestShellCommandChild
* aCommand
);
34 nsAutoPtr
<XPCShellEnvironment
> mXPCShell
;
38 } /* namespace mozilla */
40 #endif /* ipc_testshell_TestShellChild_h */