Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/base/nsIObjectLoadingContent.idl
*/
#ifndef __gen_nsIObjectLoadingContent_h__
#define __gen_nsIObjectLoadingContent_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIChannel; /* forward declaration */
class nsIRequest; /* forward declaration */
class nsIFrame; /* forward declaration */
class nsIURI; /* forward declaration */
namespace mozilla {
namespace dom {
class BrowsingContext; /* webidl BrowsingContext */
} // namespace dom
} // namespace mozilla
/* starting interface: nsIObjectLoadingContent */
#define NS_IOBJECTLOADINGCONTENT_IID_STR "2eb3195e-3eea-4083-bb1d-d2d70fa35ccb"
#define NS_IOBJECTLOADINGCONTENT_IID \
{0x2eb3195e, 0x3eea, 0x4083, \
{ 0xbb, 0x1d, 0xd2, 0xd7, 0x0f, 0xa3, 0x5c, 0xcb }}
class NS_NO_VTABLE nsIObjectLoadingContent : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IOBJECTLOADINGCONTENT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIObjectLoadingContent;
enum {
TYPE_LOADING = 0U,
TYPE_DOCUMENT = 1U,
TYPE_FALLBACK = 2U
};
/* readonly attribute ACString actualType; */
NS_IMETHOD GetActualType(nsACString& aActualType) = 0;
/* readonly attribute unsigned long displayedType; */
NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) = 0;
/* readonly attribute nsIURI srcURI; */
NS_IMETHOD GetSrcURI(nsIURI **aSrcURI) = 0;
/* [noscript] BrowsingContext upgradeLoadToDocument (in nsIChannel channel); */
NS_IMETHOD UpgradeLoadToDocument(nsIChannel *channel, mozilla::dom::BrowsingContext **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIObjectLoadingContent, NS_IOBJECTLOADINGCONTENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIOBJECTLOADINGCONTENT \
NS_IMETHOD GetActualType(nsACString& aActualType) override; \
NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) override; \
NS_IMETHOD GetSrcURI(nsIURI **aSrcURI) override; \
NS_IMETHOD UpgradeLoadToDocument(nsIChannel *channel, mozilla::dom::BrowsingContext **_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_NSIOBJECTLOADINGCONTENT \
nsresult GetActualType(nsACString& aActualType); \
nsresult GetDisplayedType(uint32_t *aDisplayedType); \
nsresult GetSrcURI(nsIURI **aSrcURI); \
nsresult UpgradeLoadToDocument(nsIChannel *channel, mozilla::dom::BrowsingContext **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIOBJECTLOADINGCONTENT(_to) \
NS_IMETHOD GetActualType(nsACString& aActualType) override { return _to GetActualType(aActualType); } \
NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) override { return _to GetDisplayedType(aDisplayedType); } \
NS_IMETHOD GetSrcURI(nsIURI **aSrcURI) override { return _to GetSrcURI(aSrcURI); } \
NS_IMETHOD UpgradeLoadToDocument(nsIChannel *channel, mozilla::dom::BrowsingContext **_retval) override { return _to UpgradeLoadToDocument(channel, _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_NSIOBJECTLOADINGCONTENT(_to) \
NS_IMETHOD GetActualType(nsACString& aActualType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActualType(aActualType); } \
NS_IMETHOD GetDisplayedType(uint32_t *aDisplayedType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayedType(aDisplayedType); } \
NS_IMETHOD GetSrcURI(nsIURI **aSrcURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrcURI(aSrcURI); } \
NS_IMETHOD UpgradeLoadToDocument(nsIChannel *channel, mozilla::dom::BrowsingContext **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpgradeLoadToDocument(channel, _retval); }
#endif /* __gen_nsIObjectLoadingContent_h__ */