Bug 1746711 Part 2: Ensure the enqueued surface has a color space. r=gfx-reviewers...
[gecko.git] / ipc / testshell / TestShellChild.h
blobcb101861577240b07a13aefd32dd6d4a99c69810
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"
13 namespace mozilla {
15 namespace ipc {
17 class XPCShellEnvironment;
19 class TestShellChild : public PTestShellChild {
20 public:
21 TestShellChild();
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);
32 private:
33 UniquePtr<XPCShellEnvironment> mXPCShell;
36 } /* namespace ipc */
37 } /* namespace mozilla */
39 #endif /* ipc_testshell_TestShellChild_h */