Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/cookie/nsIThirdPartyCookieBlockingExceptionListService.idl
*/
#ifndef __gen_nsIThirdPartyCookieBlockingExceptionListService_h__
#define __gen_nsIThirdPartyCookieBlockingExceptionListService_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: nsIThirdPartyCookieBlockingExceptionListService */
#define NS_ITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE_IID_STR "1ee0cc18-c968-4105-a895-bdea08e187eb"
#define NS_ITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE_IID \
{0x1ee0cc18, 0xc968, 0x4105, \
{ 0xa8, 0x95, 0xbd, 0xea, 0x08, 0xe1, 0x87, 0xeb }}
class NS_NO_VTABLE nsIThirdPartyCookieBlockingExceptionListService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIThirdPartyCookieBlockingExceptionListService;
/* Promise init (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(::mozilla::dom::Promise * * _retval) = 0;
/* void shutdown (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIThirdPartyCookieBlockingExceptionListService, NS_ITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE \
NS_IMETHOD Init(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD Shutdown(void) 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_NSITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE \
nsresult Init(::mozilla::dom::Promise * * _retval); \
nsresult Shutdown(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE(_to) \
NS_IMETHOD Init(::mozilla::dom::Promise * * _retval) override { return _to Init(_retval); } \
NS_IMETHOD Shutdown(void) override { return _to Shutdown(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE(_to) \
NS_IMETHOD Init(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(_retval); } \
NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); }
/* starting interface: nsIThirdPartyCookieExceptionEntry */
#define NS_ITHIRDPARTYCOOKIEEXCEPTIONENTRY_IID_STR "8200e12c-416c-42eb-8af5-db9745d2e527"
#define NS_ITHIRDPARTYCOOKIEEXCEPTIONENTRY_IID \
{0x8200e12c, 0x416c, 0x42eb, \
{ 0x8a, 0xf5, 0xdb, 0x97, 0x45, 0xd2, 0xe5, 0x27 }}
class NS_NO_VTABLE nsIThirdPartyCookieExceptionEntry : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHIRDPARTYCOOKIEEXCEPTIONENTRY_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIThirdPartyCookieExceptionEntry;
/* readonly attribute ACString firstPartySite; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFirstPartySite(nsACString& aFirstPartySite) = 0;
/* readonly attribute ACString thirdPartySite; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThirdPartySite(nsACString& aThirdPartySite) = 0;
/* ACString serialize (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Serialize(nsACString& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIThirdPartyCookieExceptionEntry, NS_ITHIRDPARTYCOOKIEEXCEPTIONENTRY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITHIRDPARTYCOOKIEEXCEPTIONENTRY \
NS_IMETHOD GetFirstPartySite(nsACString& aFirstPartySite) override; \
NS_IMETHOD GetThirdPartySite(nsACString& aThirdPartySite) override; \
NS_IMETHOD Serialize(nsACString& _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_NSITHIRDPARTYCOOKIEEXCEPTIONENTRY \
nsresult GetFirstPartySite(nsACString& aFirstPartySite); \
nsresult GetThirdPartySite(nsACString& aThirdPartySite); \
nsresult Serialize(nsACString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITHIRDPARTYCOOKIEEXCEPTIONENTRY(_to) \
NS_IMETHOD GetFirstPartySite(nsACString& aFirstPartySite) override { return _to GetFirstPartySite(aFirstPartySite); } \
NS_IMETHOD GetThirdPartySite(nsACString& aThirdPartySite) override { return _to GetThirdPartySite(aThirdPartySite); } \
NS_IMETHOD Serialize(nsACString& _retval) override { return _to Serialize(_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_NSITHIRDPARTYCOOKIEEXCEPTIONENTRY(_to) \
NS_IMETHOD GetFirstPartySite(nsACString& aFirstPartySite) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstPartySite(aFirstPartySite); } \
NS_IMETHOD GetThirdPartySite(nsACString& aThirdPartySite) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThirdPartySite(aThirdPartySite); } \
NS_IMETHOD Serialize(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Serialize(_retval); }
#define NS_NSITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE_CONTRACTID "@mozilla.org/third-party-cookie-blocking-exception-list-service;1"
#endif /* __gen_nsIThirdPartyCookieBlockingExceptionListService_h__ */