Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/browser/components/migration/nsIEdgeMigrationUtils.idl
*/
#ifndef __gen_nsIEdgeMigrationUtils_h__
#define __gen_nsIEdgeMigrationUtils_h__
#include "nsISupports.h"
#include "nsIFile.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: nsIEdgeMigrationUtils */
#define NS_IEDGEMIGRATIONUTILS_IID_STR "9c7b7436-a17c-4c03-ba66-aeb5ae070126"
#define NS_IEDGEMIGRATIONUTILS_IID \
{0x9c7b7436, 0xa17c, 0x4c03, \
{ 0xba, 0x66, 0xae, 0xb5, 0xae, 0x07, 0x01, 0x26 }}
class NS_NO_VTABLE nsIEdgeMigrationUtils : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEDGEMIGRATIONUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIEdgeMigrationUtils;
/* [implicit_jscontext] Promise isDbLocked (in nsIFile aFile); */
NS_IMETHOD IsDbLocked(nsIFile *aFile, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIEdgeMigrationUtils, NS_IEDGEMIGRATIONUTILS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEDGEMIGRATIONUTILS \
NS_IMETHOD IsDbLocked(nsIFile *aFile, 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_NSIEDGEMIGRATIONUTILS \
nsresult IsDbLocked(nsIFile *aFile, 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_NSIEDGEMIGRATIONUTILS(_to) \
NS_IMETHOD IsDbLocked(nsIFile *aFile, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to IsDbLocked(aFile, 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_NSIEDGEMIGRATIONUTILS(_to) \
NS_IMETHOD IsDbLocked(nsIFile *aFile, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDbLocked(aFile, cx, _retval); }
#endif /* __gen_nsIEdgeMigrationUtils_h__ */