2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-07-11 10:33:10 +04:00
|
|
|
|
2009-09-10 02:00:14 +04:00
|
|
|
#ifndef ipc_testshell_TestShellChild_h
|
|
|
|
#define ipc_testshell_TestShellChild_h 1
|
2009-07-11 10:33:10 +04:00
|
|
|
|
2009-09-10 02:59:06 +04:00
|
|
|
#include "mozilla/ipc/PTestShellChild.h"
|
|
|
|
#include "mozilla/ipc/PTestShellCommandChild.h"
|
2009-08-29 03:16:19 +04:00
|
|
|
#include "mozilla/ipc/XPCShellEnvironment.h"
|
|
|
|
|
|
|
|
#include "nsAutoPtr.h"
|
2009-07-11 10:33:10 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
2009-11-06 23:43:39 +03:00
|
|
|
|
2009-07-11 10:33:10 +04:00
|
|
|
namespace ipc {
|
|
|
|
|
|
|
|
class XPCShellEnvironment;
|
|
|
|
|
2009-09-10 02:59:06 +04:00
|
|
|
class TestShellChild : public PTestShellChild
|
2009-07-11 10:33:10 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestShellChild();
|
|
|
|
|
2016-11-15 06:26:00 +03:00
|
|
|
mozilla::ipc::IPCResult
|
2017-11-06 06:37:28 +03:00
|
|
|
RecvExecuteCommand(const nsString& aCommand) override;
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2009-09-10 02:59:06 +04:00
|
|
|
PTestShellCommandChild*
|
2017-11-06 06:37:28 +03:00
|
|
|
AllocPTestShellCommandChild(const nsString& aCommand) override;
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2016-11-15 06:26:00 +03:00
|
|
|
mozilla::ipc::IPCResult
|
2009-09-10 02:59:06 +04:00
|
|
|
RecvPTestShellCommandConstructor(PTestShellCommandChild* aActor,
|
2017-11-06 06:37:28 +03:00
|
|
|
const nsString& aCommand) override;
|
2009-08-26 03:07:22 +04:00
|
|
|
|
2009-09-18 03:09:20 +04:00
|
|
|
bool
|
2017-11-06 06:37:28 +03:00
|
|
|
DeallocPTestShellCommandChild(PTestShellCommandChild* aCommand) override;
|
2009-07-11 10:33:10 +04:00
|
|
|
|
|
|
|
private:
|
2009-08-29 03:16:19 +04:00
|
|
|
nsAutoPtr<XPCShellEnvironment> mXPCShell;
|
2009-07-11 10:33:10 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace ipc */
|
|
|
|
} /* namespace mozilla */
|
|
|
|
|
2009-09-10 02:00:14 +04:00
|
|
|
#endif /* ipc_testshell_TestShellChild_h */
|