Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/cookiebanners/nsICookieBannerService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsICookieBannerService",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute boolean isEnabled; */
Method {
name: "GetIsEnabled",
params: &[Param { name: "aIsEnabled", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<nsICookieBannerRule> rules; */
Method {
name: "GetRules",
params: &[Param { name: "aRules", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsICookieBannerRule>>>" }],
ret: "::nserror::nsresult",
},
/* void resetRules ([optional] in boolean doImport); */
Method {
name: "ResetRules",
params: &[Param { name: "doImport", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* Array<nsICookieRule> getCookiesForURI (in nsIURI aURI, in boolean aIsPrivateBrowsing); */
Method {
name: "GetCookiesForURI",
params: &[Param { name: "aURI", ty: "*const nsIURI" }, Param { name: "aIsPrivateBrowsing", ty: "bool" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsICookieRule>>>" }],
ret: "::nserror::nsresult",
},
/* Array<nsIClickRule> getClickRulesForDomain (in ACString aDomain, in boolean aIsTopLevel); */
Method {
name: "GetClickRulesForDomain",
params: &[Param { name: "aDomain", ty: "*const ::nsstring::nsACString" }, Param { name: "aIsTopLevel", ty: "bool" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIClickRule>>>" }],
ret: "::nserror::nsresult",
},
/* void insertRule (in nsICookieBannerRule aRule); */
Method {
name: "InsertRule",
params: &[Param { name: "aRule", ty: "*const nsICookieBannerRule" }],
ret: "::nserror::nsresult",
},
/* void removeRule (in nsICookieBannerRule aRule); */
Method {
name: "RemoveRule",
params: &[Param { name: "aRule", ty: "*const nsICookieBannerRule" }],
ret: "::nserror::nsresult",
},
/* boolean hasRuleForBrowsingContextTree (in BrowsingContext aBrowsingContext); */
Method {
name: "HasRuleForBrowsingContextTree",
params: &[Param { name: "aBrowsingContext", ty: "*const libc::c_void" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* nsICookieBannerService_Modes getDomainPref (in nsIURI aTopLevelURI, in boolean aIsPrivate); */
Method {
name: "GetDomainPref",
params: &[Param { name: "aTopLevelURI", ty: "*const nsIURI" }, Param { name: "aIsPrivate", ty: "bool" }, Param { name: "_retval", ty: "*mut u8" }],
ret: "::nserror::nsresult",
},
/* void setDomainPref (in nsIURI aTopLevelURI, in nsICookieBannerService_Modes aMode, in boolean aIsPrivate); */
Method {
name: "SetDomainPref",
params: &[Param { name: "aTopLevelURI", ty: "*const nsIURI" }, Param { name: "aMode", ty: " u8" }, Param { name: "aIsPrivate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void setDomainPrefAndPersistInPrivateBrowsing (in nsIURI aTopLevelURI, in nsICookieBannerService_Modes aMode); */
Method {
name: "SetDomainPrefAndPersistInPrivateBrowsing",
params: &[Param { name: "aTopLevelURI", ty: "*const nsIURI" }, Param { name: "aMode", ty: " u8" }],
ret: "::nserror::nsresult",
},
/* void removeDomainPref (in nsIURI aTopLevelURI, in boolean aIsPrivate); */
Method {
name: "RemoveDomainPref",
params: &[Param { name: "aTopLevelURI", ty: "*const nsIURI" }, Param { name: "aIsPrivate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void removeAllDomainPrefs (in boolean aIsPrivate); */
Method {
name: "RemoveAllDomainPrefs",
params: &[Param { name: "aIsPrivate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* boolean shouldStopBannerClickingForSite (in ACString aSite, in boolean aIsTopLevel, in boolean aIsPrivate); */
Method {
name: "ShouldStopBannerClickingForSite",
params: &[Param { name: "aSite", ty: "*const ::nsstring::nsACString" }, Param { name: "aIsTopLevel", ty: "bool" }, Param { name: "aIsPrivate", ty: "bool" }, Param { name: "_retval", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* void markSiteExecuted (in ACString aSite, in boolean aIsTopLevel, in boolean aIsPrivate); */
Method {
name: "MarkSiteExecuted",
params: &[Param { name: "aSite", ty: "*const ::nsstring::nsACString" }, Param { name: "aIsTopLevel", ty: "bool" }, Param { name: "aIsPrivate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void removeExecutedRecordForSite (in ACString aSite, in boolean aIsPrivate); */
Method {
name: "RemoveExecutedRecordForSite",
params: &[Param { name: "aSite", ty: "*const ::nsstring::nsACString" }, Param { name: "aIsPrivate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void removeAllExecutedRecords (in boolean aIsPrivate); */
Method {
name: "RemoveAllExecutedRecords",
params: &[Param { name: "aIsPrivate", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void resetDomainTelemetryRecord ([optional] in ACString aDomain); */
Method {
name: "ResetDomainTelemetryRecord",
params: &[Param { name: "aDomain", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}