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"
11 #include "mozilla/UniquePtr.h"
17 class XPCShellEnvironment
;
19 class TestShellChild
: public PTestShellChild
{
23 mozilla::ipc::IPCResult
RecvExecuteCommand(const nsString
& aCommand
);
25 PTestShellCommandChild
* AllocPTestShellCommandChild(const nsString
& aCommand
);
27 mozilla::ipc::IPCResult
RecvPTestShellCommandConstructor(
28 PTestShellCommandChild
* aActor
, const nsString
& aCommand
) override
;
30 bool DeallocPTestShellCommandChild(PTestShellCommandChild
* aCommand
);
33 UniquePtr
<XPCShellEnvironment
> mXPCShell
;
37 } /* namespace mozilla */
39 #endif /* ipc_testshell_TestShellChild_h */