/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/contextualidentity/nsISiteContainerService.idl
*/
#ifndef __gen_nsISiteContainerService_h__
#define __gen_nsISiteContainerService_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
class nsIURI; /* forward declaration */
/* starting interface: nsISiteContainerService */
#define NS_ISITECONTAINERSERVICE_IID_STR "f13cdd21-71ab-4644-b43e-2d8a97bea774"
#define NS_ISITECONTAINERSERVICE_IID \
{0xf13cdd21, 0x71ab, 0x4644, \
{ 0xb4, 0x3e, 0x2d, 0x8a, 0x97, 0xbe, 0xa7, 0x74 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISiteContainerService) nsISiteContainerService : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ISITECONTAINERSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISiteContainerService;
/* unsigned long lookup (in AUTF8String aHost); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISiteContainerService_lookup)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Lookup(const nsACString& aHost, uint32_t *_retval) = 0;
/* unsigned long containerForNavigation (in nsIURI aURI, in unsigned long aBaselineUserContextId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISiteContainerService_containerForNavigation)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ContainerForNavigation(nsIURI *aURI, uint32_t aBaselineUserContextId, uint32_t *_retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISITECONTAINERSERVICE \
NS_IMETHOD Lookup(const nsACString& aHost, uint32_t *_retval) override; \
NS_IMETHOD ContainerForNavigation(nsIURI *aURI, uint32_t aBaselineUserContextId, uint32_t *_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_NSISITECONTAINERSERVICE \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISiteContainerService_lookup)\
nsresult Lookup(const nsACString& aHost, uint32_t *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsISiteContainerService_containerForNavigation)\
nsresult ContainerForNavigation(nsIURI *aURI, uint32_t aBaselineUserContextId, uint32_t *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISITECONTAINERSERVICE(_to) \
NS_IMETHOD Lookup(const nsACString& aHost, uint32_t *_retval) override { return _to Lookup(aHost, _retval); } \
NS_IMETHOD ContainerForNavigation(nsIURI *aURI, uint32_t aBaselineUserContextId, uint32_t *_retval) override { return _to ContainerForNavigation(aURI, aBaselineUserContextId, _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_NSISITECONTAINERSERVICE(_to) \
NS_IMETHOD Lookup(const nsACString& aHost, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Lookup(aHost, _retval); } \
NS_IMETHOD ContainerForNavigation(nsIURI *aURI, uint32_t aBaselineUserContextId, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContainerForNavigation(aURI, aBaselineUserContextId, _retval); }
#endif /* __gen_nsISiteContainerService_h__ */