Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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"
14 namespace mozilla {
16 namespace ipc {
18 class XPCShellEnvironment;
20 class TestShellChild : public PTestShellChild
21 {
22 public:
23 TestShellChild();
25 bool
26 RecvExecuteCommand(const nsString& aCommand);
28 PTestShellCommandChild*
29 AllocPTestShellCommandChild(const nsString& aCommand);
31 bool
32 RecvPTestShellCommandConstructor(PTestShellCommandChild* aActor,
33 const nsString& aCommand);
35 bool
36 DeallocPTestShellCommandChild(PTestShellCommandChild* aCommand);
38 private:
39 nsAutoPtr<XPCShellEnvironment> mXPCShell;
40 };
42 } /* namespace ipc */
43 } /* namespace mozilla */
45 #endif /* ipc_testshell_TestShellChild_h */