Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIPermissionManager.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIPermissionManager",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* Array<nsIPermission> getAllForPrincipal (in nsIPrincipal principal); */
Method {
name: "GetAllForPrincipal",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIPermission>>>" }],
ret: "::nserror::nsresult",
},
/* Array<nsIPermission> getAllWithTypePrefix (in ACString prefix); */
Method {
name: "GetAllWithTypePrefix",
params: &[Param { name: "prefix", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIPermission>>>" }],
ret: "::nserror::nsresult",
},
/* Array<nsIPermission> getAllByTypes (in Array<ACString> types); */
Method {
name: "GetAllByTypes",
params: &[Param { name: "types", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIPermission>>>" }],
ret: "::nserror::nsresult",
},
/* Array<nsIPermission> getAllByTypeSince (in ACString type, in int64_t since); */
Method {
name: "GetAllByTypeSince",
params: &[Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "since", ty: "i64" }, Param { name: "_retval", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIPermission>>>" }],
ret: "::nserror::nsresult",
},
/* void addFromPrincipal (in nsIPrincipal principal, in ACString type, in uint32_t permission, [optional] in uint32_t expireType, [optional] in int64_t expireTime); */
Method {
name: "AddFromPrincipal",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "permission", ty: "u32" }, Param { name: "expireType", ty: "u32" }, Param { name: "expireTime", ty: "i64" }],
ret: "::nserror::nsresult",
},
/* void testAddFromPrincipalByTime (in nsIPrincipal principal, in ACString type, in uint32_t permission, in int64_t modificationTime); */
Method {
name: "TestAddFromPrincipalByTime",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "permission", ty: "u32" }, Param { name: "modificationTime", ty: "i64" }],
ret: "::nserror::nsresult",
},
/* void addFromPrincipalAndPersistInPrivateBrowsing (in nsIPrincipal principal, in ACString type, in uint32_t permission); */
Method {
name: "AddFromPrincipalAndPersistInPrivateBrowsing",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "permission", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* void removeFromPrincipal (in nsIPrincipal principal, in ACString type); */
Method {
name: "RemoveFromPrincipal",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void removePermission (in nsIPermission perm); */
Method {
name: "RemovePermission",
params: &[Param { name: "perm", ty: "*const nsIPermission" }],
ret: "::nserror::nsresult",
},
/* void removeAll (); */
Method {
name: "RemoveAll",
params: &[],
ret: "::nserror::nsresult",
},
/* void removeAllSince (in int64_t since); */
Method {
name: "RemoveAllSince",
params: &[Param { name: "since", ty: "i64" }],
ret: "::nserror::nsresult",
},
/* void removeByType (in ACString type); */
Method {
name: "RemoveByType",
params: &[Param { name: "type_", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
/* void removeAllExceptTypes (in Array<ACString> typeExceptions); */
Method {
name: "RemoveAllExceptTypes",
params: &[Param { name: "typeExceptions", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* void removeByTypeSince (in ACString type, in int64_t since); */
Method {
name: "RemoveByTypeSince",
params: &[Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "since", ty: "i64" }],
ret: "::nserror::nsresult",
},
/* void removeAllSinceWithTypeExceptions (in int64_t since, in Array<ACString> typeExceptions); */
Method {
name: "RemoveAllSinceWithTypeExceptions",
params: &[Param { name: "since", ty: "i64" }, Param { name: "typeExceptions", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
/* uint32_t testPermissionFromPrincipal (in nsIPrincipal principal, in ACString type); */
Method {
name: "TestPermissionFromPrincipal",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* uint32_t testExactPermissionFromPrincipal (in nsIPrincipal principal, in ACString type); */
Method {
name: "TestExactPermissionFromPrincipal",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* uint32_t testExactPermanentPermission (in nsIPrincipal principal, in ACString type); */
Method {
name: "TestExactPermanentPermission",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "_retval", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
/* nsIPermission getPermissionObject (in nsIPrincipal principal, in ACString type, in boolean exactHost); */
Method {
name: "GetPermissionObject",
params: &[Param { name: "principal", ty: "*const nsIPrincipal" }, Param { name: "type_", ty: "*const ::nsstring::nsACString" }, Param { name: "exactHost", ty: "bool" }, Param { name: "_retval", ty: "*mut*const nsIPermission" }],
ret: "::nserror::nsresult",
},
/* readonly attribute Array<nsIPermission> all; */
Method {
name: "GetAll",
params: &[Param { name: "aAll", ty: "*mut thin_vec::ThinVec<Option<RefPtr<nsIPermission>>>" }],
ret: "::nserror::nsresult",
},
/* void removePermissionsWithAttributes (in AString patternAsJSON, in Array<ACString> typeInclusions, in Array<ACString> typeExceptions); */
Method {
name: "RemovePermissionsWithAttributes",
params: &[Param { name: "patternAsJSON", ty: "*const ::nsstring::nsAString" }, Param { name: "typeInclusions", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }, Param { name: "typeExceptions", ty: "*const thin_vec::ThinVec<::nsstring::nsCString>" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}