Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/places/nsIPlacesPreviewsHelperService.idl
*/
#ifndef __gen_nsIPlacesPreviewsHelperService_h__
#define __gen_nsIPlacesPreviewsHelperService_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: nsIPlacesPreviewsHelperService */
#define NS_IPLACESPREVIEWSHELPERSERVICE_IID_STR "bd0a4d3b-ff26-4d4d-9a62-a513e1c1bf92"
#define NS_IPLACESPREVIEWSHELPERSERVICE_IID \
{0xbd0a4d3b, 0xff26, 0x4d4d, \
{ 0x9a, 0x62, 0xa5, 0x13, 0xe1, 0xc1, 0xbf, 0x92 }}
class NS_NO_VTABLE nsIPlacesPreviewsHelperService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPLACESPREVIEWSHELPERSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIPlacesPreviewsHelperService;
/* AString getFilePathForURL (in AString aURL); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilePathForURL(const nsAString& aURL, nsAString& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPlacesPreviewsHelperService, NS_IPLACESPREVIEWSHELPERSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPLACESPREVIEWSHELPERSERVICE \
NS_IMETHOD GetFilePathForURL(const nsAString& aURL, nsAString& _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_NSIPLACESPREVIEWSHELPERSERVICE \
nsresult GetFilePathForURL(const nsAString& aURL, nsAString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPLACESPREVIEWSHELPERSERVICE(_to) \
NS_IMETHOD GetFilePathForURL(const nsAString& aURL, nsAString& _retval) override { return _to GetFilePathForURL(aURL, _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_NSIPLACESPREVIEWSHELPERSERVICE(_to) \
NS_IMETHOD GetFilePathForURL(const nsAString& aURL, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilePathForURL(aURL, _retval); }
#endif /* __gen_nsIPlacesPreviewsHelperService_h__ */