Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/storage/nsISessionStorageService.idl
*/
#ifndef __gen_nsISessionStorageService_h__
#define __gen_nsISessionStorageService_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 nsIPrincipal; /* forward declaration */
/* starting interface: nsISessionStorageService */
#define NS_ISESSIONSTORAGESERVICE_IID_STR "3b95dd6c-0293-4e06-baeb-2affaefc9e74"
#define NS_ISESSIONSTORAGESERVICE_IID \
{0x3b95dd6c, 0x0293, 0x4e06, \
{ 0xba, 0xeb, 0x2a, 0xff, 0xae, 0xfc, 0x9e, 0x74 }}
class NS_NO_VTABLE nsISessionStorageService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISESSIONSTORAGESERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISessionStorageService;
/* void clearStoragesForOrigin (in nsIPrincipal aPrincipal); */
NS_IMETHOD ClearStoragesForOrigin(nsIPrincipal *aPrincipal) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISessionStorageService, NS_ISESSIONSTORAGESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISESSIONSTORAGESERVICE \
NS_IMETHOD ClearStoragesForOrigin(nsIPrincipal *aPrincipal) 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_NSISESSIONSTORAGESERVICE \
nsresult ClearStoragesForOrigin(nsIPrincipal *aPrincipal);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISESSIONSTORAGESERVICE(_to) \
NS_IMETHOD ClearStoragesForOrigin(nsIPrincipal *aPrincipal) override { return _to ClearStoragesForOrigin(aPrincipal); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISESSIONSTORAGESERVICE(_to) \
NS_IMETHOD ClearStoragesForOrigin(nsIPrincipal *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearStoragesForOrigin(aPrincipal); }
#endif /* __gen_nsISessionStorageService_h__ */