michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef ipc_testshell_TestShellChild_h michael@0: #define ipc_testshell_TestShellChild_h 1 michael@0: michael@0: #include "mozilla/ipc/PTestShellChild.h" michael@0: #include "mozilla/ipc/PTestShellCommandChild.h" michael@0: #include "mozilla/ipc/XPCShellEnvironment.h" michael@0: michael@0: #include "nsAutoPtr.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: namespace ipc { michael@0: michael@0: class XPCShellEnvironment; michael@0: michael@0: class TestShellChild : public PTestShellChild michael@0: { michael@0: public: michael@0: TestShellChild(); michael@0: michael@0: bool michael@0: RecvExecuteCommand(const nsString& aCommand); michael@0: michael@0: PTestShellCommandChild* michael@0: AllocPTestShellCommandChild(const nsString& aCommand); michael@0: michael@0: bool michael@0: RecvPTestShellCommandConstructor(PTestShellCommandChild* aActor, michael@0: const nsString& aCommand); michael@0: michael@0: bool michael@0: DeallocPTestShellCommandChild(PTestShellCommandChild* aCommand); michael@0: michael@0: private: michael@0: nsAutoPtr mXPCShell; michael@0: }; michael@0: michael@0: } /* namespace ipc */ michael@0: } /* namespace mozilla */ michael@0: michael@0: #endif /* ipc_testshell_TestShellChild_h */