Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/media/nsIWindowsMediaFoundationCDMOriginsListService.idl
*/
#ifndef __gen_nsIWindowsMediaFoundationCDMOriginsListService_h__
#define __gen_nsIWindowsMediaFoundationCDMOriginsListService_h__
#include "nsIArray.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: nsIOriginStatusEntry */
#define NS_IORIGINSTATUSENTRY_IID_STR "1f2d7c8e-5b94-48cf-a5f1-709b6f6d3c4a"
#define NS_IORIGINSTATUSENTRY_IID \
{0x1f2d7c8e, 0x5b94, 0x48cf, \
{ 0xa5, 0xf1, 0x70, 0x9b, 0x6f, 0x6d, 0x3c, 0x4a }}
class NS_NO_VTABLE nsIOriginStatusEntry : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IORIGINSTATUSENTRY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIOriginStatusEntry;
/* readonly attribute ACString origin; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOrigin(nsACString& aOrigin) = 0;
/* readonly attribute long status; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStatus(int32_t *aStatus) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIORIGINSTATUSENTRY \
NS_IMETHOD GetOrigin(nsACString& aOrigin) override; \
NS_IMETHOD GetStatus(int32_t *aStatus) 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_NSIORIGINSTATUSENTRY \
nsresult GetOrigin(nsACString& aOrigin); \
nsresult GetStatus(int32_t *aStatus);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIORIGINSTATUSENTRY(_to) \
NS_IMETHOD GetOrigin(nsACString& aOrigin) override { return _to GetOrigin(aOrigin); } \
NS_IMETHOD GetStatus(int32_t *aStatus) override { return _to GetStatus(aStatus); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIORIGINSTATUSENTRY(_to) \
NS_IMETHOD GetOrigin(nsACString& aOrigin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
NS_IMETHOD GetStatus(int32_t *aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); }
/* starting interface: nsIOriginsListLoadCallback */
#define NS_IORIGINSLISTLOADCALLBACK_IID_STR "9b7f6a4a-8a72-4de4-9157-d45e6e4f9f18"
#define NS_IORIGINSLISTLOADCALLBACK_IID \
{0x9b7f6a4a, 0x8a72, 0x4de4, \
{ 0x91, 0x57, 0xd4, 0x5e, 0x6e, 0x4f, 0x9f, 0x18 }}
class NS_NO_VTABLE nsIOriginsListLoadCallback : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IORIGINSLISTLOADCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIOriginsListLoadCallback;
/* void onOriginsListLoaded (in nsIArray aEntries); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnOriginsListLoaded(nsIArray *aEntries) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIORIGINSLISTLOADCALLBACK \
NS_IMETHOD OnOriginsListLoaded(nsIArray *aEntries) 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_NSIORIGINSLISTLOADCALLBACK \
nsresult OnOriginsListLoaded(nsIArray *aEntries);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIORIGINSLISTLOADCALLBACK(_to) \
NS_IMETHOD OnOriginsListLoaded(nsIArray *aEntries) override { return _to OnOriginsListLoaded(aEntries); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIORIGINSLISTLOADCALLBACK(_to) \
NS_IMETHOD OnOriginsListLoaded(nsIArray *aEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnOriginsListLoaded(aEntries); }
/* starting interface: nsIWindowsMediaFoundationCDMOriginsListService */
#define NS_IWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE_IID_STR "d8a0a9c3-3d0b-4e1a-9a8c-bf542fa318f7"
#define NS_IWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE_IID \
{0xd8a0a9c3, 0x3d0b, 0x4e1a, \
{ 0x9a, 0x8c, 0xbf, 0x54, 0x2f, 0xa3, 0x18, 0xf7 }}
class NS_NO_VTABLE nsIWindowsMediaFoundationCDMOriginsListService : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWindowsMediaFoundationCDMOriginsListService;
enum {
ORIGIN_BLOCKED = 0,
ORIGIN_ALLOWED = 1
};
/* void setCallback (in nsIOriginsListLoadCallback aCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCallback(nsIOriginsListLoadCallback *aCallback) = 0;
/* void removeCallback (in nsIOriginsListLoadCallback aCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveCallback(nsIOriginsListLoadCallback *aCallback) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE \
NS_IMETHOD SetCallback(nsIOriginsListLoadCallback *aCallback) override; \
NS_IMETHOD RemoveCallback(nsIOriginsListLoadCallback *aCallback) 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_NSIWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE \
nsresult SetCallback(nsIOriginsListLoadCallback *aCallback); \
nsresult RemoveCallback(nsIOriginsListLoadCallback *aCallback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE(_to) \
NS_IMETHOD SetCallback(nsIOriginsListLoadCallback *aCallback) override { return _to SetCallback(aCallback); } \
NS_IMETHOD RemoveCallback(nsIOriginsListLoadCallback *aCallback) override { return _to RemoveCallback(aCallback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINDOWSMEDIAFOUNDATIONCDMORIGINSLISTSERVICE(_to) \
NS_IMETHOD SetCallback(nsIOriginsListLoadCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } \
NS_IMETHOD RemoveCallback(nsIOriginsListLoadCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCallback(aCallback); }
#endif /* __gen_nsIWindowsMediaFoundationCDMOriginsListService_h__ */