/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/profile/nsIToolkitProfileService.idl
*/
#ifndef __gen_nsIToolkitProfileService_h__
#define __gen_nsIToolkitProfileService_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/Value.h"
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/Assertions.h"
#include "mozilla/DebugOnly.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsISimpleEnumerator; /* forward declaration */
class nsIFile; /* forward declaration */
class nsIToolkitProfile; /* forward declaration */
class nsIProfileLock; /* forward declaration */
/* starting interface: nsIToolkitProfileService */
#define NS_ITOOLKITPROFILESERVICE_IID_STR "e3909911-5518-4bec-bbb1-37b54f36f162"
#define NS_ITOOLKITPROFILESERVICE_IID \
{0xe3909911, 0x5518, 0x4bec, \
{ 0xbb, 0xb1, 0x37, 0xb5, 0x4f, 0x36, 0xf1, 0x62 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIToolkitProfileService) nsIToolkitProfileService : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ITOOLKITPROFILESERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIToolkitProfileService;
/* [infallible] readonly attribute boolean isListOutdated; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_isListOutdated)
NS_IMETHOD GetIsListOutdated(bool *aIsListOutdated) = 0;
inline bool GetIsListOutdated()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsListOutdated(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean isFirstRun; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_isFirstRun)
NS_IMETHOD GetIsFirstRun(bool *aIsFirstRun) = 0;
inline bool GetIsFirstRun()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsFirstRun(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIToolkitProfileService_downgradeUIFlags) downgradeUIFlags : uint8_t {
hasSync MOZ_BINDING(binding_to, idl, const, XPIDL_nsIToolkitProfileService_downgradeUIFlags_hasSync) = 1,
};
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIToolkitProfileService_downgradeUIChoice) downgradeUIChoice : uint8_t {
quit MOZ_BINDING(binding_to, idl, const, XPIDL_nsIToolkitProfileService_downgradeUIChoice_quit) = 0,
createNewProfile MOZ_BINDING(binding_to, idl, const, XPIDL_nsIToolkitProfileService_downgradeUIChoice_createNewProfile) = 1,
};
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIToolkitProfileService_profileManagerResult) profileManagerResult : uint8_t {
exit MOZ_BINDING(binding_to, idl, const, XPIDL_nsIToolkitProfileService_profileManagerResult_exit) = 0,
launchWithProfile MOZ_BINDING(binding_to, idl, const, XPIDL_nsIToolkitProfileService_profileManagerResult_launchWithProfile) = 1,
restart MOZ_BINDING(binding_to, idl, const, XPIDL_nsIToolkitProfileService_profileManagerResult_restart) = 2,
};
/* [infallible] attribute boolean startWithLastProfile; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_startWithLastProfile)
NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) = 0;
inline bool GetStartWithLastProfile()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetStartWithLastProfile(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIToolkitProfileService_startWithLastProfile)
NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) = 0;
/* [infallible] readonly attribute nsISimpleEnumerator profiles; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_profiles)
NS_IMETHOD GetProfiles(nsISimpleEnumerator **aProfiles) = 0;
inline already_AddRefed<nsISimpleEnumerator> GetProfiles()
{
nsISimpleEnumerator* result = nullptr;
mozilla::DebugOnly<nsresult> rv = GetProfiles(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return already_AddRefed<nsISimpleEnumerator>(result);
}
/* [infallible] readonly attribute nsIToolkitProfile currentProfile; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_currentProfile)
NS_IMETHOD GetCurrentProfile(nsIToolkitProfile **aCurrentProfile) = 0;
inline already_AddRefed<nsIToolkitProfile> GetCurrentProfile()
{
nsIToolkitProfile* result = nullptr;
mozilla::DebugOnly<nsresult> rv = GetCurrentProfile(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return already_AddRefed<nsIToolkitProfile>(result);
}
/* attribute nsIToolkitProfile defaultProfile; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_defaultProfile)
NS_IMETHOD GetDefaultProfile(nsIToolkitProfile **aDefaultProfile) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIToolkitProfileService_defaultProfile)
NS_IMETHOD SetDefaultProfile(nsIToolkitProfile *aDefaultProfile) = 0;
/* boolean selectStartupProfile (in Array<ACString> aArgv, in boolean aIsResetting, in AUTF8String aUpdateChannel, in AUTF8String aLegacyInstallHash, out nsIFile aRootDir, out nsIFile aLocalDir, out nsIToolkitProfile aProfile); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_selectStartupProfile)
NS_IMETHOD SelectStartupProfile(const nsTArray<nsCString >& aArgv, bool aIsResetting, const nsACString& aUpdateChannel, const nsACString& aLegacyInstallHash, nsIFile **aRootDir, nsIFile **aLocalDir, nsIToolkitProfile **aProfile, bool *_retval) = 0;
/* nsIToolkitProfile getProfileByName (in AUTF8String aName); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getProfileByName)
NS_IMETHOD GetProfileByName(const nsACString& aName, nsIToolkitProfile **_retval) = 0;
/* nsIToolkitProfile getProfileByDir (in nsIFile aRootDir, [optional] in nsIFile aLocalDir); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getProfileByDir)
NS_IMETHOD GetProfileByDir(nsIFile *aRootDir, nsIFile *aLocalDir, nsIToolkitProfile **_retval) = 0;
/* nsIToolkitProfile createProfile (in nsIFile aRootDir, in AUTF8String aName, in AUTF8String aSource); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_createProfile)
NS_IMETHOD CreateProfile(nsIFile *aRootDir, const nsACString& aName, const nsACString& aSource, nsIToolkitProfile **_retval) = 0;
/* nsIToolkitProfile createUniqueProfile (in nsIFile aRootDir, in AUTF8String aNamePrefix, in AUTF8String aSource); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_createUniqueProfile)
NS_IMETHOD CreateUniqueProfile(nsIFile *aRootDir, const nsACString& aNamePrefix, const nsACString& aSource, nsIToolkitProfile **_retval) = 0;
/* AUTF8String getProfileDescriptor (in nsIFile aRootDir, out boolean aIsRelative); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getProfileDescriptor)
NS_IMETHOD GetProfileDescriptor(nsIFile *aRootDir, bool *aIsRelative, nsACString& _retval) = 0;
/* nsIFile getLocalDirFromRootDir (in nsIFile aRootDir); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getLocalDirFromRootDir)
NS_IMETHOD GetLocalDirFromRootDir(nsIFile *aRootDir, nsIFile **_retval) = 0;
/* [infallible] readonly attribute unsigned long profileCount; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_profileCount)
NS_IMETHOD GetProfileCount(uint32_t *aProfileCount) = 0;
inline uint32_t GetProfileCount()
{
uint32_t result;
mozilla::DebugOnly<nsresult> rv = GetProfileCount(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* void flush (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_flush)
NS_IMETHOD Flush(void) = 0;
/* [implicit_jscontext] Promise asyncFlush (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_asyncFlush)
NS_IMETHOD AsyncFlush(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise asyncFlushCurrentProfile (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_asyncFlushCurrentProfile)
NS_IMETHOD AsyncFlushCurrentProfile(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise removeProfileFilesByPath (in nsIFile aRootDir, in nsIFile aLocalDir, in unsigned long aTimeout); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_removeProfileFilesByPath)
NS_IMETHOD RemoveProfileFilesByPath(nsIFile *aRootDir, nsIFile *aLocalDir, uint32_t aTimeout, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITOOLKITPROFILESERVICE \
using nsIToolkitProfileService::GetIsListOutdated; \
NS_IMETHOD GetIsListOutdated(bool *aIsListOutdated) override; \
using nsIToolkitProfileService::GetIsFirstRun; \
NS_IMETHOD GetIsFirstRun(bool *aIsFirstRun) override; \
using nsIToolkitProfileService::GetStartWithLastProfile; \
NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) override; \
NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) override; \
using nsIToolkitProfileService::GetProfiles; \
NS_IMETHOD GetProfiles(nsISimpleEnumerator **aProfiles) override; \
using nsIToolkitProfileService::GetCurrentProfile; \
NS_IMETHOD GetCurrentProfile(nsIToolkitProfile **aCurrentProfile) override; \
NS_IMETHOD GetDefaultProfile(nsIToolkitProfile **aDefaultProfile) override; \
NS_IMETHOD SetDefaultProfile(nsIToolkitProfile *aDefaultProfile) override; \
NS_IMETHOD SelectStartupProfile(const nsTArray<nsCString >& aArgv, bool aIsResetting, const nsACString& aUpdateChannel, const nsACString& aLegacyInstallHash, nsIFile **aRootDir, nsIFile **aLocalDir, nsIToolkitProfile **aProfile, bool *_retval) override; \
NS_IMETHOD GetProfileByName(const nsACString& aName, nsIToolkitProfile **_retval) override; \
NS_IMETHOD GetProfileByDir(nsIFile *aRootDir, nsIFile *aLocalDir, nsIToolkitProfile **_retval) override; \
NS_IMETHOD CreateProfile(nsIFile *aRootDir, const nsACString& aName, const nsACString& aSource, nsIToolkitProfile **_retval) override; \
NS_IMETHOD CreateUniqueProfile(nsIFile *aRootDir, const nsACString& aNamePrefix, const nsACString& aSource, nsIToolkitProfile **_retval) override; \
NS_IMETHOD GetProfileDescriptor(nsIFile *aRootDir, bool *aIsRelative, nsACString& _retval) override; \
NS_IMETHOD GetLocalDirFromRootDir(nsIFile *aRootDir, nsIFile **_retval) override; \
using nsIToolkitProfileService::GetProfileCount; \
NS_IMETHOD GetProfileCount(uint32_t *aProfileCount) override; \
NS_IMETHOD Flush(void) override; \
NS_IMETHOD AsyncFlush(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD AsyncFlushCurrentProfile(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD RemoveProfileFilesByPath(nsIFile *aRootDir, nsIFile *aLocalDir, uint32_t aTimeout, 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_NSITOOLKITPROFILESERVICE \
using nsIToolkitProfileService::GetIsListOutdated; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_isListOutdated)\
nsresult GetIsListOutdated(bool *aIsListOutdated); \
using nsIToolkitProfileService::GetIsFirstRun; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_isFirstRun)\
nsresult GetIsFirstRun(bool *aIsFirstRun); \
using nsIToolkitProfileService::GetStartWithLastProfile; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_startWithLastProfile)\
nsresult GetStartWithLastProfile(bool *aStartWithLastProfile); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIToolkitProfileService_startWithLastProfile)\
nsresult SetStartWithLastProfile(bool aStartWithLastProfile); \
using nsIToolkitProfileService::GetProfiles; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_profiles)\
nsresult GetProfiles(nsISimpleEnumerator **aProfiles); \
using nsIToolkitProfileService::GetCurrentProfile; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_currentProfile)\
nsresult GetCurrentProfile(nsIToolkitProfile **aCurrentProfile); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_defaultProfile)\
nsresult GetDefaultProfile(nsIToolkitProfile **aDefaultProfile); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIToolkitProfileService_defaultProfile)\
nsresult SetDefaultProfile(nsIToolkitProfile *aDefaultProfile); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_selectStartupProfile)\
nsresult SelectStartupProfile(const nsTArray<nsCString >& aArgv, bool aIsResetting, const nsACString& aUpdateChannel, const nsACString& aLegacyInstallHash, nsIFile **aRootDir, nsIFile **aLocalDir, nsIToolkitProfile **aProfile, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getProfileByName)\
nsresult GetProfileByName(const nsACString& aName, nsIToolkitProfile **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getProfileByDir)\
nsresult GetProfileByDir(nsIFile *aRootDir, nsIFile *aLocalDir, nsIToolkitProfile **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_createProfile)\
nsresult CreateProfile(nsIFile *aRootDir, const nsACString& aName, const nsACString& aSource, nsIToolkitProfile **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_createUniqueProfile)\
nsresult CreateUniqueProfile(nsIFile *aRootDir, const nsACString& aNamePrefix, const nsACString& aSource, nsIToolkitProfile **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getProfileDescriptor)\
nsresult GetProfileDescriptor(nsIFile *aRootDir, bool *aIsRelative, nsACString& _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_getLocalDirFromRootDir)\
nsresult GetLocalDirFromRootDir(nsIFile *aRootDir, nsIFile **_retval); \
using nsIToolkitProfileService::GetProfileCount; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIToolkitProfileService_profileCount)\
nsresult GetProfileCount(uint32_t *aProfileCount); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_flush)\
nsresult Flush(void); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_asyncFlush)\
nsresult AsyncFlush(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_asyncFlushCurrentProfile)\
nsresult AsyncFlushCurrentProfile(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIToolkitProfileService_removeProfileFilesByPath)\
nsresult RemoveProfileFilesByPath(nsIFile *aRootDir, nsIFile *aLocalDir, uint32_t aTimeout, 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_NSITOOLKITPROFILESERVICE(_to) \
using nsIToolkitProfileService::GetIsListOutdated; \
NS_IMETHOD GetIsListOutdated(bool *aIsListOutdated) override { return _to GetIsListOutdated(aIsListOutdated); } \
using nsIToolkitProfileService::GetIsFirstRun; \
NS_IMETHOD GetIsFirstRun(bool *aIsFirstRun) override { return _to GetIsFirstRun(aIsFirstRun); } \
using nsIToolkitProfileService::GetStartWithLastProfile; \
NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) override { return _to GetStartWithLastProfile(aStartWithLastProfile); } \
NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) override { return _to SetStartWithLastProfile(aStartWithLastProfile); } \
using nsIToolkitProfileService::GetProfiles; \
NS_IMETHOD GetProfiles(nsISimpleEnumerator **aProfiles) override { return _to GetProfiles(aProfiles); } \
using nsIToolkitProfileService::GetCurrentProfile; \
NS_IMETHOD GetCurrentProfile(nsIToolkitProfile **aCurrentProfile) override { return _to GetCurrentProfile(aCurrentProfile); } \
NS_IMETHOD GetDefaultProfile(nsIToolkitProfile **aDefaultProfile) override { return _to GetDefaultProfile(aDefaultProfile); } \
NS_IMETHOD SetDefaultProfile(nsIToolkitProfile *aDefaultProfile) override { return _to SetDefaultProfile(aDefaultProfile); } \
NS_IMETHOD SelectStartupProfile(const nsTArray<nsCString >& aArgv, bool aIsResetting, const nsACString& aUpdateChannel, const nsACString& aLegacyInstallHash, nsIFile **aRootDir, nsIFile **aLocalDir, nsIToolkitProfile **aProfile, bool *_retval) override { return _to SelectStartupProfile(aArgv, aIsResetting, aUpdateChannel, aLegacyInstallHash, aRootDir, aLocalDir, aProfile, _retval); } \
NS_IMETHOD GetProfileByName(const nsACString& aName, nsIToolkitProfile **_retval) override { return _to GetProfileByName(aName, _retval); } \
NS_IMETHOD GetProfileByDir(nsIFile *aRootDir, nsIFile *aLocalDir, nsIToolkitProfile **_retval) override { return _to GetProfileByDir(aRootDir, aLocalDir, _retval); } \
NS_IMETHOD CreateProfile(nsIFile *aRootDir, const nsACString& aName, const nsACString& aSource, nsIToolkitProfile **_retval) override { return _to CreateProfile(aRootDir, aName, aSource, _retval); } \
NS_IMETHOD CreateUniqueProfile(nsIFile *aRootDir, const nsACString& aNamePrefix, const nsACString& aSource, nsIToolkitProfile **_retval) override { return _to CreateUniqueProfile(aRootDir, aNamePrefix, aSource, _retval); } \
NS_IMETHOD GetProfileDescriptor(nsIFile *aRootDir, bool *aIsRelative, nsACString& _retval) override { return _to GetProfileDescriptor(aRootDir, aIsRelative, _retval); } \
NS_IMETHOD GetLocalDirFromRootDir(nsIFile *aRootDir, nsIFile **_retval) override { return _to GetLocalDirFromRootDir(aRootDir, _retval); } \
using nsIToolkitProfileService::GetProfileCount; \
NS_IMETHOD GetProfileCount(uint32_t *aProfileCount) override { return _to GetProfileCount(aProfileCount); } \
NS_IMETHOD Flush(void) override { return _to Flush(); } \
NS_IMETHOD AsyncFlush(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncFlush(cx, _retval); } \
NS_IMETHOD AsyncFlushCurrentProfile(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AsyncFlushCurrentProfile(cx, _retval); } \
NS_IMETHOD RemoveProfileFilesByPath(nsIFile *aRootDir, nsIFile *aLocalDir, uint32_t aTimeout, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to RemoveProfileFilesByPath(aRootDir, aLocalDir, aTimeout, 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_NSITOOLKITPROFILESERVICE(_to) \
NS_IMETHOD GetIsListOutdated(bool *aIsListOutdated) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsListOutdated(aIsListOutdated); } \
NS_IMETHOD GetIsFirstRun(bool *aIsFirstRun) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFirstRun(aIsFirstRun); } \
NS_IMETHOD GetStartWithLastProfile(bool *aStartWithLastProfile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartWithLastProfile(aStartWithLastProfile); } \
NS_IMETHOD SetStartWithLastProfile(bool aStartWithLastProfile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStartWithLastProfile(aStartWithLastProfile); } \
NS_IMETHOD GetProfiles(nsISimpleEnumerator **aProfiles) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfiles(aProfiles); } \
NS_IMETHOD GetCurrentProfile(nsIToolkitProfile **aCurrentProfile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentProfile(aCurrentProfile); } \
NS_IMETHOD GetDefaultProfile(nsIToolkitProfile **aDefaultProfile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultProfile(aDefaultProfile); } \
NS_IMETHOD SetDefaultProfile(nsIToolkitProfile *aDefaultProfile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultProfile(aDefaultProfile); } \
NS_IMETHOD SelectStartupProfile(const nsTArray<nsCString >& aArgv, bool aIsResetting, const nsACString& aUpdateChannel, const nsACString& aLegacyInstallHash, nsIFile **aRootDir, nsIFile **aLocalDir, nsIToolkitProfile **aProfile, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectStartupProfile(aArgv, aIsResetting, aUpdateChannel, aLegacyInstallHash, aRootDir, aLocalDir, aProfile, _retval); } \
NS_IMETHOD GetProfileByName(const nsACString& aName, nsIToolkitProfile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileByName(aName, _retval); } \
NS_IMETHOD GetProfileByDir(nsIFile *aRootDir, nsIFile *aLocalDir, nsIToolkitProfile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileByDir(aRootDir, aLocalDir, _retval); } \
NS_IMETHOD CreateProfile(nsIFile *aRootDir, const nsACString& aName, const nsACString& aSource, nsIToolkitProfile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateProfile(aRootDir, aName, aSource, _retval); } \
NS_IMETHOD CreateUniqueProfile(nsIFile *aRootDir, const nsACString& aNamePrefix, const nsACString& aSource, nsIToolkitProfile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateUniqueProfile(aRootDir, aNamePrefix, aSource, _retval); } \
NS_IMETHOD GetProfileDescriptor(nsIFile *aRootDir, bool *aIsRelative, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileDescriptor(aRootDir, aIsRelative, _retval); } \
NS_IMETHOD GetLocalDirFromRootDir(nsIFile *aRootDir, nsIFile **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalDirFromRootDir(aRootDir, _retval); } \
NS_IMETHOD GetProfileCount(uint32_t *aProfileCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileCount(aProfileCount); } \
NS_IMETHOD Flush(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Flush(); } \
NS_IMETHOD AsyncFlush(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncFlush(cx, _retval); } \
NS_IMETHOD AsyncFlushCurrentProfile(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncFlushCurrentProfile(cx, _retval); } \
NS_IMETHOD RemoveProfileFilesByPath(nsIFile *aRootDir, nsIFile *aLocalDir, uint32_t aTimeout, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProfileFilesByPath(aRootDir, aLocalDir, aTimeout, cx, _retval); }
// %{C++:220-220
#define NS_PROFILESERVICE_CONTRACTID "@mozilla.org/toolkit/profile-service;1"
// %}
#endif /* __gen_nsIToolkitProfileService_h__ */