ipc/testshell/TestShellChild.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:562117261281
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/. */
4
5 #ifndef ipc_testshell_TestShellChild_h
6 #define ipc_testshell_TestShellChild_h 1
7
8 #include "mozilla/ipc/PTestShellChild.h"
9 #include "mozilla/ipc/PTestShellCommandChild.h"
10 #include "mozilla/ipc/XPCShellEnvironment.h"
11
12 #include "nsAutoPtr.h"
13
14 namespace mozilla {
15
16 namespace ipc {
17
18 class XPCShellEnvironment;
19
20 class TestShellChild : public PTestShellChild
21 {
22 public:
23 TestShellChild();
24
25 bool
26 RecvExecuteCommand(const nsString& aCommand);
27
28 PTestShellCommandChild*
29 AllocPTestShellCommandChild(const nsString& aCommand);
30
31 bool
32 RecvPTestShellCommandConstructor(PTestShellCommandChild* aActor,
33 const nsString& aCommand);
34
35 bool
36 DeallocPTestShellCommandChild(PTestShellCommandChild* aCommand);
37
38 private:
39 nsAutoPtr<XPCShellEnvironment> mXPCShell;
40 };
41
42 } /* namespace ipc */
43 } /* namespace mozilla */
44
45 #endif /* ipc_testshell_TestShellChild_h */

mercurial