tor-browser

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

PMediaSystemResourceManager.ipdl (1047B)


      1 /* -*- Mode: C++; 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
      4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 include protocol PImageBridge;
      7 include "mozilla/media/MediaSystemResourceMessageUtils.h";
      8 
      9 using mozilla::MediaSystemResourceType from "mozilla/media/MediaSystemResourceTypes.h";
     10 
     11 namespace mozilla {
     12 namespace media {
     13 
     14 /*
     15  * The PMediaSystemResourceManager is a sub-protocol in PImageBridge
     16  */
     17 [ManualDealloc]
     18 sync protocol PMediaSystemResourceManager
     19 {
     20   manager PImageBridge;
     21 
     22 child:
     23   async Response(uint32_t aId, bool aSuccess);
     24   async __delete__();
     25 
     26 parent:
     27   async Acquire(uint32_t aId, MediaSystemResourceType aResourceType, bool aWillWait);
     28   async Release(uint32_t aId);
     29 
     30   /**
     31    * Asynchronously tell the parent side to remove the PMediaSystemResourceManager.
     32    */
     33   async RemoveResourceManager();
     34 };
     35 
     36 } // namespace media
     37 } // namespace mozilla
     38