Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/base/nsIAvailableMemoryWatcherTestingLinux.idl
*/
#ifndef __gen_nsIAvailableMemoryWatcherTestingLinux_h__
#define __gen_nsIAvailableMemoryWatcherTestingLinux_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIAvailableMemoryWatcherTestingLinux */
#define NS_IAVAILABLEMEMORYWATCHERTESTINGLINUX_IID_STR "88c3f4a6-6f9a-4f6b-9a4b-5c1b1b0c2ad3"
#define NS_IAVAILABLEMEMORYWATCHERTESTINGLINUX_IID \
{0x88c3f4a6, 0x6f9a, 0x4f6b, \
{ 0x9a, 0x4b, 0x5c, 0x1b, 0x1b, 0x0c, 0x2a, 0xd3 }}
class NS_NO_VTABLE nsIAvailableMemoryWatcherTestingLinux : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IAVAILABLEMEMORYWATCHERTESTINGLINUX_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAvailableMemoryWatcherTestingLinux;
/* void setPSIPathForTesting (in ACString aPSIPath); */
NS_IMETHOD SetPSIPathForTesting(const nsACString& aPSIPath) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIAVAILABLEMEMORYWATCHERTESTINGLINUX \
NS_IMETHOD SetPSIPathForTesting(const nsACString& aPSIPath) 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_NSIAVAILABLEMEMORYWATCHERTESTINGLINUX \
nsresult SetPSIPathForTesting(const nsACString& aPSIPath);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIAVAILABLEMEMORYWATCHERTESTINGLINUX(_to) \
NS_IMETHOD SetPSIPathForTesting(const nsACString& aPSIPath) override { return _to SetPSIPathForTesting(aPSIPath); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIAVAILABLEMEMORYWATCHERTESTINGLINUX(_to) \
NS_IMETHOD SetPSIPathForTesting(const nsACString& aPSIPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPSIPathForTesting(aPSIPath); }
#endif /* __gen_nsIAvailableMemoryWatcherTestingLinux_h__ */