Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/cookiebanners/nsICookieBannerRule.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsICookieBannerRule",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* attribute ACString id; */
Method {
name: "GetId",
params: &[Param { name: "aId", ty: "*mut ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetId",
params: &[Param { name: "aId", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* attribute Array<ACString> domains; */
Method {
name: "GetDomains",
params: &[Param { name: "aDomains", ty: "*mut thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetDomains",
params: &[Param { name: "aDomains", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<nsICookieRule> cookiesOptOut; */
Method {
name: "GetCookiesOptOut",
params: &[Param { name: "aCookiesOptOut", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsICookieRule>>>" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<nsICookieRule> cookiesOptIn; */
Method {
name: "GetCookiesOptIn",
params: &[Param { name: "aCookiesOptIn", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsICookieRule>>>" }],
ret: "::nserror::nsresult",
},
/* [infallible] readonly attribute boolean isGlobalRule; */
Method {
name: "GetIsGlobalRule",
params: &[Param { name: "aIsGlobalRule", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* [noscript] Array<nsICookieRule> getCookies (in boolean aIsOptOut, [optional] in ACString aDomain); */
Method {
name: "GetCookies",
params: &[Param { name: "aIsOptOut", ty: "bool" }, Param { name: "aDomain", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsICookieRule>>>" }],
ret: "::nserror::nsresult",
},
/* void clearCookies (); */
Method {
name: "ClearCookies",
params: &[],
ret: "::nserror::nsresult",
},
/* void addCookie (in boolean aIsOptOut, in ACString aName, in AUTF8String aValue, in AUTF8String aHost, in AUTF8String aPath, in int64_t aExpiryRelative, in AUTF8String aUnsetValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in int32_t aSameSite, in nsICookie_schemeType aSchemeMap); */
Method {
name: "AddCookie",
params: &[Param { name: "aIsOptOut", ty: "bool" }, Param { name: "aName", ty: "*const ::nsstring::nsACString" }, Param { name: "aValue", ty: "*const ::nsstring::nsACString" }, Param { name: "aHost", ty: "*const ::nsstring::nsACString" }, Param { name: "aPath", ty: "*const ::nsstring::nsACString" }, Param { name: "aExpiryRelative", ty: "i64" }, Param { name: "aUnsetValue", ty: "*const ::nsstring::nsACString" }, Param { name: "aIsSecure", ty: "bool" }, Param { name: "aIsHttpOnly", ty: "bool" }, Param { name: "aIsSession", ty: "bool" }, Param { name: "aSameSite", ty: "i32" }, Param { name: "aSchemeMap", ty: " u8" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIClickRule clickRule; */
Method {
name: "GetClickRule",
params: &[Param { name: "aClickRule", ty: "*mut *const nsIClickRule" }],
ret: "::nserror::nsresult",
},
/* void addClickRule (in ACString aPresence, [optional] in boolean aSkipPresenceVisibilityCheck, [optional] in nsIClickRule_RunContext aRunContext, [optional] in ACString aHide, [optional] in ACString aOptOut, [optional] in ACString aOptIn); */
Method {
name: "AddClickRule",
params: &[Param { name: "aPresence", ty: "*const ::nsstring::nsACString" }, Param { name: "aSkipPresenceVisibilityCheck", ty: "bool" }, Param { name: "aRunContext", ty: " u8" }, Param { name: "aHide", ty: "*const ::nsstring::nsACString" }, Param { name: "aOptOut", ty: "*const ::nsstring::nsACString" }, Param { name: "aOptIn", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void clearClickRule (); */
Method {
name: "ClearClickRule",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
]; D}