/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/uriloader/exthandler/nsIContentDispatchChooser.idl */ #ifndef __gen_nsIContentDispatchChooser_h__ #define __gen_nsIContentDispatchChooser_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 class nsIHandlerInfo; /* forward declaration */ class nsIPrincipal; /* forward declaration */ class nsIURI; /* forward declaration */ namespace mozilla { namespace dom { class BrowsingContext; /* webidl BrowsingContext */ } // namespace dom } // namespace mozilla /* starting interface: nsIContentDispatchChooser */ #define NS_ICONTENTDISPATCHCHOOSER_IID_STR "456ca3b2-02be-4f97-89a2-08c08d3ad88f" #define NS_ICONTENTDISPATCHCHOOSER_IID \ {0x456ca3b2, 0x02be, 0x4f97, \ { 0x89, 0xa2, 0x08, 0xc0, 0x8d, 0x3a, 0xd8, 0x8f }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentDispatchChooser) nsIContentDispatchChooser : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ICONTENTDISPATCHCHOOSER_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIContentDispatchChooser; /* void handleURI (in nsIHandlerInfo aHandler, in nsIURI aURI, in nsIPrincipal aTriggeringPrincipal, in BrowsingContext aBrowsingContext, [optional] in boolean aWasTriggeredExternally, [optional] in boolean aHasValidUserGestureActivation); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentDispatchChooser_handleURI) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleURI(nsIHandlerInfo *aHandler, nsIURI *aURI, nsIPrincipal *aTriggeringPrincipal, mozilla::dom::BrowsingContext *aBrowsingContext, bool aWasTriggeredExternally, bool aHasValidUserGestureActivation) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSICONTENTDISPATCHCHOOSER \ NS_IMETHOD HandleURI(nsIHandlerInfo *aHandler, nsIURI *aURI, nsIPrincipal *aTriggeringPrincipal, mozilla::dom::BrowsingContext *aBrowsingContext, bool aWasTriggeredExternally, bool aHasValidUserGestureActivation) 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_NSICONTENTDISPATCHCHOOSER \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentDispatchChooser_handleURI)\ nsresult HandleURI(nsIHandlerInfo *aHandler, nsIURI *aURI, nsIPrincipal *aTriggeringPrincipal, mozilla::dom::BrowsingContext *aBrowsingContext, bool aWasTriggeredExternally, bool aHasValidUserGestureActivation); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSICONTENTDISPATCHCHOOSER(_to) \ NS_IMETHOD HandleURI(nsIHandlerInfo *aHandler, nsIURI *aURI, nsIPrincipal *aTriggeringPrincipal, mozilla::dom::BrowsingContext *aBrowsingContext, bool aWasTriggeredExternally, bool aHasValidUserGestureActivation) override { return _to HandleURI(aHandler, aURI, aTriggeringPrincipal, aBrowsingContext, aWasTriggeredExternally, aHasValidUserGestureActivation); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSICONTENTDISPATCHCHOOSER(_to) \ NS_IMETHOD HandleURI(nsIHandlerInfo *aHandler, nsIURI *aURI, nsIPrincipal *aTriggeringPrincipal, mozilla::dom::BrowsingContext *aBrowsingContext, bool aWasTriggeredExternally, bool aHasValidUserGestureActivation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleURI(aHandler, aURI, aTriggeringPrincipal, aBrowsingContext, aWasTriggeredExternally, aHasValidUserGestureActivation); } #endif /* __gen_nsIContentDispatchChooser_h__ */