1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/testshell/TestShellChild.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef ipc_testshell_TestShellChild_h 1.9 +#define ipc_testshell_TestShellChild_h 1 1.10 + 1.11 +#include "mozilla/ipc/PTestShellChild.h" 1.12 +#include "mozilla/ipc/PTestShellCommandChild.h" 1.13 +#include "mozilla/ipc/XPCShellEnvironment.h" 1.14 + 1.15 +#include "nsAutoPtr.h" 1.16 + 1.17 +namespace mozilla { 1.18 + 1.19 +namespace ipc { 1.20 + 1.21 +class XPCShellEnvironment; 1.22 + 1.23 +class TestShellChild : public PTestShellChild 1.24 +{ 1.25 +public: 1.26 + TestShellChild(); 1.27 + 1.28 + bool 1.29 + RecvExecuteCommand(const nsString& aCommand); 1.30 + 1.31 + PTestShellCommandChild* 1.32 + AllocPTestShellCommandChild(const nsString& aCommand); 1.33 + 1.34 + bool 1.35 + RecvPTestShellCommandConstructor(PTestShellCommandChild* aActor, 1.36 + const nsString& aCommand); 1.37 + 1.38 + bool 1.39 + DeallocPTestShellCommandChild(PTestShellCommandChild* aCommand); 1.40 + 1.41 +private: 1.42 + nsAutoPtr<XPCShellEnvironment> mXPCShell; 1.43 +}; 1.44 + 1.45 +} /* namespace ipc */ 1.46 +} /* namespace mozilla */ 1.47 + 1.48 +#endif /* ipc_testshell_TestShellChild_h */