blob: e274b2363644e6758e8b536c5f831b2a7f6a271a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/* 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/. */
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 {
[ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
async protocol PWebrtcGlobal {
manager PContent;
parent: // child -> parent messages
async __delete__();
#ifdef MOZ_WEBRTC
async PeerConnectionCreated(nsString aPcId, bool aIsLongTermStatsDisabled);
async PeerConnectionDestroyed(nsString aPcId);
async PeerConnectionFinalStats(RTCStatsReportInternal aFinalStats);
child: // parent -> child messages
async GetStats(nsString aPcIdFilter) returns (RTCStatsReportInternal[] stats);
async ClearStats();
async GetLog() returns (WebrtcGlobalLog logs);
async ClearLog();
async SetAecLogging(bool aEnable);
async SetDebugMode(int aLevel);
#endif
};
} // end namespace net
} // end namespace mozilla
|