Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsILoadGroup.idl
*/
#ifndef __gen_nsILoadGroup_h__
#define __gen_nsILoadGroup_h__
#include "nsIRequest.h"
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISimpleEnumerator; /* forward declaration */
class nsIRequestObserver; /* forward declaration */
class nsIInterfaceRequestor; /* forward declaration */
class nsIRequestContext; /* forward declaration */
/* starting interface: nsILoadGroup */
#define NS_ILOADGROUP_IID_STR "f0c87725-7a35-463c-9ceb-2c07f23406cc"
#define NS_ILOADGROUP_IID \
{0xf0c87725, 0x7a35, 0x463c, \
{ 0x9c, 0xeb, 0x2c, 0x07, 0xf2, 0x34, 0x06, 0xcc }}
class NS_NO_VTABLE nsILoadGroup : public nsIRequest {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOADGROUP_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILoadGroup;
/* attribute nsIRequestObserver groupObserver; */
NS_IMETHOD GetGroupObserver(nsIRequestObserver **aGroupObserver) = 0;
NS_IMETHOD SetGroupObserver(nsIRequestObserver *aGroupObserver) = 0;
/* attribute nsIRequest defaultLoadRequest; */
NS_IMETHOD GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest) = 0;
NS_IMETHOD SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest) = 0;
/* void addRequest (in nsIRequest aRequest, in nsISupports aContext); */
NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) = 0;
/* void removeRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatus); */
NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) = 0;
/* readonly attribute nsISimpleEnumerator requests; */
NS_IMETHOD GetRequests(nsISimpleEnumerator **aRequests) = 0;
/* attribute unsigned long long totalKeepAliveBytes; */
NS_IMETHOD GetTotalKeepAliveBytes(uint64_t *aTotalKeepAliveBytes) = 0;
NS_IMETHOD SetTotalKeepAliveBytes(uint64_t aTotalKeepAliveBytes) = 0;
/* readonly attribute unsigned long activeCount; */
NS_IMETHOD GetActiveCount(uint32_t *aActiveCount) = 0;
/* attribute nsIInterfaceRequestor notificationCallbacks; */
NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) = 0;
NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) = 0;
/* readonly attribute unsigned long long requestContextID; */
NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) = 0;
/* attribute nsLoadFlags defaultLoadFlags; */
NS_IMETHOD GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags) = 0;
NS_IMETHOD SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags) = 0;
/* [infallible] readonly attribute boolean isBrowsingContextDiscarded; */
NS_IMETHOD GetIsBrowsingContextDiscarded(bool *aIsBrowsingContextDiscarded) = 0;
inline bool GetIsBrowsingContextDiscarded()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsBrowsingContextDiscarded(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILoadGroup, NS_ILOADGROUP_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOADGROUP \
NS_IMETHOD GetGroupObserver(nsIRequestObserver **aGroupObserver) override; \
NS_IMETHOD SetGroupObserver(nsIRequestObserver *aGroupObserver) override; \
NS_IMETHOD GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest) override; \
NS_IMETHOD SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest) override; \
NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) override; \
NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) override; \
NS_IMETHOD GetRequests(nsISimpleEnumerator **aRequests) override; \
NS_IMETHOD GetTotalKeepAliveBytes(uint64_t *aTotalKeepAliveBytes) override; \
NS_IMETHOD SetTotalKeepAliveBytes(uint64_t aTotalKeepAliveBytes) override; \
NS_IMETHOD GetActiveCount(uint32_t *aActiveCount) override; \
NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override; \
NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override; \
NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) override; \
NS_IMETHOD GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags) override; \
NS_IMETHOD SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags) override; \
using nsILoadGroup::GetIsBrowsingContextDiscarded; \
NS_IMETHOD GetIsBrowsingContextDiscarded(bool *aIsBrowsingContextDiscarded) 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_NSILOADGROUP \
nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver); \
nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver); \
nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest); \
nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest); \
nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext); \
nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus); \
nsresult GetRequests(nsISimpleEnumerator **aRequests); \
nsresult GetTotalKeepAliveBytes(uint64_t *aTotalKeepAliveBytes); \
nsresult SetTotalKeepAliveBytes(uint64_t aTotalKeepAliveBytes); \
nsresult GetActiveCount(uint32_t *aActiveCount); \
nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks); \
nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks); \
nsresult GetRequestContextID(uint64_t *aRequestContextID); \
nsresult GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags); \
nsresult SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags); \
using nsILoadGroup::GetIsBrowsingContextDiscarded; \
nsresult GetIsBrowsingContextDiscarded(bool *aIsBrowsingContextDiscarded);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOADGROUP(_to) \
NS_IMETHOD GetGroupObserver(nsIRequestObserver **aGroupObserver) override { return _to GetGroupObserver(aGroupObserver); } \
NS_IMETHOD SetGroupObserver(nsIRequestObserver *aGroupObserver) override { return _to SetGroupObserver(aGroupObserver); } \
NS_IMETHOD GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest) override { return _to GetDefaultLoadRequest(aDefaultLoadRequest); } \
NS_IMETHOD SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest) override { return _to SetDefaultLoadRequest(aDefaultLoadRequest); } \
NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) override { return _to AddRequest(aRequest, aContext); } \
NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) override { return _to RemoveRequest(aRequest, aContext, aStatus); } \
NS_IMETHOD GetRequests(nsISimpleEnumerator **aRequests) override { return _to GetRequests(aRequests); } \
NS_IMETHOD GetTotalKeepAliveBytes(uint64_t *aTotalKeepAliveBytes) override { return _to GetTotalKeepAliveBytes(aTotalKeepAliveBytes); } \
NS_IMETHOD SetTotalKeepAliveBytes(uint64_t aTotalKeepAliveBytes) override { return _to SetTotalKeepAliveBytes(aTotalKeepAliveBytes); } \
NS_IMETHOD GetActiveCount(uint32_t *aActiveCount) override { return _to GetActiveCount(aActiveCount); } \
NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) override { return _to GetRequestContextID(aRequestContextID); } \
NS_IMETHOD GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags) override { return _to GetDefaultLoadFlags(aDefaultLoadFlags); } \
NS_IMETHOD SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags) override { return _to SetDefaultLoadFlags(aDefaultLoadFlags); } \
using nsILoadGroup::GetIsBrowsingContextDiscarded; \
NS_IMETHOD GetIsBrowsingContextDiscarded(bool *aIsBrowsingContextDiscarded) override { return _to GetIsBrowsingContextDiscarded(aIsBrowsingContextDiscarded); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOADGROUP(_to) \
NS_IMETHOD GetGroupObserver(nsIRequestObserver **aGroupObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupObserver(aGroupObserver); } \
NS_IMETHOD SetGroupObserver(nsIRequestObserver *aGroupObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGroupObserver(aGroupObserver); } \
NS_IMETHOD GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultLoadRequest(aDefaultLoadRequest); } \
NS_IMETHOD SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultLoadRequest(aDefaultLoadRequest); } \
NS_IMETHOD AddRequest(nsIRequest *aRequest, nsISupports *aContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddRequest(aRequest, aContext); } \
NS_IMETHOD RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveRequest(aRequest, aContext, aStatus); } \
NS_IMETHOD GetRequests(nsISimpleEnumerator **aRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequests(aRequests); } \
NS_IMETHOD GetTotalKeepAliveBytes(uint64_t *aTotalKeepAliveBytes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalKeepAliveBytes(aTotalKeepAliveBytes); } \
NS_IMETHOD SetTotalKeepAliveBytes(uint64_t aTotalKeepAliveBytes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTotalKeepAliveBytes(aTotalKeepAliveBytes); } \
NS_IMETHOD GetActiveCount(uint32_t *aActiveCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveCount(aActiveCount); } \
NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
NS_IMETHOD GetRequestContextID(uint64_t *aRequestContextID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestContextID(aRequestContextID); } \
NS_IMETHOD GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultLoadFlags(aDefaultLoadFlags); } \
NS_IMETHOD SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultLoadFlags(aDefaultLoadFlags); } \
NS_IMETHOD GetIsBrowsingContextDiscarded(bool *aIsBrowsingContextDiscarded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsBrowsingContextDiscarded(aIsBrowsingContextDiscarded); }
#endif /* __gen_nsILoadGroup_h__ */