Merge remote-tracking branch 'origin/tracking' into custom

This commit is contained in:
roytam1 2023-09-14 10:49:05 +08:00
commit 0c6e087291
55 changed files with 320 additions and 34 deletions

View file

@ -9,10 +9,12 @@ EXPORTS += [
'nsXPCOMCIDInternal.h',
'nsXREAppData.h',
'nsXULAppAPI.h',
'XREChildData.h',
'xrecore.h',
]
if CONFIG['MOZ_GMP']:
EXPORTS += ['XREChildData.h',]
EXPORTS.mozilla += [
'FileLocation.h',
'IOInterposer.h',

View file

@ -18,7 +18,10 @@
#include "mozilla/Assertions.h"
#include "mozilla/Vector.h"
#include "mozilla/TimeStamp.h"
#ifdef MOZ_GMP
#include "XREChildData.h"
#endif
/**
* A directory service key which provides the platform-correct "application
@ -424,16 +427,24 @@ XRE_API(const char*,
XRE_API(void,
XRE_SetProcessType, (const char* aProcessTypeString))
#ifdef MOZ_GMP
namespace mozilla {
namespace gmp {
class GMPLoader;
} // namespace gmp
} // namespace mozilla
#endif
#ifdef MOZ_GMP
XRE_API(nsresult,
XRE_InitChildProcess, (int aArgc,
char* aArgv[],
const XREChildData* aChildData))
#else
XRE_API(nsresult,
XRE_InitChildProcess, (int aArgc,
char* aArgv[]))
#endif
XRE_API(GeckoProcessType,
XRE_GetProcessType, ())