2014-05-18 07:05:46 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef GMPProcessChild_h_
|
|
|
|
#define GMPProcessChild_h_
|
|
|
|
|
|
|
|
#include "mozilla/ipc/ProcessChild.h"
|
|
|
|
#include "GMPChild.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace gmp {
|
|
|
|
|
2014-11-14 11:26:24 +03:00
|
|
|
class GMPLoader;
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class GMPProcessChild final : public mozilla::ipc::ProcessChild {
|
2014-05-18 07:05:46 +04:00
|
|
|
protected:
|
|
|
|
typedef mozilla::ipc::ProcessChild ProcessChild;
|
|
|
|
|
|
|
|
public:
|
2015-04-01 11:40:35 +03:00
|
|
|
explicit GMPProcessChild(ProcessId aParentPid);
|
2014-05-18 07:05:46 +04:00
|
|
|
~GMPProcessChild();
|
|
|
|
|
2017-02-05 08:52:38 +03:00
|
|
|
bool Init(int aArgc, char* aArgv[]) override;
|
2016-01-18 06:40:49 +03:00
|
|
|
void CleanUp() override;
|
2014-05-18 07:05:46 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
GMPChild mPlugin;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(GMPProcessChild);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace gmp
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // GMPProcessChild_h_
|