Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/indexedDB/nsIIndexedDatabaseManager.idl
*/
#ifndef __gen_nsIIndexedDatabaseManager_h__
#define __gen_nsIIndexedDatabaseManager_h__
#include "nsISupports.h"
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIIndexedDatabaseManager */
#define NS_IINDEXEDDATABASEMANAGER_IID_STR "6c62d204-cb7f-4762-8703-ebcccdd88bde"
#define NS_IINDEXEDDATABASEMANAGER_IID \
{0x6c62d204, 0xcb7f, 0x4762, \
{ 0x87, 0x03, 0xeb, 0xcc, 0xcd, 0xd8, 0x8b, 0xde }}
class NS_NO_VTABLE nsIIndexedDatabaseManager : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINDEXEDDATABASEMANAGER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIIndexedDatabaseManager;
/* [implicit_jscontext] Promise doMaintenance (); */
NS_IMETHOD DoMaintenance(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIIndexedDatabaseManager, NS_IINDEXEDDATABASEMANAGER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIINDEXEDDATABASEMANAGER \
NS_IMETHOD DoMaintenance(JSContext* cx, ::mozilla::dom::Promise * * _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_NSIINDEXEDDATABASEMANAGER \
nsresult DoMaintenance(JSContext* cx, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIINDEXEDDATABASEMANAGER(_to) \
NS_IMETHOD DoMaintenance(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to DoMaintenance(cx, _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_NSIINDEXEDDATABASEMANAGER(_to) \
NS_IMETHOD DoMaintenance(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DoMaintenance(cx, _retval); }
#endif /* __gen_nsIIndexedDatabaseManager_h__ */