Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/browser/components/migration/nsIKeychainMigrationUtils.idl
*/
#ifndef __gen_nsIKeychainMigrationUtils_h__
#define __gen_nsIKeychainMigrationUtils_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: nsIKeychainMigrationUtils */
#define NS_IKEYCHAINMIGRATIONUTILS_IID_STR "647bf80c-cd35-4ce6-b904-fd586b97ae48"
#define NS_IKEYCHAINMIGRATIONUTILS_IID \
{0x647bf80c, 0xcd35, 0x4ce6, \
{ 0xb9, 0x04, 0xfd, 0x58, 0x6b, 0x97, 0xae, 0x48 }}
class NS_NO_VTABLE nsIKeychainMigrationUtils : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IKEYCHAINMIGRATIONUTILS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIKeychainMigrationUtils;
/* ACString getGenericPassword (in ACString aServiceName, in ACString aAccountName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGenericPassword(const nsACString& aServiceName, const nsACString& aAccountName, nsACString& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIKeychainMigrationUtils, NS_IKEYCHAINMIGRATIONUTILS_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIKEYCHAINMIGRATIONUTILS \
NS_IMETHOD GetGenericPassword(const nsACString& aServiceName, const nsACString& aAccountName, 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_NSIKEYCHAINMIGRATIONUTILS \
nsresult GetGenericPassword(const nsACString& aServiceName, const nsACString& aAccountName, nsACString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIKEYCHAINMIGRATIONUTILS(_to) \
NS_IMETHOD GetGenericPassword(const nsACString& aServiceName, const nsACString& aAccountName, nsACString& _retval) override { return _to GetGenericPassword(aServiceName, aAccountName, _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_NSIKEYCHAINMIGRATIONUTILS(_to) \
NS_IMETHOD GetGenericPassword(const nsACString& aServiceName, const nsACString& aAccountName, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGenericPassword(aServiceName, aAccountName, _retval); }
#endif /* __gen_nsIKeychainMigrationUtils_h__ */