Bug 1121623 part 3. Switch WebrtcGlobalInformation to being a namespace. r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D32201

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-05-24 07:22:22 +00:00
parent d51859cb38
commit 471d7a508d
2 changed files with 9 additions and 12 deletions

View File

@ -1519,8 +1519,6 @@ DOMInterfaces = {
'WebrtcGlobalInformation': {
'nativeType': 'mozilla::dom::WebrtcGlobalInformation',
'headerFile': 'WebrtcGlobalInformation.h',
'wrapperCache': False,
'concrete': False,
},
'Window': {

View File

@ -12,19 +12,18 @@ callback WebrtcGlobalStatisticsCallback = void (WebrtcGlobalStatisticsReport rep
callback WebrtcGlobalLoggingCallback = void (sequence<DOMString> logMessages);
[ChromeOnly]
interface WebrtcGlobalInformation {
namespace WebrtcGlobalInformation {
[Throws]
static void getAllStats(WebrtcGlobalStatisticsCallback callback,
optional DOMString pcIdFilter);
void getAllStats(WebrtcGlobalStatisticsCallback callback,
optional DOMString pcIdFilter);
static void clearAllStats();
void clearAllStats();
[Throws]
static void getLogging(DOMString pattern,
WebrtcGlobalLoggingCallback callback);
void getLogging(DOMString pattern, WebrtcGlobalLoggingCallback callback);
static void clearLogging();
void clearLogging();
// NSPR WebRTC Trace debug level (0 - 65535)
//
@ -32,10 +31,10 @@ interface WebrtcGlobalInformation {
// - Setting a non-zero debug level turns on gathering of log for file output.
// - Subsequently setting a zero debug level writes that log to disk.
static attribute long debugLevel;
attribute long debugLevel;
// WebRTC AEC debugging enable
static attribute boolean aecDebug;
attribute boolean aecDebug;
static readonly attribute DOMString aecDebugLogDir;
readonly attribute DOMString aecDebugLogDir;
};