content/media/gmp/mozIGeckoMediaPluginService.idl
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 26 Jun 2014 15:26:16 +0900
changeset 211787 29bbf1aba13a4ebf800dd26810697cf4d25abc4b
parent 211686 fbc7a025b5c0372b5be926a4a4b9285ddc9bd587
child 212218 e453f32c9c75876bfbd5dd9ee1aa664777c1fc37
permissions -rw-r--r--
Bug 1030598 - Fix make export race condition after bug 1028563. r=gps

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"
#include "nsIThread.idl"

%{C++
class GMPVideoDecoder;
class GMPVideoEncoder;
class GMPVideoHost;
%}

[ptr] native GMPVideoDecoder(GMPVideoDecoder);
[ptr] native GMPVideoEncoder(GMPVideoEncoder);
[ptr] native GMPVideoHost(GMPVideoHost);
[ptr] native MessageLoop(MessageLoop);

[uuid(BF5A9086-70F5-4D38-832D-1609BBF963CD)]
interface mozIGeckoMediaPluginService : nsISupports
{
  // Returns the GMP thread.
  // Callable from any thread.
  readonly attribute nsIThread thread;

  // Returns a video decoder API object that should support VP8.
  // Callable only on GMP thread.
  GMPVideoDecoder getGMPVideoDecoderVP8(out GMPVideoHost outVideoHost);

  // Returns a video encoder API object that should support VP8.
  // Callable only on GMP thread.
  GMPVideoEncoder getGMPVideoEncoderVP8(out GMPVideoHost outVideoHost);
};