Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/contentanalysis/nsIContentAnalysis.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIContentAnalysisAcknowledgement",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute nsIContentAnalysisAcknowledgement_Result result; */
Method {
name: "GetResult",
params: &[Param { name: "aResult", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIContentAnalysisAcknowledgement_FinalAction finalAction; */
Method {
name: "GetFinalAction",
params: &[Param { name: "aFinalAction", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIContentAnalysisResponse",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute nsIContentAnalysisResponse_Action action; */
Method {
name: "GetAction",
params: &[Param { name: "aAction", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean shouldAllowContent; */
Method {
name: "GetShouldAllowContent",
params: &[Param { name: "aShouldAllowContent", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIContentAnalysisResponse_CancelError cancelError; */
Method {
name: "GetCancelError",
params: &[Param { name: "aCancelError", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString requestToken; */
Method {
name: "GetRequestToken",
params: &[Param { name: "aRequestToken", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean isCachedResponse; */
Method {
name: "GetIsCachedResponse",
params: &[Param { name: "aIsCachedResponse", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void acknowledge (in nsIContentAnalysisAcknowledgement aCaa); */
Method {
name: "Acknowledge",
params: &[Param { name: "aCaa", ty: "*const nsIContentAnalysisAcknowledgement" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIClientDownloadResource",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute AString url; */
Method {
name: "GetUrl",
params: &[Param { name: "aUrl", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long type; */
Method {
name: "GetType",
params: &[Param { name: "aType", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIContentAnalysisRequest",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute nsIContentAnalysisRequest_AnalysisType analysisType; */
Method {
name: "GetAnalysisType",
params: &[Param { name: "aAnalysisType", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIContentAnalysisRequest_OperationType operationTypeForDisplay; */
Method {
name: "GetOperationTypeForDisplay",
params: &[Param { name: "aOperationTypeForDisplay", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString operationDisplayString; */
Method {
name: "GetOperationDisplayString",
params: &[Param { name: "aOperationDisplayString", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString textContent; */
Method {
name: "GetTextContent",
params: &[Param { name: "aTextContent", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString filePath; */
Method {
name: "GetFilePath",
params: &[Param { name: "aFilePath", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long long printDataHandle; */
Method {
name: "GetPrintDataHandle",
params: &[Param { name: "aPrintDataHandle", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long long printDataSize; */
Method {
name: "GetPrintDataSize",
params: &[Param { name: "aPrintDataSize", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString printerName; */
Method {
name: "GetPrinterName",
params: &[Param { name: "aPrinterName", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIURI url; */
Method {
name: "GetUrl",
params: &[Param { name: "aUrl", ty: "*mut*const nsIURI" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString sha256Digest; */
Method {
name: "GetSha256Digest",
params: &[Param { name: "aSha256Digest", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<nsIClientDownloadResource> resources; */
Method {
name: "GetResources",
params: &[Param { name: "aResources", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIClientDownloadResource>>>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString email; */
Method {
name: "GetEmail",
params: &[Param { name: "aEmail", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute ACString requestToken; */
Method {
name: "GetRequestToken",
params: &[Param { name: "aRequestToken", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute WindowGlobalParent windowGlobalParent; */
Method {
name: "GetWindowGlobalParent",
params: &[Param { name: "aWindowGlobalParent", ty: "*mut *const libc::c_void" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIContentAnalysisResult",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* [infallible] readonly attribute boolean shouldAllowContent; */
Method {
name: "GetShouldAllowContent",
params: &[Param { name: "aShouldAllowContent", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIContentAnalysisCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void contentResult (in nsIContentAnalysisResponse aResult); */
Method {
name: "ContentResult",
params: &[Param { name: "aResult", ty: "*const nsIContentAnalysisResponse" }],
ret: "::nserror::nsresult",
},
/* void error (in nsresult aResult); */
Method {
name: "Error",
params: &[Param { name: "aResult", ty: "nserror::nsresult" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIContentAnalysisDiagnosticInfo",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* [infallible] readonly attribute boolean connectedToAgent; */
Method {
name: "GetConnectedToAgent",
params: &[Param { name: "aConnectedToAgent", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString agentPath; */
Method {
name: "GetAgentPath",
params: &[Param { name: "aAgentPath", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* [infallible] readonly attribute boolean failedSignatureVerification; */
Method {
name: "GetFailedSignatureVerification",
params: &[Param { name: "aFailedSignatureVerification", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* [infallible] readonly attribute long long requestCount; */
Method {
name: "GetRequestCount",
params: &[Param { name: "aRequestCount", ty: "*mut i64" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIContentAnalysis",
base: Some("nsISupports"),
sync: false,
methods: Err("jscontext is unsupported"),
},
]; D}