Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/resistfingerprinting/nsIUserCharacteristicsPageService.idl
*/
#ifndef __gen_nsIUserCharacteristicsPageService_h__
#define __gen_nsIUserCharacteristicsPageService_h__
#include "nsISupports.h"
#include "js/Value.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
namespace mozilla {
namespace dom {
class BrowsingContext; /* webidl BrowsingContext */
} // namespace dom
} // namespace mozilla
/* starting interface: nsIUserCharacteristicsPageService */
#define NS_IUSERCHARACTERISTICSPAGESERVICE_IID_STR "ce3e9659-e311-49fb-b18b-7f27c6659b23"
#define NS_IUSERCHARACTERISTICSPAGESERVICE_IID \
{0xce3e9659, 0xe311, 0x49fb, \
{ 0xb1, 0x8b, 0x7f, 0x27, 0xc6, 0x65, 0x9b, 0x23 }}
class NS_NO_VTABLE nsIUserCharacteristicsPageService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUSERCHARACTERISTICSPAGESERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUserCharacteristicsPageService;
/* Promise createContentPage (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateContentPage(::mozilla::dom::Promise * * _retval) = 0;
/* void pageLoaded (in BrowsingContext browsingContext, in jsval data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PageLoaded(mozilla::dom::BrowsingContext *browsingContext, JS::Handle<JS::Value> data) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUserCharacteristicsPageService, NS_IUSERCHARACTERISTICSPAGESERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUSERCHARACTERISTICSPAGESERVICE \
NS_IMETHOD CreateContentPage(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD PageLoaded(mozilla::dom::BrowsingContext *browsingContext, JS::Handle<JS::Value> data) 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_NSIUSERCHARACTERISTICSPAGESERVICE \
nsresult CreateContentPage(::mozilla::dom::Promise * * _retval); \
nsresult PageLoaded(mozilla::dom::BrowsingContext *browsingContext, JS::Handle<JS::Value> data);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUSERCHARACTERISTICSPAGESERVICE(_to) \
NS_IMETHOD CreateContentPage(::mozilla::dom::Promise * * _retval) override { return _to CreateContentPage(_retval); } \
NS_IMETHOD PageLoaded(mozilla::dom::BrowsingContext *browsingContext, JS::Handle<JS::Value> data) override { return _to PageLoaded(browsingContext, data); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUSERCHARACTERISTICSPAGESERVICE(_to) \
NS_IMETHOD CreateContentPage(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContentPage(_retval); } \
NS_IMETHOD PageLoaded(mozilla::dom::BrowsingContext *browsingContext, JS::Handle<JS::Value> data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PageLoaded(browsingContext, data); }
#endif /* __gen_nsIUserCharacteristicsPageService_h__ */