Bug 1841281 - Disable test_basics.html on mac debug and windows for frequent failures...
[gecko.git] / dom / webidl / WebrtcGlobalInformation.webidl
blobc08a2cffc309e70c0dad387ab758036da6d9ca42
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   // NSPR WebRTC Trace debug level (0 - 65535)
47   //
48   // Notes:
49   // - Setting a non-zero debug level turns on gathering of log for file output.
50   // - Subsequently setting a zero debug level writes that log to disk.
52   attribute long debugLevel;
54   // WebRTC AEC debugging enable
55   attribute boolean aecDebug;
57   readonly attribute DOMString aecDebugLogDir;