Backed out changeset 06f41c22f3a6 (bug 1888460) for causing linux xpcshell failures...
[gecko.git] / dom / webidl / WebrtcGlobalInformation.webidl
blob053a43d07a51a6fd0721b5e1d541582d1aaca1fb
1 /* -*- Mode: IDL; 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 file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 dictionary WebrtcGlobalStatisticsReport {
8   sequence<RTCStatsReportInternal> reports = [];
9   sequence<RTCSdpHistoryInternal> sdpHistories = [];
12 dictionary WebrtcGlobalMediaContext {
13   required boolean hasH264Hardware;
16 callback WebrtcGlobalStatisticsCallback = undefined (WebrtcGlobalStatisticsReport reports);
17 callback WebrtcGlobalStatisticsHistoryPcIdsCallback = undefined (sequence<DOMString> pcIds);
18 callback WebrtcGlobalStatisticsHistoryCallback = undefined (WebrtcGlobalStatisticsReport reports);
19 callback WebrtcGlobalLoggingCallback = undefined (sequence<DOMString> logMessages);
21 [ChromeOnly, Exposed=Window]
22 namespace WebrtcGlobalInformation {
24   [Throws]
25   undefined getAllStats(WebrtcGlobalStatisticsCallback callback,
26                         optional DOMString pcIdFilter);
28   [Throws]
29   undefined getStatsHistoryPcIds(WebrtcGlobalStatisticsHistoryPcIdsCallback callback);
31   [Throws]
32   undefined getStatsHistorySince(WebrtcGlobalStatisticsHistoryCallback callback,
33                                  DOMString pcIdFilter,
34                                  optional DOMHighResTimeStamp after,
35                                  optional DOMHighResTimeStamp sdpAfter);
37   WebrtcGlobalMediaContext getMediaContext();
39   undefined clearAllStats();
41   [Throws]
42   undefined getLogging(DOMString pattern, WebrtcGlobalLoggingCallback callback);
44   undefined clearLogging();
46   // WebRTC AEC debugging enable
47   attribute boolean aecDebug;
49   readonly attribute DOMString aecDebugLogDir;