Bug 1605894 reduce the proliferation of DefaultLoopbackTone to only AudioStreamFlowin...
[gecko.git] / ipc / testshell / TestShellChild.h
blob12f54549d6f93a6da71dfe6e2daf982c7564e42c
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/ProtocolUtils.h"
9 #include "mozilla/ipc/PTestShellChild.h"
10 #include "mozilla/ipc/PTestShellCommandChild.h"
11 #include "mozilla/ipc/XPCShellEnvironment.h"
13 namespace mozilla {
15 namespace ipc {
17 class XPCShellEnvironment;
19 class TestShellChild : public PTestShellChild {
20 public:
21 TestShellChild();
23 mozilla::ipc::IPCResult RecvExecuteCommand(const nsAString& aCommand);
25 PTestShellCommandChild* AllocPTestShellCommandChild(
26 const nsAString& aCommand);
28 mozilla::ipc::IPCResult RecvPTestShellCommandConstructor(
29 PTestShellCommandChild* aActor, const nsAString& aCommand) override;
31 bool DeallocPTestShellCommandChild(PTestShellCommandChild* aCommand);
33 private:
34 UniquePtr<XPCShellEnvironment> mXPCShell;
37 } /* namespace ipc */
38 } /* namespace mozilla */
40 #endif /* ipc_testshell_TestShellChild_h */