/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/contentanalysis/nsIContentAnalysis.idl
*/
#ifndef __gen_nsIContentAnalysis_h__
#define __gen_nsIContentAnalysis_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/Value.h"
#include "js/GCAnnotations.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 nsIFile; /* forward declaration */
class nsITransferable; /* forward declaration */
class nsIURI; /* forward declaration */
namespace mozilla {
namespace dom {
class BrowsingContext; /* webidl BrowsingContext */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class DataTransfer; /* webidl DataTransfer */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class DragEvent; /* webidl DragEvent */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class WindowGlobalParent; /* webidl WindowGlobalParent */
} // namespace dom
} // namespace mozilla
/* starting interface: nsIContentAnalysisAcknowledgement */
#define NS_ICONTENTANALYSISACKNOWLEDGEMENT_IID_STR "06e6a60f-3a2b-41fa-a63b-fea7a7f71649"
#define NS_ICONTENTANALYSISACKNOWLEDGEMENT_IID \
{0x06e6a60f, 0x3a2b, 0x41fa, \
{ 0xa6, 0x3b, 0xfe, 0xa7, 0xa7, 0xf7, 0x16, 0x49 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisAcknowledgement) nsIContentAnalysisAcknowledgement : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISACKNOWLEDGEMENT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisAcknowledgement;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisAcknowledgement_Result) Result : uint32_t {
eSuccess MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_Result_eSuccess) = 1,
eInvalidResponse MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_Result_eInvalidResponse) = 2,
eTooLate MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_Result_eTooLate) = 3,
};
/* readonly attribute nsIContentAnalysisAcknowledgement_Result result; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisAcknowledgement_result)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetResult(nsIContentAnalysisAcknowledgement::Result *aResult) = 0;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisAcknowledgement_FinalAction) FinalAction : uint32_t {
eUnspecified MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_FinalAction_eUnspecified) = 0,
eAllow MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_FinalAction_eAllow) = 1,
eReportOnly MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_FinalAction_eReportOnly) = 2,
eWarn MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_FinalAction_eWarn) = 3,
eBlock MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisAcknowledgement_FinalAction_eBlock) = 4,
};
/* readonly attribute nsIContentAnalysisAcknowledgement_FinalAction finalAction; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisAcknowledgement_finalAction)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFinalAction(nsIContentAnalysisAcknowledgement::FinalAction *aFinalAction) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISACKNOWLEDGEMENT \
NS_IMETHOD GetResult(nsIContentAnalysisAcknowledgement::Result *aResult) override; \
NS_IMETHOD GetFinalAction(nsIContentAnalysisAcknowledgement::FinalAction *aFinalAction) 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_NSICONTENTANALYSISACKNOWLEDGEMENT \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisAcknowledgement_result)\
nsresult GetResult(nsIContentAnalysisAcknowledgement::Result *aResult); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisAcknowledgement_finalAction)\
nsresult GetFinalAction(nsIContentAnalysisAcknowledgement::FinalAction *aFinalAction);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISACKNOWLEDGEMENT(_to) \
NS_IMETHOD GetResult(nsIContentAnalysisAcknowledgement::Result *aResult) override { return _to GetResult(aResult); } \
NS_IMETHOD GetFinalAction(nsIContentAnalysisAcknowledgement::FinalAction *aFinalAction) override { return _to GetFinalAction(aFinalAction); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISACKNOWLEDGEMENT(_to) \
NS_IMETHOD GetResult(nsIContentAnalysisAcknowledgement::Result *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
NS_IMETHOD GetFinalAction(nsIContentAnalysisAcknowledgement::FinalAction *aFinalAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFinalAction(aFinalAction); }
/* starting interface: nsIContentAnalysisResult */
#define NS_ICONTENTANALYSISRESULT_IID_STR "9679545f-4256-4c90-9654-90292c355d25"
#define NS_ICONTENTANALYSISRESULT_IID \
{0x9679545f, 0x4256, 0x4c90, \
{ 0x96, 0x54, 0x90, 0x29, 0x2c, 0x35, 0x5d, 0x25 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisResult) nsIContentAnalysisResult : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISRESULT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisResult;
/* [infallible] readonly attribute boolean shouldAllowContent; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResult_shouldAllowContent)
NS_IMETHOD GetShouldAllowContent(bool *aShouldAllowContent) = 0;
inline bool GetShouldAllowContent()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetShouldAllowContent(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISRESULT \
using nsIContentAnalysisResult::GetShouldAllowContent; \
NS_IMETHOD GetShouldAllowContent(bool *aShouldAllowContent) 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_NSICONTENTANALYSISRESULT \
using nsIContentAnalysisResult::GetShouldAllowContent; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResult_shouldAllowContent)\
nsresult GetShouldAllowContent(bool *aShouldAllowContent);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISRESULT(_to) \
using nsIContentAnalysisResult::GetShouldAllowContent; \
NS_IMETHOD GetShouldAllowContent(bool *aShouldAllowContent) override { return _to GetShouldAllowContent(aShouldAllowContent); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISRESULT(_to) \
NS_IMETHOD GetShouldAllowContent(bool *aShouldAllowContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldAllowContent(aShouldAllowContent); }
/* starting interface: nsIContentAnalysisResponse */
#define NS_ICONTENTANALYSISRESPONSE_IID_STR "89088c61-15f6-4ace-a880-a1b5ea47ca66"
#define NS_ICONTENTANALYSISRESPONSE_IID \
{0x89088c61, 0x15f6, 0x4ace, \
{ 0xa8, 0x80, 0xa1, 0xb5, 0xea, 0x47, 0xca, 0x66 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisResponse) nsIContentAnalysisResponse : public nsIContentAnalysisResult {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISRESPONSE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisResponse;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisResponse_Action) Action : uint32_t {
eUnspecified MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_Action_eUnspecified) = 0,
eReportOnly MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_Action_eReportOnly) = 1,
eWarn MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_Action_eWarn) = 2,
eBlock MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_Action_eBlock) = 3,
eAllow MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_Action_eAllow) = 1000,
eCanceled MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_Action_eCanceled) = 1001,
};
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisResponse_CancelError) CancelError : uint32_t {
eUserInitiated MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eUserInitiated) = 0,
eNoAgent MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eNoAgent) = 1,
eInvalidAgentSignature MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eInvalidAgentSignature) = 2,
eErrorOther MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eErrorOther) = 3,
eOtherRequestInGroupCancelled MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eOtherRequestInGroupCancelled) = 4,
eShutdown MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eShutdown) = 5,
eTimeout MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisResponse_CancelError_eTimeout) = 6,
};
/* [infallible] readonly attribute nsIContentAnalysisResponse_Action action; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_action)
NS_IMETHOD GetAction(nsIContentAnalysisResponse::Action *aAction) = 0;
inline nsIContentAnalysisResponse::Action GetAction()
{
nsIContentAnalysisResponse::Action result;
mozilla::DebugOnly<nsresult> rv = GetAction(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute nsIContentAnalysisResponse_CancelError cancelError; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_cancelError)
NS_IMETHOD GetCancelError(nsIContentAnalysisResponse::CancelError *aCancelError) = 0;
inline nsIContentAnalysisResponse::CancelError GetCancelError()
{
nsIContentAnalysisResponse::CancelError result;
mozilla::DebugOnly<nsresult> rv = GetCancelError(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* readonly attribute ACString requestToken; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_requestToken)
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) = 0;
/* readonly attribute ACString userActionId; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_userActionId)
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) = 0;
/* [infallible] readonly attribute boolean isCachedResponse; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_isCachedResponse)
NS_IMETHOD GetIsCachedResponse(bool *aIsCachedResponse) = 0;
inline bool GetIsCachedResponse()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsCachedResponse(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute boolean isSyntheticResponse; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_isSyntheticResponse)
NS_IMETHOD GetIsSyntheticResponse(bool *aIsSyntheticResponse) = 0;
inline bool GetIsSyntheticResponse()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetIsSyntheticResponse(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* void acknowledge (in nsIContentAnalysisAcknowledgement aCaa); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisResponse_acknowledge)
NS_IMETHOD Acknowledge(nsIContentAnalysisAcknowledgement *aCaa) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISRESPONSE \
using nsIContentAnalysisResponse::GetAction; \
NS_IMETHOD GetAction(nsIContentAnalysisResponse::Action *aAction) override; \
using nsIContentAnalysisResponse::GetCancelError; \
NS_IMETHOD GetCancelError(nsIContentAnalysisResponse::CancelError *aCancelError) override; \
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) override; \
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) override; \
using nsIContentAnalysisResponse::GetIsCachedResponse; \
NS_IMETHOD GetIsCachedResponse(bool *aIsCachedResponse) override; \
using nsIContentAnalysisResponse::GetIsSyntheticResponse; \
NS_IMETHOD GetIsSyntheticResponse(bool *aIsSyntheticResponse) override; \
NS_IMETHOD Acknowledge(nsIContentAnalysisAcknowledgement *aCaa) 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_NSICONTENTANALYSISRESPONSE \
using nsIContentAnalysisResponse::GetAction; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_action)\
nsresult GetAction(nsIContentAnalysisResponse::Action *aAction); \
using nsIContentAnalysisResponse::GetCancelError; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_cancelError)\
nsresult GetCancelError(nsIContentAnalysisResponse::CancelError *aCancelError); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_requestToken)\
nsresult GetRequestToken(nsACString& aRequestToken); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_userActionId)\
nsresult GetUserActionId(nsACString& aUserActionId); \
using nsIContentAnalysisResponse::GetIsCachedResponse; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_isCachedResponse)\
nsresult GetIsCachedResponse(bool *aIsCachedResponse); \
using nsIContentAnalysisResponse::GetIsSyntheticResponse; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisResponse_isSyntheticResponse)\
nsresult GetIsSyntheticResponse(bool *aIsSyntheticResponse); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisResponse_acknowledge)\
nsresult Acknowledge(nsIContentAnalysisAcknowledgement *aCaa);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISRESPONSE(_to) \
using nsIContentAnalysisResponse::GetAction; \
NS_IMETHOD GetAction(nsIContentAnalysisResponse::Action *aAction) override { return _to GetAction(aAction); } \
using nsIContentAnalysisResponse::GetCancelError; \
NS_IMETHOD GetCancelError(nsIContentAnalysisResponse::CancelError *aCancelError) override { return _to GetCancelError(aCancelError); } \
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) override { return _to GetRequestToken(aRequestToken); } \
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) override { return _to GetUserActionId(aUserActionId); } \
using nsIContentAnalysisResponse::GetIsCachedResponse; \
NS_IMETHOD GetIsCachedResponse(bool *aIsCachedResponse) override { return _to GetIsCachedResponse(aIsCachedResponse); } \
using nsIContentAnalysisResponse::GetIsSyntheticResponse; \
NS_IMETHOD GetIsSyntheticResponse(bool *aIsSyntheticResponse) override { return _to GetIsSyntheticResponse(aIsSyntheticResponse); } \
NS_IMETHOD Acknowledge(nsIContentAnalysisAcknowledgement *aCaa) override { return _to Acknowledge(aCaa); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISRESPONSE(_to) \
NS_IMETHOD GetAction(nsIContentAnalysisResponse::Action *aAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAction(aAction); } \
NS_IMETHOD GetCancelError(nsIContentAnalysisResponse::CancelError *aCancelError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCancelError(aCancelError); } \
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestToken(aRequestToken); } \
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserActionId(aUserActionId); } \
NS_IMETHOD GetIsCachedResponse(bool *aIsCachedResponse) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsCachedResponse(aIsCachedResponse); } \
NS_IMETHOD GetIsSyntheticResponse(bool *aIsSyntheticResponse) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSyntheticResponse(aIsSyntheticResponse); } \
NS_IMETHOD Acknowledge(nsIContentAnalysisAcknowledgement *aCaa) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Acknowledge(aCaa); }
/* starting interface: nsIClientDownloadResource */
#define NS_ICLIENTDOWNLOADRESOURCE_IID_STR "48d31df1-204d-42ce-a57f-f156bb870d89"
#define NS_ICLIENTDOWNLOADRESOURCE_IID \
{0x48d31df1, 0x204d, 0x42ce, \
{ 0xa5, 0x7f, 0xf1, 0x56, 0xbb, 0x87, 0x0d, 0x89 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIClientDownloadResource) nsIClientDownloadResource : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICLIENTDOWNLOADRESOURCE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIClientDownloadResource;
/* readonly attribute AString url; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIClientDownloadResource_url)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUrl(nsAString& aUrl) = 0;
enum {
DOWNLOAD_URL MOZ_BINDING(binding_to, idl, const, XPIDL_nsIClientDownloadResource_DOWNLOAD_URL) = 0U,
DOWNLOAD_REDIRECT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIClientDownloadResource_DOWNLOAD_REDIRECT) = 1U,
TAB_URL MOZ_BINDING(binding_to, idl, const, XPIDL_nsIClientDownloadResource_TAB_URL) = 2U,
TAB_REDIRECT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIClientDownloadResource_TAB_REDIRECT) = 3U,
PPAPI_DOCUMENT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIClientDownloadResource_PPAPI_DOCUMENT) = 4U,
PPAPI_PLUGIN MOZ_BINDING(binding_to, idl, const, XPIDL_nsIClientDownloadResource_PPAPI_PLUGIN) = 5U
};
/* readonly attribute unsigned long type; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIClientDownloadResource_type)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(uint32_t *aType) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICLIENTDOWNLOADRESOURCE \
NS_IMETHOD GetUrl(nsAString& aUrl) override; \
NS_IMETHOD GetType(uint32_t *aType) 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_NSICLIENTDOWNLOADRESOURCE \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIClientDownloadResource_url)\
nsresult GetUrl(nsAString& aUrl); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIClientDownloadResource_type)\
nsresult GetType(uint32_t *aType);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICLIENTDOWNLOADRESOURCE(_to) \
NS_IMETHOD GetUrl(nsAString& aUrl) override { return _to GetUrl(aUrl); } \
NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICLIENTDOWNLOADRESOURCE(_to) \
NS_IMETHOD GetUrl(nsAString& aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); }
/* starting interface: nsIContentAnalysisRequest */
#define NS_ICONTENTANALYSISREQUEST_IID_STR "c11a6636-da2a-4afc-bdd1-0bcae2310e6d"
#define NS_ICONTENTANALYSISREQUEST_IID \
{0xc11a6636, 0xda2a, 0x4afc, \
{ 0xbd, 0xd1, 0x0b, 0xca, 0xe2, 0x31, 0x0e, 0x6d }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisRequest) nsIContentAnalysisRequest : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISREQUEST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisRequest;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisRequest_AnalysisType) AnalysisType : uint32_t {
eUnspecified MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_eUnspecified) = 0,
eFileDownloaded MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_eFileDownloaded) = 1,
eFileAttached MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_eFileAttached) = 2,
eBulkDataEntry MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_eBulkDataEntry) = 3,
ePrint MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_ePrint) = 4,
eFileTransfer MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_eFileTransfer) = 5,
eDataCopied MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_AnalysisType_eDataCopied) = 6,
};
/* readonly attribute nsIContentAnalysisRequest_AnalysisType analysisType; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_analysisType)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAnalysisType(nsIContentAnalysisRequest::AnalysisType *aAnalysisType) = 0;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisRequest_Reason) Reason : uint32_t {
eUnknown MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eUnknown) = 0,
eClipboardPaste MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eClipboardPaste) = 1,
eDragAndDrop MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eDragAndDrop) = 2,
eFilePickerDialog MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eFilePickerDialog) = 3,
ePrintPreviewPrint MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_ePrintPreviewPrint) = 4,
eSystemDialogPrint MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eSystemDialogPrint) = 5,
eNormalDownload MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eNormalDownload) = 6,
eSaveAsDownload MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eSaveAsDownload) = 7,
eClipboardCopy MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_Reason_eClipboardCopy) = 8,
};
/* readonly attribute nsIContentAnalysisRequest_Reason reason; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_reason)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetReason(nsIContentAnalysisRequest::Reason *aReason) = 0;
enum MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisRequest_OperationType) OperationType : uint32_t {
eClipboard MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_OperationType_eClipboard) = 0,
eDroppedText MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_OperationType_eDroppedText) = 1,
eOperationPrint MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_OperationType_eOperationPrint) = 2,
eUpload MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_OperationType_eUpload) = 3,
eDownload MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRequest_OperationType_eDownload) = 4,
};
/* readonly attribute nsIContentAnalysisRequest_OperationType operationTypeForDisplay; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_operationTypeForDisplay)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOperationTypeForDisplay(nsIContentAnalysisRequest::OperationType *aOperationTypeForDisplay) = 0;
/* readonly attribute AString fileNameForDisplay; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_fileNameForDisplay)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileNameForDisplay(nsAString& aFileNameForDisplay) = 0;
/* attribute DataTransfer dataTransfer; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_dataTransfer)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDataTransfer(mozilla::dom::DataTransfer **aDataTransfer) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_dataTransfer)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) = 0;
/* readonly attribute nsITransferable transferable; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_transferable)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTransferable(nsITransferable **aTransferable) = 0;
/* readonly attribute AString textContent; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_textContent)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTextContent(nsAString& aTextContent) = 0;
/* readonly attribute AString filePath; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_filePath)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilePath(nsAString& aFilePath) = 0;
/* Array<octet> getPrintData (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisRequest_getPrintData)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrintData(nsTArray<uint8_t >& _retval) = 0;
/* readonly attribute AString printerName; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_printerName)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrinterName(nsAString& aPrinterName) = 0;
/* readonly attribute nsIURI url; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_url)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUrl(nsIURI **aUrl) = 0;
/* readonly attribute ACString sha256Digest; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_sha256Digest)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSha256Digest(nsACString& aSha256Digest) = 0;
/* readonly attribute Array<nsIClientDownloadResource> resources; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_resources)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetResources(nsTArray<RefPtr<nsIClientDownloadResource>>& aResources) = 0;
/* readonly attribute AString email; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_email)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEmail(nsAString& aEmail) = 0;
/* attribute ACString requestToken; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_requestToken)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRequestToken(nsACString& aRequestToken) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_requestToken)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRequestToken(const nsACString& aRequestToken) = 0;
/* readonly attribute WindowGlobalParent windowGlobalParent; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_windowGlobalParent)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWindowGlobalParent(mozilla::dom::WindowGlobalParent **aWindowGlobalParent) = 0;
/* attribute ACString userActionId; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_userActionId)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUserActionId(nsACString& aUserActionId) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_userActionId)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUserActionId(const nsACString& aUserActionId) = 0;
/* attribute int64_t userActionRequestsCount; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_userActionRequestsCount)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUserActionRequestsCount(int64_t *aUserActionRequestsCount) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_userActionRequestsCount)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUserActionRequestsCount(int64_t aUserActionRequestsCount) = 0;
/* readonly attribute WindowGlobalParent sourceWindowGlobal; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_sourceWindowGlobal)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSourceWindowGlobal(mozilla::dom::WindowGlobalParent **aSourceWindowGlobal) = 0;
/* attribute uint32_t timeoutMultiplier; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_timeoutMultiplier)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimeoutMultiplier(uint32_t *aTimeoutMultiplier) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_timeoutMultiplier)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTimeoutMultiplier(uint32_t aTimeoutMultiplier) = 0;
/* attribute boolean testOnlyIgnoreCanceledAndAlwaysSubmitToAgent; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_testOnlyIgnoreCanceledAndAlwaysSubmitToAgent)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool *aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_testOnlyIgnoreCanceledAndAlwaysSubmitToAgent)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISREQUEST \
NS_IMETHOD GetAnalysisType(nsIContentAnalysisRequest::AnalysisType *aAnalysisType) override; \
NS_IMETHOD GetReason(nsIContentAnalysisRequest::Reason *aReason) override; \
NS_IMETHOD GetOperationTypeForDisplay(nsIContentAnalysisRequest::OperationType *aOperationTypeForDisplay) override; \
NS_IMETHOD GetFileNameForDisplay(nsAString& aFileNameForDisplay) override; \
NS_IMETHOD GetDataTransfer(mozilla::dom::DataTransfer **aDataTransfer) override; \
NS_IMETHOD SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) override; \
NS_IMETHOD GetTransferable(nsITransferable **aTransferable) override; \
NS_IMETHOD GetTextContent(nsAString& aTextContent) override; \
NS_IMETHOD GetFilePath(nsAString& aFilePath) override; \
NS_IMETHOD GetPrintData(nsTArray<uint8_t >& _retval) override; \
NS_IMETHOD GetPrinterName(nsAString& aPrinterName) override; \
NS_IMETHOD GetUrl(nsIURI **aUrl) override; \
NS_IMETHOD GetSha256Digest(nsACString& aSha256Digest) override; \
NS_IMETHOD GetResources(nsTArray<RefPtr<nsIClientDownloadResource>>& aResources) override; \
NS_IMETHOD GetEmail(nsAString& aEmail) override; \
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) override; \
NS_IMETHOD SetRequestToken(const nsACString& aRequestToken) override; \
NS_IMETHOD GetWindowGlobalParent(mozilla::dom::WindowGlobalParent **aWindowGlobalParent) override; \
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) override; \
NS_IMETHOD SetUserActionId(const nsACString& aUserActionId) override; \
NS_IMETHOD GetUserActionRequestsCount(int64_t *aUserActionRequestsCount) override; \
NS_IMETHOD SetUserActionRequestsCount(int64_t aUserActionRequestsCount) override; \
NS_IMETHOD GetSourceWindowGlobal(mozilla::dom::WindowGlobalParent **aSourceWindowGlobal) override; \
NS_IMETHOD GetTimeoutMultiplier(uint32_t *aTimeoutMultiplier) override; \
NS_IMETHOD SetTimeoutMultiplier(uint32_t aTimeoutMultiplier) override; \
NS_IMETHOD GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool *aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) override; \
NS_IMETHOD SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) 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_NSICONTENTANALYSISREQUEST \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_analysisType)\
nsresult GetAnalysisType(nsIContentAnalysisRequest::AnalysisType *aAnalysisType); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_reason)\
nsresult GetReason(nsIContentAnalysisRequest::Reason *aReason); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_operationTypeForDisplay)\
nsresult GetOperationTypeForDisplay(nsIContentAnalysisRequest::OperationType *aOperationTypeForDisplay); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_fileNameForDisplay)\
nsresult GetFileNameForDisplay(nsAString& aFileNameForDisplay); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_dataTransfer)\
nsresult GetDataTransfer(mozilla::dom::DataTransfer **aDataTransfer); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_dataTransfer)\
nsresult SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_transferable)\
nsresult GetTransferable(nsITransferable **aTransferable); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_textContent)\
nsresult GetTextContent(nsAString& aTextContent); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_filePath)\
nsresult GetFilePath(nsAString& aFilePath); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisRequest_getPrintData)\
nsresult GetPrintData(nsTArray<uint8_t >& _retval); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_printerName)\
nsresult GetPrinterName(nsAString& aPrinterName); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_url)\
nsresult GetUrl(nsIURI **aUrl); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_sha256Digest)\
nsresult GetSha256Digest(nsACString& aSha256Digest); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_resources)\
nsresult GetResources(nsTArray<RefPtr<nsIClientDownloadResource>>& aResources); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_email)\
nsresult GetEmail(nsAString& aEmail); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_requestToken)\
nsresult GetRequestToken(nsACString& aRequestToken); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_requestToken)\
nsresult SetRequestToken(const nsACString& aRequestToken); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_windowGlobalParent)\
nsresult GetWindowGlobalParent(mozilla::dom::WindowGlobalParent **aWindowGlobalParent); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_userActionId)\
nsresult GetUserActionId(nsACString& aUserActionId); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_userActionId)\
nsresult SetUserActionId(const nsACString& aUserActionId); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_userActionRequestsCount)\
nsresult GetUserActionRequestsCount(int64_t *aUserActionRequestsCount); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_userActionRequestsCount)\
nsresult SetUserActionRequestsCount(int64_t aUserActionRequestsCount); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_sourceWindowGlobal)\
nsresult GetSourceWindowGlobal(mozilla::dom::WindowGlobalParent **aSourceWindowGlobal); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_timeoutMultiplier)\
nsresult GetTimeoutMultiplier(uint32_t *aTimeoutMultiplier); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_timeoutMultiplier)\
nsresult SetTimeoutMultiplier(uint32_t aTimeoutMultiplier); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRequest_testOnlyIgnoreCanceledAndAlwaysSubmitToAgent)\
nsresult GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool *aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysisRequest_testOnlyIgnoreCanceledAndAlwaysSubmitToAgent)\
nsresult SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISREQUEST(_to) \
NS_IMETHOD GetAnalysisType(nsIContentAnalysisRequest::AnalysisType *aAnalysisType) override { return _to GetAnalysisType(aAnalysisType); } \
NS_IMETHOD GetReason(nsIContentAnalysisRequest::Reason *aReason) override { return _to GetReason(aReason); } \
NS_IMETHOD GetOperationTypeForDisplay(nsIContentAnalysisRequest::OperationType *aOperationTypeForDisplay) override { return _to GetOperationTypeForDisplay(aOperationTypeForDisplay); } \
NS_IMETHOD GetFileNameForDisplay(nsAString& aFileNameForDisplay) override { return _to GetFileNameForDisplay(aFileNameForDisplay); } \
NS_IMETHOD GetDataTransfer(mozilla::dom::DataTransfer **aDataTransfer) override { return _to GetDataTransfer(aDataTransfer); } \
NS_IMETHOD SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) override { return _to SetDataTransfer(aDataTransfer); } \
NS_IMETHOD GetTransferable(nsITransferable **aTransferable) override { return _to GetTransferable(aTransferable); } \
NS_IMETHOD GetTextContent(nsAString& aTextContent) override { return _to GetTextContent(aTextContent); } \
NS_IMETHOD GetFilePath(nsAString& aFilePath) override { return _to GetFilePath(aFilePath); } \
NS_IMETHOD GetPrintData(nsTArray<uint8_t >& _retval) override { return _to GetPrintData(_retval); } \
NS_IMETHOD GetPrinterName(nsAString& aPrinterName) override { return _to GetPrinterName(aPrinterName); } \
NS_IMETHOD GetUrl(nsIURI **aUrl) override { return _to GetUrl(aUrl); } \
NS_IMETHOD GetSha256Digest(nsACString& aSha256Digest) override { return _to GetSha256Digest(aSha256Digest); } \
NS_IMETHOD GetResources(nsTArray<RefPtr<nsIClientDownloadResource>>& aResources) override { return _to GetResources(aResources); } \
NS_IMETHOD GetEmail(nsAString& aEmail) override { return _to GetEmail(aEmail); } \
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) override { return _to GetRequestToken(aRequestToken); } \
NS_IMETHOD SetRequestToken(const nsACString& aRequestToken) override { return _to SetRequestToken(aRequestToken); } \
NS_IMETHOD GetWindowGlobalParent(mozilla::dom::WindowGlobalParent **aWindowGlobalParent) override { return _to GetWindowGlobalParent(aWindowGlobalParent); } \
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) override { return _to GetUserActionId(aUserActionId); } \
NS_IMETHOD SetUserActionId(const nsACString& aUserActionId) override { return _to SetUserActionId(aUserActionId); } \
NS_IMETHOD GetUserActionRequestsCount(int64_t *aUserActionRequestsCount) override { return _to GetUserActionRequestsCount(aUserActionRequestsCount); } \
NS_IMETHOD SetUserActionRequestsCount(int64_t aUserActionRequestsCount) override { return _to SetUserActionRequestsCount(aUserActionRequestsCount); } \
NS_IMETHOD GetSourceWindowGlobal(mozilla::dom::WindowGlobalParent **aSourceWindowGlobal) override { return _to GetSourceWindowGlobal(aSourceWindowGlobal); } \
NS_IMETHOD GetTimeoutMultiplier(uint32_t *aTimeoutMultiplier) override { return _to GetTimeoutMultiplier(aTimeoutMultiplier); } \
NS_IMETHOD SetTimeoutMultiplier(uint32_t aTimeoutMultiplier) override { return _to SetTimeoutMultiplier(aTimeoutMultiplier); } \
NS_IMETHOD GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool *aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) override { return _to GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent); } \
NS_IMETHOD SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) override { return _to SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISREQUEST(_to) \
NS_IMETHOD GetAnalysisType(nsIContentAnalysisRequest::AnalysisType *aAnalysisType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnalysisType(aAnalysisType); } \
NS_IMETHOD GetReason(nsIContentAnalysisRequest::Reason *aReason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReason(aReason); } \
NS_IMETHOD GetOperationTypeForDisplay(nsIContentAnalysisRequest::OperationType *aOperationTypeForDisplay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperationTypeForDisplay(aOperationTypeForDisplay); } \
NS_IMETHOD GetFileNameForDisplay(nsAString& aFileNameForDisplay) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileNameForDisplay(aFileNameForDisplay); } \
NS_IMETHOD GetDataTransfer(mozilla::dom::DataTransfer **aDataTransfer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataTransfer(aDataTransfer); } \
NS_IMETHOD SetDataTransfer(mozilla::dom::DataTransfer *aDataTransfer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDataTransfer(aDataTransfer); } \
NS_IMETHOD GetTransferable(nsITransferable **aTransferable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransferable(aTransferable); } \
NS_IMETHOD GetTextContent(nsAString& aTextContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextContent(aTextContent); } \
NS_IMETHOD GetFilePath(nsAString& aFilePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilePath(aFilePath); } \
NS_IMETHOD GetPrintData(nsTArray<uint8_t >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintData(_retval); } \
NS_IMETHOD GetPrinterName(nsAString& aPrinterName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrinterName(aPrinterName); } \
NS_IMETHOD GetUrl(nsIURI **aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
NS_IMETHOD GetSha256Digest(nsACString& aSha256Digest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSha256Digest(aSha256Digest); } \
NS_IMETHOD GetResources(nsTArray<RefPtr<nsIClientDownloadResource>>& aResources) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResources(aResources); } \
NS_IMETHOD GetEmail(nsAString& aEmail) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmail(aEmail); } \
NS_IMETHOD GetRequestToken(nsACString& aRequestToken) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestToken(aRequestToken); } \
NS_IMETHOD SetRequestToken(const nsACString& aRequestToken) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestToken(aRequestToken); } \
NS_IMETHOD GetWindowGlobalParent(mozilla::dom::WindowGlobalParent **aWindowGlobalParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowGlobalParent(aWindowGlobalParent); } \
NS_IMETHOD GetUserActionId(nsACString& aUserActionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserActionId(aUserActionId); } \
NS_IMETHOD SetUserActionId(const nsACString& aUserActionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserActionId(aUserActionId); } \
NS_IMETHOD GetUserActionRequestsCount(int64_t *aUserActionRequestsCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserActionRequestsCount(aUserActionRequestsCount); } \
NS_IMETHOD SetUserActionRequestsCount(int64_t aUserActionRequestsCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUserActionRequestsCount(aUserActionRequestsCount); } \
NS_IMETHOD GetSourceWindowGlobal(mozilla::dom::WindowGlobalParent **aSourceWindowGlobal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceWindowGlobal(aSourceWindowGlobal); } \
NS_IMETHOD GetTimeoutMultiplier(uint32_t *aTimeoutMultiplier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeoutMultiplier(aTimeoutMultiplier); } \
NS_IMETHOD SetTimeoutMultiplier(uint32_t aTimeoutMultiplier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeoutMultiplier(aTimeoutMultiplier); } \
NS_IMETHOD GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool *aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent); } \
NS_IMETHOD SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(bool aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent(aTestOnlyIgnoreCanceledAndAlwaysSubmitToAgent); }
/* starting interface: nsIContentAnalysisCallback */
#define NS_ICONTENTANALYSISCALLBACK_IID_STR "cb09fc88-118c-411b-aa89-2e1bc5e3eba6"
#define NS_ICONTENTANALYSISCALLBACK_IID \
{0xcb09fc88, 0x118c, 0x411b, \
{ 0xaa, 0x89, 0x2e, 0x1b, 0xc5, 0xe3, 0xeb, 0xa6 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisCallback) nsIContentAnalysisCallback : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisCallback;
/* void contentResult (in nsIContentAnalysisResult aResult); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisCallback_contentResult)
NS_IMETHOD ContentResult(nsIContentAnalysisResult *aResult) = 0;
/* void error (in nsresult aResult); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisCallback_error)
NS_IMETHOD Error(nsresult aResult) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISCALLBACK \
NS_IMETHOD ContentResult(nsIContentAnalysisResult *aResult) override; \
NS_IMETHOD Error(nsresult aResult) 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_NSICONTENTANALYSISCALLBACK \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisCallback_contentResult)\
nsresult ContentResult(nsIContentAnalysisResult *aResult); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisCallback_error)\
nsresult Error(nsresult aResult);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISCALLBACK(_to) \
NS_IMETHOD ContentResult(nsIContentAnalysisResult *aResult) override { return _to ContentResult(aResult); } \
NS_IMETHOD Error(nsresult aResult) override { return _to Error(aResult); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISCALLBACK(_to) \
NS_IMETHOD ContentResult(nsIContentAnalysisResult *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContentResult(aResult); } \
NS_IMETHOD Error(nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Error(aResult); }
/* starting interface: nsIContentAnalysisDiagnosticInfo */
#define NS_ICONTENTANALYSISDIAGNOSTICINFO_IID_STR "a430f6ef-a526-4055-8a82-7741ea757367"
#define NS_ICONTENTANALYSISDIAGNOSTICINFO_IID \
{0xa430f6ef, 0xa526, 0x4055, \
{ 0x8a, 0x82, 0x77, 0x41, 0xea, 0x75, 0x73, 0x67 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisDiagnosticInfo) nsIContentAnalysisDiagnosticInfo : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISDIAGNOSTICINFO_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisDiagnosticInfo;
/* [infallible] readonly attribute boolean connectedToAgent; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_connectedToAgent)
NS_IMETHOD GetConnectedToAgent(bool *aConnectedToAgent) = 0;
inline bool GetConnectedToAgent()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetConnectedToAgent(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* readonly attribute AString agentPath; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_agentPath)
NS_IMETHOD GetAgentPath(nsAString& aAgentPath) = 0;
/* [infallible] readonly attribute boolean failedSignatureVerification; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_failedSignatureVerification)
NS_IMETHOD GetFailedSignatureVerification(bool *aFailedSignatureVerification) = 0;
inline bool GetFailedSignatureVerification()
{
bool result;
mozilla::DebugOnly<nsresult> rv = GetFailedSignatureVerification(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
/* [infallible] readonly attribute long long requestCount; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_requestCount)
NS_IMETHOD GetRequestCount(int64_t *aRequestCount) = 0;
inline int64_t GetRequestCount()
{
int64_t result;
mozilla::DebugOnly<nsresult> rv = GetRequestCount(&result);
MOZ_ASSERT(NS_SUCCEEDED(rv));
return result;
}
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISDIAGNOSTICINFO \
using nsIContentAnalysisDiagnosticInfo::GetConnectedToAgent; \
NS_IMETHOD GetConnectedToAgent(bool *aConnectedToAgent) override; \
NS_IMETHOD GetAgentPath(nsAString& aAgentPath) override; \
using nsIContentAnalysisDiagnosticInfo::GetFailedSignatureVerification; \
NS_IMETHOD GetFailedSignatureVerification(bool *aFailedSignatureVerification) override; \
using nsIContentAnalysisDiagnosticInfo::GetRequestCount; \
NS_IMETHOD GetRequestCount(int64_t *aRequestCount) 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_NSICONTENTANALYSISDIAGNOSTICINFO \
using nsIContentAnalysisDiagnosticInfo::GetConnectedToAgent; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_connectedToAgent)\
nsresult GetConnectedToAgent(bool *aConnectedToAgent); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_agentPath)\
nsresult GetAgentPath(nsAString& aAgentPath); \
using nsIContentAnalysisDiagnosticInfo::GetFailedSignatureVerification; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_failedSignatureVerification)\
nsresult GetFailedSignatureVerification(bool *aFailedSignatureVerification); \
using nsIContentAnalysisDiagnosticInfo::GetRequestCount; \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisDiagnosticInfo_requestCount)\
nsresult GetRequestCount(int64_t *aRequestCount);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISDIAGNOSTICINFO(_to) \
using nsIContentAnalysisDiagnosticInfo::GetConnectedToAgent; \
NS_IMETHOD GetConnectedToAgent(bool *aConnectedToAgent) override { return _to GetConnectedToAgent(aConnectedToAgent); } \
NS_IMETHOD GetAgentPath(nsAString& aAgentPath) override { return _to GetAgentPath(aAgentPath); } \
using nsIContentAnalysisDiagnosticInfo::GetFailedSignatureVerification; \
NS_IMETHOD GetFailedSignatureVerification(bool *aFailedSignatureVerification) override { return _to GetFailedSignatureVerification(aFailedSignatureVerification); } \
using nsIContentAnalysisDiagnosticInfo::GetRequestCount; \
NS_IMETHOD GetRequestCount(int64_t *aRequestCount) override { return _to GetRequestCount(aRequestCount); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISDIAGNOSTICINFO(_to) \
NS_IMETHOD GetConnectedToAgent(bool *aConnectedToAgent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectedToAgent(aConnectedToAgent); } \
NS_IMETHOD GetAgentPath(nsAString& aAgentPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAgentPath(aAgentPath); } \
NS_IMETHOD GetFailedSignatureVerification(bool *aFailedSignatureVerification) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailedSignatureVerification(aFailedSignatureVerification); } \
NS_IMETHOD GetRequestCount(int64_t *aRequestCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestCount(aRequestCount); }
/* starting interface: nsIContentAnalysis */
#define NS_ICONTENTANALYSIS_IID_STR "61497587-2bba-4a88-acd3-3fbb2cedf163"
#define NS_ICONTENTANALYSIS_IID \
{0x61497587, 0x2bba, 0x4a88, \
{ 0xac, 0xd3, 0x3f, 0xbb, 0x2c, 0xed, 0xf1, 0x63 }}
class MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysis) nsIContentAnalysis : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSIS_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysis;
/* readonly attribute boolean isActive; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysis_isActive)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsActive(bool *aIsActive) = 0;
/* readonly attribute boolean mightBeActive; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysis_mightBeActive)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMightBeActive(bool *aMightBeActive) = 0;
// %{C++:305-308
/**
* Static way to get the mightBeActive property.
*/
static bool MightBeActive();
// %}
/* attribute boolean isSetByEnterprisePolicy; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysis_isSetByEnterprisePolicy)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsSetByEnterprisePolicy(bool *aIsSetByEnterprisePolicy) = 0;
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysis_isSetByEnterprisePolicy)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsSetByEnterprisePolicy(bool aIsSetByEnterprisePolicy) = 0;
/* [implicit_jscontext] Promise analyzeContentRequests (in Array<nsIContentAnalysisRequest> aCars, in boolean aAutoAcknowledge); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeContentRequests)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AnalyzeContentRequests(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* void analyzeContentRequestsCallback (in Array<nsIContentAnalysisRequest> aCars, in boolean aAutoAcknowledge, in nsIContentAnalysisCallback callback); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeContentRequestsCallback)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AnalyzeContentRequestsCallback(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, nsIContentAnalysisCallback *callback) = 0;
/* [implicit_jscontext] Promise analyzeBatchContentRequest (in nsIContentAnalysisRequest aCar, in boolean aAutoAcknowledge); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeBatchContentRequest)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AnalyzeBatchContentRequest(nsIContentAnalysisRequest *aCar, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* void analyzeContentRequestPrivate (in nsIContentAnalysisRequest aRequest, in boolean aAutoAcknowledge, in nsIContentAnalysisCallback aCallback); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeContentRequestPrivate)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AnalyzeContentRequestPrivate(nsIContentAnalysisRequest *aRequest, bool aAutoAcknowledge, nsIContentAnalysisCallback *aCallback) = 0;
/* void cancelRequestsByUserAction (in ACString aUserActionId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_cancelRequestsByUserAction)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelRequestsByUserAction(const nsACString& aUserActionId) = 0;
/* void cancelAllRequestsAssociatedWithUserAction (in ACString aUserActionId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_cancelAllRequestsAssociatedWithUserAction)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelAllRequestsAssociatedWithUserAction(const nsACString& aUserActionId) = 0;
/* void respondToWarnDialog (in ACString aRequestToken, in boolean aAllowContent); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_respondToWarnDialog)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RespondToWarnDialog(const nsACString& aRequestToken, bool aAllowContent) = 0;
/* void cancelAllRequests ([optional] in boolean aForbidFutureRequests); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_cancelAllRequests)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CancelAllRequests(bool aForbidFutureRequests) = 0;
/* void testOnlySetCACmdLineArg (in boolean aVal); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_testOnlySetCACmdLineArg)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestOnlySetCACmdLineArg(bool aVal) = 0;
/* [implicit_jscontext] Promise getDiagnosticInfo (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getDiagnosticInfo)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDiagnosticInfo(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* nsIURI getURIForBrowsingContext (in BrowsingContext aBrowsingContext); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getURIForBrowsingContext)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURIForBrowsingContext(mozilla::dom::BrowsingContext *aBrowsingContext, nsIURI **_retval) = 0;
/* nsIURI getURIForDropEvent (in DragEvent aEvent); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getURIForDropEvent)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetURIForDropEvent(mozilla::dom::DragEvent *aEvent, nsIURI **_retval) = 0;
/* void setCachedResponse (in nsIURI aURI, in int32_t aSequenceNumber, in nsIContentAnalysisResponse_Action aAction); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_setCachedResponse)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action aAction) = 0;
/* void getCachedResponse (in nsIURI aURI, in int32_t aSequenceNumber, out nsIContentAnalysisResponse_Action aAction, out boolean aIsValid); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getCachedResponse)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action *aAction, bool *aIsValid) = 0;
/* void showBlockedRequestDialog (in nsIContentAnalysisRequest aRequest); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_showBlockedRequestDialog)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShowBlockedRequestDialog(nsIContentAnalysisRequest *aRequest) = 0;
/* nsIContentAnalysisResponse makeResponseForTest (in nsIContentAnalysisResponse_Action aAction, in ACString aToken, in ACString aUserActionId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_makeResponseForTest)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MakeResponseForTest(nsIContentAnalysisResponse::Action aAction, const nsACString& aToken, const nsACString& aUserActionId, nsIContentAnalysisResponse **_retval) = 0;
/* void sendCancelToAgent (in ACString aUserActionId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_sendCancelToAgent)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendCancelToAgent(const nsACString& aUserActionId) = 0;
/* void forceRecreateClientForTest (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_forceRecreateClientForTest)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForceRecreateClientForTest(void) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSIS \
NS_IMETHOD GetIsActive(bool *aIsActive) override; \
NS_IMETHOD GetMightBeActive(bool *aMightBeActive) override; \
NS_IMETHOD GetIsSetByEnterprisePolicy(bool *aIsSetByEnterprisePolicy) override; \
NS_IMETHOD SetIsSetByEnterprisePolicy(bool aIsSetByEnterprisePolicy) override; \
NS_IMETHOD AnalyzeContentRequests(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD AnalyzeContentRequestsCallback(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, nsIContentAnalysisCallback *callback) override; \
NS_IMETHOD AnalyzeBatchContentRequest(nsIContentAnalysisRequest *aCar, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD AnalyzeContentRequestPrivate(nsIContentAnalysisRequest *aRequest, bool aAutoAcknowledge, nsIContentAnalysisCallback *aCallback) override; \
NS_IMETHOD CancelRequestsByUserAction(const nsACString& aUserActionId) override; \
NS_IMETHOD CancelAllRequestsAssociatedWithUserAction(const nsACString& aUserActionId) override; \
NS_IMETHOD RespondToWarnDialog(const nsACString& aRequestToken, bool aAllowContent) override; \
NS_IMETHOD CancelAllRequests(bool aForbidFutureRequests) override; \
NS_IMETHOD TestOnlySetCACmdLineArg(bool aVal) override; \
NS_IMETHOD GetDiagnosticInfo(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD GetURIForBrowsingContext(mozilla::dom::BrowsingContext *aBrowsingContext, nsIURI **_retval) override; \
NS_IMETHOD GetURIForDropEvent(mozilla::dom::DragEvent *aEvent, nsIURI **_retval) override; \
NS_IMETHOD SetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action aAction) override; \
NS_IMETHOD GetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action *aAction, bool *aIsValid) override; \
NS_IMETHOD ShowBlockedRequestDialog(nsIContentAnalysisRequest *aRequest) override; \
NS_IMETHOD MakeResponseForTest(nsIContentAnalysisResponse::Action aAction, const nsACString& aToken, const nsACString& aUserActionId, nsIContentAnalysisResponse **_retval) override; \
NS_IMETHOD SendCancelToAgent(const nsACString& aUserActionId) override; \
NS_IMETHOD ForceRecreateClientForTest(void) 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_NSICONTENTANALYSIS \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysis_isActive)\
nsresult GetIsActive(bool *aIsActive); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysis_mightBeActive)\
nsresult GetMightBeActive(bool *aMightBeActive); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysis_isSetByEnterprisePolicy)\
nsresult GetIsSetByEnterprisePolicy(bool *aIsSetByEnterprisePolicy); \
MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIContentAnalysis_isSetByEnterprisePolicy)\
nsresult SetIsSetByEnterprisePolicy(bool aIsSetByEnterprisePolicy); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeContentRequests)\
nsresult AnalyzeContentRequests(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeContentRequestsCallback)\
nsresult AnalyzeContentRequestsCallback(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, nsIContentAnalysisCallback *callback); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeBatchContentRequest)\
nsresult AnalyzeBatchContentRequest(nsIContentAnalysisRequest *aCar, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_analyzeContentRequestPrivate)\
nsresult AnalyzeContentRequestPrivate(nsIContentAnalysisRequest *aRequest, bool aAutoAcknowledge, nsIContentAnalysisCallback *aCallback); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_cancelRequestsByUserAction)\
nsresult CancelRequestsByUserAction(const nsACString& aUserActionId); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_cancelAllRequestsAssociatedWithUserAction)\
nsresult CancelAllRequestsAssociatedWithUserAction(const nsACString& aUserActionId); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_respondToWarnDialog)\
nsresult RespondToWarnDialog(const nsACString& aRequestToken, bool aAllowContent); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_cancelAllRequests)\
nsresult CancelAllRequests(bool aForbidFutureRequests); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_testOnlySetCACmdLineArg)\
nsresult TestOnlySetCACmdLineArg(bool aVal); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getDiagnosticInfo)\
nsresult GetDiagnosticInfo(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getURIForBrowsingContext)\
nsresult GetURIForBrowsingContext(mozilla::dom::BrowsingContext *aBrowsingContext, nsIURI **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getURIForDropEvent)\
nsresult GetURIForDropEvent(mozilla::dom::DragEvent *aEvent, nsIURI **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_setCachedResponse)\
nsresult SetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action aAction); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_getCachedResponse)\
nsresult GetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action *aAction, bool *aIsValid); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_showBlockedRequestDialog)\
nsresult ShowBlockedRequestDialog(nsIContentAnalysisRequest *aRequest); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_makeResponseForTest)\
nsresult MakeResponseForTest(nsIContentAnalysisResponse::Action aAction, const nsACString& aToken, const nsACString& aUserActionId, nsIContentAnalysisResponse **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_sendCancelToAgent)\
nsresult SendCancelToAgent(const nsACString& aUserActionId); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysis_forceRecreateClientForTest)\
nsresult ForceRecreateClientForTest(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSIS(_to) \
NS_IMETHOD GetIsActive(bool *aIsActive) override { return _to GetIsActive(aIsActive); } \
NS_IMETHOD GetMightBeActive(bool *aMightBeActive) override { return _to GetMightBeActive(aMightBeActive); } \
NS_IMETHOD GetIsSetByEnterprisePolicy(bool *aIsSetByEnterprisePolicy) override { return _to GetIsSetByEnterprisePolicy(aIsSetByEnterprisePolicy); } \
NS_IMETHOD SetIsSetByEnterprisePolicy(bool aIsSetByEnterprisePolicy) override { return _to SetIsSetByEnterprisePolicy(aIsSetByEnterprisePolicy); } \
NS_IMETHOD AnalyzeContentRequests(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AnalyzeContentRequests(aCars, aAutoAcknowledge, cx, _retval); } \
NS_IMETHOD AnalyzeContentRequestsCallback(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, nsIContentAnalysisCallback *callback) override { return _to AnalyzeContentRequestsCallback(aCars, aAutoAcknowledge, callback); } \
NS_IMETHOD AnalyzeBatchContentRequest(nsIContentAnalysisRequest *aCar, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to AnalyzeBatchContentRequest(aCar, aAutoAcknowledge, cx, _retval); } \
NS_IMETHOD AnalyzeContentRequestPrivate(nsIContentAnalysisRequest *aRequest, bool aAutoAcknowledge, nsIContentAnalysisCallback *aCallback) override { return _to AnalyzeContentRequestPrivate(aRequest, aAutoAcknowledge, aCallback); } \
NS_IMETHOD CancelRequestsByUserAction(const nsACString& aUserActionId) override { return _to CancelRequestsByUserAction(aUserActionId); } \
NS_IMETHOD CancelAllRequestsAssociatedWithUserAction(const nsACString& aUserActionId) override { return _to CancelAllRequestsAssociatedWithUserAction(aUserActionId); } \
NS_IMETHOD RespondToWarnDialog(const nsACString& aRequestToken, bool aAllowContent) override { return _to RespondToWarnDialog(aRequestToken, aAllowContent); } \
NS_IMETHOD CancelAllRequests(bool aForbidFutureRequests) override { return _to CancelAllRequests(aForbidFutureRequests); } \
NS_IMETHOD TestOnlySetCACmdLineArg(bool aVal) override { return _to TestOnlySetCACmdLineArg(aVal); } \
NS_IMETHOD GetDiagnosticInfo(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to GetDiagnosticInfo(cx, _retval); } \
NS_IMETHOD GetURIForBrowsingContext(mozilla::dom::BrowsingContext *aBrowsingContext, nsIURI **_retval) override { return _to GetURIForBrowsingContext(aBrowsingContext, _retval); } \
NS_IMETHOD GetURIForDropEvent(mozilla::dom::DragEvent *aEvent, nsIURI **_retval) override { return _to GetURIForDropEvent(aEvent, _retval); } \
NS_IMETHOD SetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action aAction) override { return _to SetCachedResponse(aURI, aSequenceNumber, aAction); } \
NS_IMETHOD GetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action *aAction, bool *aIsValid) override { return _to GetCachedResponse(aURI, aSequenceNumber, aAction, aIsValid); } \
NS_IMETHOD ShowBlockedRequestDialog(nsIContentAnalysisRequest *aRequest) override { return _to ShowBlockedRequestDialog(aRequest); } \
NS_IMETHOD MakeResponseForTest(nsIContentAnalysisResponse::Action aAction, const nsACString& aToken, const nsACString& aUserActionId, nsIContentAnalysisResponse **_retval) override { return _to MakeResponseForTest(aAction, aToken, aUserActionId, _retval); } \
NS_IMETHOD SendCancelToAgent(const nsACString& aUserActionId) override { return _to SendCancelToAgent(aUserActionId); } \
NS_IMETHOD ForceRecreateClientForTest(void) override { return _to ForceRecreateClientForTest(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSIS(_to) \
NS_IMETHOD GetIsActive(bool *aIsActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsActive(aIsActive); } \
NS_IMETHOD GetMightBeActive(bool *aMightBeActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMightBeActive(aMightBeActive); } \
NS_IMETHOD GetIsSetByEnterprisePolicy(bool *aIsSetByEnterprisePolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSetByEnterprisePolicy(aIsSetByEnterprisePolicy); } \
NS_IMETHOD SetIsSetByEnterprisePolicy(bool aIsSetByEnterprisePolicy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsSetByEnterprisePolicy(aIsSetByEnterprisePolicy); } \
NS_IMETHOD AnalyzeContentRequests(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AnalyzeContentRequests(aCars, aAutoAcknowledge, cx, _retval); } \
NS_IMETHOD AnalyzeContentRequestsCallback(const nsTArray<RefPtr<nsIContentAnalysisRequest>>& aCars, bool aAutoAcknowledge, nsIContentAnalysisCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AnalyzeContentRequestsCallback(aCars, aAutoAcknowledge, callback); } \
NS_IMETHOD AnalyzeBatchContentRequest(nsIContentAnalysisRequest *aCar, bool aAutoAcknowledge, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AnalyzeBatchContentRequest(aCar, aAutoAcknowledge, cx, _retval); } \
NS_IMETHOD AnalyzeContentRequestPrivate(nsIContentAnalysisRequest *aRequest, bool aAutoAcknowledge, nsIContentAnalysisCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AnalyzeContentRequestPrivate(aRequest, aAutoAcknowledge, aCallback); } \
NS_IMETHOD CancelRequestsByUserAction(const nsACString& aUserActionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelRequestsByUserAction(aUserActionId); } \
NS_IMETHOD CancelAllRequestsAssociatedWithUserAction(const nsACString& aUserActionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelAllRequestsAssociatedWithUserAction(aUserActionId); } \
NS_IMETHOD RespondToWarnDialog(const nsACString& aRequestToken, bool aAllowContent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RespondToWarnDialog(aRequestToken, aAllowContent); } \
NS_IMETHOD CancelAllRequests(bool aForbidFutureRequests) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelAllRequests(aForbidFutureRequests); } \
NS_IMETHOD TestOnlySetCACmdLineArg(bool aVal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestOnlySetCACmdLineArg(aVal); } \
NS_IMETHOD GetDiagnosticInfo(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDiagnosticInfo(cx, _retval); } \
NS_IMETHOD GetURIForBrowsingContext(mozilla::dom::BrowsingContext *aBrowsingContext, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIForBrowsingContext(aBrowsingContext, _retval); } \
NS_IMETHOD GetURIForDropEvent(mozilla::dom::DragEvent *aEvent, nsIURI **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURIForDropEvent(aEvent, _retval); } \
NS_IMETHOD SetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action aAction) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCachedResponse(aURI, aSequenceNumber, aAction); } \
NS_IMETHOD GetCachedResponse(nsIURI *aURI, int32_t aSequenceNumber, nsIContentAnalysisResponse::Action *aAction, bool *aIsValid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCachedResponse(aURI, aSequenceNumber, aAction, aIsValid); } \
NS_IMETHOD ShowBlockedRequestDialog(nsIContentAnalysisRequest *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowBlockedRequestDialog(aRequest); } \
NS_IMETHOD MakeResponseForTest(nsIContentAnalysisResponse::Action aAction, const nsACString& aToken, const nsACString& aUserActionId, nsIContentAnalysisResponse **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MakeResponseForTest(aAction, aToken, aUserActionId, _retval); } \
NS_IMETHOD SendCancelToAgent(const nsACString& aUserActionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendCancelToAgent(aUserActionId); } \
NS_IMETHOD ForceRecreateClientForTest(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceRecreateClientForTest(); }
/* starting interface: nsIContentAnalysisRule */
#define NS_ICONTENTANALYSISRULE_IID_STR "b7e6d5c4-3a2f-4e1d-8c9b-0a1f2e3d4c5b"
#define NS_ICONTENTANALYSISRULE_IID \
{0xb7e6d5c4, 0x3a2f, 0x4e1d, \
{ 0x8c, 0x9b, 0x0a, 0x1f, 0x2e, 0x3d, 0x4c, 0x5b }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisRule) nsIContentAnalysisRule : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISRULE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisRule;
enum {
REPORT MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRule_REPORT) = 0U,
WARN MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRule_WARN) = 1U,
BLOCK MOZ_BINDING(binding_to, idl, const, XPIDL_nsIContentAnalysisRule_BLOCK) = 2U
};
/* readonly attribute AString name; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_name)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetName(nsAString& aName) = 0;
/* readonly attribute Array<unsigned long> operations; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_operations)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOperations(nsTArray<uint32_t >& aOperations) = 0;
/* readonly attribute Array<AString> domains; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_domains)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDomains(nsTArray<nsString >& aDomains) = 0;
/* readonly attribute Array<AString> contentPatterns; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_contentPatterns)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentPatterns(nsTArray<nsString >& aContentPatterns) = 0;
/* readonly attribute octet verdict; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_verdict)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetVerdict(uint8_t *aVerdict) = 0;
/* readonly attribute AString message; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_message)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMessage(nsAString& aMessage) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISRULE \
NS_IMETHOD GetName(nsAString& aName) override; \
NS_IMETHOD GetOperations(nsTArray<uint32_t >& aOperations) override; \
NS_IMETHOD GetDomains(nsTArray<nsString >& aDomains) override; \
NS_IMETHOD GetContentPatterns(nsTArray<nsString >& aContentPatterns) override; \
NS_IMETHOD GetVerdict(uint8_t *aVerdict) override; \
NS_IMETHOD GetMessage(nsAString& aMessage) 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_NSICONTENTANALYSISRULE \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_name)\
nsresult GetName(nsAString& aName); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_operations)\
nsresult GetOperations(nsTArray<uint32_t >& aOperations); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_domains)\
nsresult GetDomains(nsTArray<nsString >& aDomains); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_contentPatterns)\
nsresult GetContentPatterns(nsTArray<nsString >& aContentPatterns); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_verdict)\
nsresult GetVerdict(uint8_t *aVerdict); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIContentAnalysisRule_message)\
nsresult GetMessage(nsAString& aMessage);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISRULE(_to) \
NS_IMETHOD GetName(nsAString& aName) override { return _to GetName(aName); } \
NS_IMETHOD GetOperations(nsTArray<uint32_t >& aOperations) override { return _to GetOperations(aOperations); } \
NS_IMETHOD GetDomains(nsTArray<nsString >& aDomains) override { return _to GetDomains(aDomains); } \
NS_IMETHOD GetContentPatterns(nsTArray<nsString >& aContentPatterns) override { return _to GetContentPatterns(aContentPatterns); } \
NS_IMETHOD GetVerdict(uint8_t *aVerdict) override { return _to GetVerdict(aVerdict); } \
NS_IMETHOD GetMessage(nsAString& aMessage) override { return _to GetMessage(aMessage); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTANALYSISRULE(_to) \
NS_IMETHOD GetName(nsAString& aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetOperations(nsTArray<uint32_t >& aOperations) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOperations(aOperations); } \
NS_IMETHOD GetDomains(nsTArray<nsString >& aDomains) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomains(aDomains); } \
NS_IMETHOD GetContentPatterns(nsTArray<nsString >& aContentPatterns) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentPatterns(aContentPatterns); } \
NS_IMETHOD GetVerdict(uint8_t *aVerdict) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVerdict(aVerdict); } \
NS_IMETHOD GetMessage(nsAString& aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); }
/* starting interface: nsIContentAnalysisWasmRunner */
#define NS_ICONTENTANALYSISWASMRUNNER_IID_STR "909ea37a-71a0-4454-82ec-98a64087fe22"
#define NS_ICONTENTANALYSISWASMRUNNER_IID \
{0x909ea37a, 0x71a0, 0x4454, \
{ 0x82, 0xec, 0x98, 0xa6, 0x40, 0x87, 0xfe, 0x22 }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentAnalysisWasmRunner) nsIContentAnalysisWasmRunner : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_ICONTENTANALYSISWASMRUNNER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentAnalysisWasmRunner;
/* Promise analyze (in Array<octet> aRequestBytes, in Array<octet> aContentBytes, in Array<nsIContentAnalysisRule> aRules); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisWasmRunner_analyze)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Analyze(const nsTArray<uint8_t >& aRequestBytes, const nsTArray<uint8_t >& aContentBytes, const nsTArray<RefPtr<nsIContentAnalysisRule>>& aRules, ::mozilla::dom::Promise * * _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTANALYSISWASMRUNNER \
NS_IMETHOD Analyze(const nsTArray<uint8_t >& aRequestBytes, const nsTArray<uint8_t >& aContentBytes, const nsTArray<RefPtr<nsIContentAnalysisRule>>& aRules, ::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_NSICONTENTANALYSISWASMRUNNER \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentAnalysisWasmRunner_analyze)\
nsresult Analyze(const nsTArray<uint8_t >& aRequestBytes, const nsTArray<uint8_t >& aContentBytes, const nsTArray<RefPtr<nsIContentAnalysisRule>>& aRules, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTANALYSISWASMRUNNER(_to) \
NS_IMETHOD Analyze(const nsTArray<uint8_t >& aRequestBytes, const nsTArray<uint8_t >& aContentBytes, const nsTArray<RefPtr<nsIContentAnalysisRule>>& aRules, ::mozilla::dom::Promise * * _retval) override { return _to Analyze(aRequestBytes, aContentBytes, aRules, _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_NSICONTENTANALYSISWASMRUNNER(_to) \
NS_IMETHOD Analyze(const nsTArray<uint8_t >& aRequestBytes, const nsTArray<uint8_t >& aContentBytes, const nsTArray<RefPtr<nsIContentAnalysisRule>>& aRules, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Analyze(aRequestBytes, aContentBytes, aRules, _retval); }
#endif /* __gen_nsIContentAnalysis_h__ */