Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/backgroundtasks/nsIBackgroundTasksRunner.idl
*/
#ifndef __gen_nsIBackgroundTasksRunner_h__
#define __gen_nsIBackgroundTasksRunner_h__
#include "nsISupports.h"
#include "nsTArray.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: nsIBackgroundTasksRunner */
#define NS_IBACKGROUNDTASKSRUNNER_IID_STR "8cd92fce-1ec3-470a-ad09-c0de9d98497e"
#define NS_IBACKGROUNDTASKSRUNNER_IID \
{0x8cd92fce, 0x1ec3, 0x470a, \
{ 0xad, 0x09, 0xc0, 0xde, 0x9d, 0x98, 0x49, 0x7e }}
class NS_NO_VTABLE nsIBackgroundTasksRunner : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBACKGROUNDTASKSRUNNER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIBackgroundTasksRunner;
/* void runInDetachedProcess (in ACString aTaskName, in Array<ACString> aCommandLine); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RunInDetachedProcess(const nsACString& aTaskName, const nsTArray<nsCString >& aCommandLine) = 0;
/* void removeDirectoryInDetachedProcess (in ACString aParentDirPath, in ACString aChildDirName, in ACString aSecondsToWait, in ACString aOtherFoldersSuffix, [optional] in ACString aMetricsId); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveDirectoryInDetachedProcess(const nsACString& aParentDirPath, const nsACString& aChildDirName, const nsACString& aSecondsToWait, const nsACString& aOtherFoldersSuffix, const nsACString& aMetricsId) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBackgroundTasksRunner, NS_IBACKGROUNDTASKSRUNNER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBACKGROUNDTASKSRUNNER \
NS_IMETHOD RunInDetachedProcess(const nsACString& aTaskName, const nsTArray<nsCString >& aCommandLine) override; \
NS_IMETHOD RemoveDirectoryInDetachedProcess(const nsACString& aParentDirPath, const nsACString& aChildDirName, const nsACString& aSecondsToWait, const nsACString& aOtherFoldersSuffix, const nsACString& aMetricsId) 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_NSIBACKGROUNDTASKSRUNNER \
nsresult RunInDetachedProcess(const nsACString& aTaskName, const nsTArray<nsCString >& aCommandLine); \
nsresult RemoveDirectoryInDetachedProcess(const nsACString& aParentDirPath, const nsACString& aChildDirName, const nsACString& aSecondsToWait, const nsACString& aOtherFoldersSuffix, const nsACString& aMetricsId);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBACKGROUNDTASKSRUNNER(_to) \
NS_IMETHOD RunInDetachedProcess(const nsACString& aTaskName, const nsTArray<nsCString >& aCommandLine) override { return _to RunInDetachedProcess(aTaskName, aCommandLine); } \
NS_IMETHOD RemoveDirectoryInDetachedProcess(const nsACString& aParentDirPath, const nsACString& aChildDirName, const nsACString& aSecondsToWait, const nsACString& aOtherFoldersSuffix, const nsACString& aMetricsId) override { return _to RemoveDirectoryInDetachedProcess(aParentDirPath, aChildDirName, aSecondsToWait, aOtherFoldersSuffix, aMetricsId); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIBACKGROUNDTASKSRUNNER(_to) \
NS_IMETHOD RunInDetachedProcess(const nsACString& aTaskName, const nsTArray<nsCString >& aCommandLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunInDetachedProcess(aTaskName, aCommandLine); } \
NS_IMETHOD RemoveDirectoryInDetachedProcess(const nsACString& aParentDirPath, const nsACString& aChildDirName, const nsACString& aSecondsToWait, const nsACString& aOtherFoldersSuffix, const nsACString& aMetricsId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDirectoryInDetachedProcess(aParentDirPath, aChildDirName, aSecondsToWait, aOtherFoldersSuffix, aMetricsId); }
#endif /* __gen_nsIBackgroundTasksRunner_h__ */