зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1588588: Make this compile when webrtc is disabled. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D50245 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dfcceee2ab
Коммит
9ca86a07ce
|
@ -199,10 +199,6 @@ if not CONFIG['MOZ_WEBRTC']:
|
|||
'../../media/mtransport/runnable_utils.h',
|
||||
]
|
||||
|
||||
IPDL_SOURCES += [
|
||||
'webrtc/PWebrtcGlobal.ipdl',
|
||||
]
|
||||
|
||||
EXPORTS.mozilla.dom += [
|
||||
'AudioDeviceInfo.h',
|
||||
'AudioStreamTrack.h',
|
||||
|
|
|
@ -4,10 +4,12 @@
|
|||
|
||||
include protocol PContent;
|
||||
|
||||
#ifdef MOZ_WEBRTC
|
||||
include "mozilla/media/webrtc/WebrtcGlobal.h";
|
||||
|
||||
using struct mozilla::dom::RTCStatsReportInternal from "mozilla/dom/RTCStatsReportBinding.h";
|
||||
using WebrtcGlobalLog from "mozilla/media/webrtc/WebrtcGlobal.h";
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
@ -15,6 +17,12 @@ namespace dom {
|
|||
async protocol PWebrtcGlobal {
|
||||
manager PContent;
|
||||
|
||||
parent: // child -> parent messages
|
||||
async __delete__();
|
||||
#ifdef MOZ_WEBRTC
|
||||
async GetStatsResult(int aRequestId, RTCStatsReportInternal[] aStats);
|
||||
async GetLogResult(int aRequestId, WebrtcGlobalLog aLog);
|
||||
|
||||
child: // parent -> child messages
|
||||
async GetStatsRequest(int aRequestId, nsString aPcIdFilter);
|
||||
async ClearStatsRequest();
|
||||
|
@ -22,12 +30,10 @@ child: // parent -> child messages
|
|||
async ClearLogRequest();
|
||||
async SetAecLogging(bool aEnable);
|
||||
async SetDebugMode(int aLevel);
|
||||
|
||||
parent: // child -> parent messages
|
||||
async GetStatsResult(int aRequestId, RTCStatsReportInternal[] aStats);
|
||||
async GetLogResult(int aRequestId, WebrtcGlobalLog aLog);
|
||||
async __delete__();
|
||||
#endif
|
||||
};
|
||||
|
||||
} // end namespace net
|
||||
} // end namespace mozilla
|
||||
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ if CONFIG['MOZ_WEBRTC']:
|
|||
|
||||
PREPROCESSED_IPDL_SOURCES += [
|
||||
'PMediaTransport.ipdl',
|
||||
'PWebrtcGlobal.ipdl',
|
||||
]
|
||||
|
||||
XPIDL_SOURCES += [
|
||||
|
|
Загрузка…
Ссылка в новой задаче