Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/media/eme/mediadrm/nsIMediaDrmProvisioning.idl
*/
#ifndef __gen_nsIMediaDrmProvisioning_h__
#define __gen_nsIMediaDrmProvisioning_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIMediaDrmProvisioning */
#define NS_IMEDIADRMPROVISIONING_IID_STR "f905d1cc-9d34-423c-9e88-32247766e527"
#define NS_IMEDIADRMPROVISIONING_IID \
{0xf905d1cc, 0x9d34, 0x423c, \
{ 0x9e, 0x88, 0x32, 0x24, 0x77, 0x66, 0xe5, 0x27 }}
class NS_NO_VTABLE nsIMediaDrmProvisioning : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IMEDIADRMPROVISIONING_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMediaDrmProvisioning;
/* Promise provision (in AString aServerUrl, in AString aRequest); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Provision(const nsAString& aServerUrl, const nsAString& aRequest, ::mozilla::dom::Promise * * _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMEDIADRMPROVISIONING \
NS_IMETHOD Provision(const nsAString& aServerUrl, const nsAString& aRequest, ::mozilla::dom::Promise * * _retval) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIMEDIADRMPROVISIONING \
nsresult Provision(const nsAString& aServerUrl, const nsAString& aRequest, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMEDIADRMPROVISIONING(_to) \
NS_IMETHOD Provision(const nsAString& aServerUrl, const nsAString& aRequest, ::mozilla::dom::Promise * * _retval) override { return _to Provision(aServerUrl, aRequest, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMEDIADRMPROVISIONING(_to) \
NS_IMETHOD Provision(const nsAString& aServerUrl, const nsAString& aRequest, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Provision(aServerUrl, aRequest, _retval); }
#endif /* __gen_nsIMediaDrmProvisioning_h__ */