1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef GMPProcessChild_h_
7 #define GMPProcessChild_h_
9 #include "mozilla/ipc/ProcessChild.h"
12 namespace mozilla::gmp
{
16 class GMPProcessChild final
: public mozilla::ipc::ProcessChild
{
18 typedef mozilla::ipc::ProcessChild ProcessChild
;
21 using ProcessChild::ProcessChild
;
24 static void InitStatics(int aArgc
, char* aArgv
[]);
25 static bool UseNativeEventProcessing() { return sUseNativeEventProcessing
; }
26 static bool UseXPCOM() { return sUseXpcom
; }
28 bool Init(int aArgc
, char* aArgv
[]) override
;
29 void CleanUp() override
;
32 const RefPtr
<GMPChild
> mPlugin
= new GMPChild
;
34 static bool sUseXpcom
;
35 static bool sUseNativeEventProcessing
;
38 } // namespace mozilla::gmp
40 #endif // GMPProcessChild_h_