tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PWebrtcGlobal.ipdl (1193B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 include protocol PContent;
      6 
      7 #ifdef MOZ_WEBRTC
      8 include "mozilla/media/webrtc/WebrtcGlobal.h";
      9 
     10 using struct mozilla::dom::RTCStatsReportInternal from "mozilla/dom/RTCStatsReportBinding.h";
     11 using WebrtcGlobalLog from "mozilla/media/webrtc/WebrtcGlobal.h";
     12 #endif
     13 
     14 namespace mozilla {
     15 namespace dom {
     16 
     17 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
     18 async protocol PWebrtcGlobal {
     19   manager PContent;
     20 
     21 parent: // child -> parent messages
     22   async __delete__();
     23 #ifdef MOZ_WEBRTC
     24   async PeerConnectionCreated(nsString aPcId, bool aIsLongTermStatsDisabled);
     25   async PeerConnectionDestroyed(nsString aPcId);
     26   async PeerConnectionFinalStats(RTCStatsReportInternal aFinalStats);
     27 
     28 child: // parent -> child messages
     29   async GetStats(nsString aPcIdFilter) returns (RTCStatsReportInternal[] stats);
     30   async ClearStats();
     31   async GetLog() returns (WebrtcGlobalLog logs);
     32   async ClearLog();
     33   async SetAecLogging(bool aEnable);
     34 #endif
     35 };
     36 
     37 } // end namespace net
     38 } // end namespace mozilla
     39 
     40