Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/cache2/nsICacheStorageService.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsICacheStorageService",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* nsICacheStorage memoryCacheStorage (in nsILoadContextInfo aLoadContextInfo); */
Method {
name: "MemoryCacheStorage",
params: &[Param { name: "aLoadContextInfo", ty: "*const nsILoadContextInfo" }, Param { name: "_retval", ty: "*mut*const nsICacheStorage" }],
ret: "::nserror::nsresult",
},
/* nsICacheStorage diskCacheStorage (in nsILoadContextInfo aLoadContextInfo); */
Method {
name: "DiskCacheStorage",
params: &[Param { name: "aLoadContextInfo", ty: "*const nsILoadContextInfo" }, Param { name: "_retval", ty: "*mut*const nsICacheStorage" }],
ret: "::nserror::nsresult",
},
/* nsICacheStorage pinningCacheStorage (in nsILoadContextInfo aLoadContextInfo); */
Method {
name: "PinningCacheStorage",
params: &[Param { name: "aLoadContextInfo", ty: "*const nsILoadContextInfo" }, Param { name: "_retval", ty: "*mut*const nsICacheStorage" }],
ret: "::nserror::nsresult",
},
/* void clearOrigin (in nsIPrincipal aPrincipal); */
Method {
name: "ClearOrigin",
params: &[Param { name: "aPrincipal", ty: "*const nsIPrincipal" }],
ret: "::nserror::nsresult",
},
/* void clearBaseDomain (in AString aBaseDomain); */
Method {
name: "ClearBaseDomain",
params: &[Param { name: "aBaseDomain", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void clearOriginAttributes (in AString aOriginAttributes); */
Method {
name: "ClearOriginAttributes",
params: &[Param { name: "aOriginAttributes", ty: "*const ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* void clear (); */
Method {
name: "Clear",
params: &[],
ret: "::nserror::nsresult",
},
/* void purgeFromMemory (in uint32_t aWhat); */
Method {
name: "PurgeFromMemory",
params: &[Param { name: "aWhat", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIEventTarget ioTarget; */
Method {
name: "GetIoTarget",
params: &[Param { name: "aIoTarget", ty: "*mut*const nsIEventTarget" }],
ret: "::nserror::nsresult",
},
/* void asyncGetDiskConsumption (in nsICacheStorageConsumptionObserver aObserver); */
Method {
name: "AsyncGetDiskConsumption",
params: &[Param { name: "aObserver", ty: "*const nsICacheStorageConsumptionObserver" }],
ret: "::nserror::nsresult",
},
/* void asyncVisitAllStorages (in nsICacheStorageVisitor aVisitor, in boolean aVisitEntries); */
Method {
name: "AsyncVisitAllStorages",
params: &[Param { name: "aVisitor", ty: "*const nsICacheStorageVisitor" }, Param { name: "aVisitEntries", ty: "bool" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsICacheStorageConsumptionObserver",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onNetworkCacheDiskConsumption (in int64_t aDiskSize); */
Method {
name: "OnNetworkCacheDiskConsumption",
params: &[Param { name: "aDiskSize", ty: "i64" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}