PMediaSystemResourceManager.ipdl 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. include protocol PImageBridge;
  6. include "mozilla/media/MediaSystemResourceMessageUtils.h";
  7. using mozilla::MediaSystemResourceType from "mozilla/media/MediaSystemResourceTypes.h";
  8. namespace mozilla {
  9. namespace media {
  10. /*
  11. * The PMediaSystemResourceManager is a sub-protocol in PImageBridge
  12. */
  13. sync protocol PMediaSystemResourceManager
  14. {
  15. manager PImageBridge;
  16. child:
  17. async Response(uint32_t aId, bool aSuccess);
  18. async __delete__();
  19. parent:
  20. async Acquire(uint32_t aId, MediaSystemResourceType aResourceType, bool aWillWait);
  21. async Release(uint32_t aId);
  22. /**
  23. * Asynchronously tell the parent side to remove the PMediaSystemResourceManager.
  24. */
  25. async RemoveResourceManager();
  26. };
  27. } // namespace media
  28. } // namespace mozilla