Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/interfaces/base/nsIServiceWorkerManager.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIServiceWorkerUnregisterCallback",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void unregisterSucceeded (in boolean aState); */
Method {
name: "UnregisterSucceeded",
params: &[Param { name: "aState", ty: "bool" }],
ret: "::nserror::nsresult",
},
/* void unregisterFailed (); */
Method {
name: "UnregisterFailed",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIServiceWorkerInfo",
base: Some("nsISupports"),
sync: false,
methods: Err("jscontext is unsupported"),
},
Interface {
name: "nsIServiceWorkerRegistrationInfoListener",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onChange (); */
Method {
name: "OnChange",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIServiceWorkerRegistrationInfo",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* readonly attribute nsIPrincipal principal; */
Method {
name: "GetPrincipal",
params: &[Param { name: "aPrincipal", ty: "*mut*const nsIPrincipal" }],
ret: "::nserror::nsresult",
},
/* readonly attribute boolean unregistered; */
Method {
name: "GetUnregistered",
params: &[Param { name: "aUnregistered", ty: "*mut bool" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString scope; */
Method {
name: "GetScope",
params: &[Param { name: "aScope", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString scriptSpec; */
Method {
name: "GetScriptSpec",
params: &[Param { name: "aScriptSpec", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned short updateViaCache; */
Method {
name: "GetUpdateViaCache",
params: &[Param { name: "aUpdateViaCache", ty: "*mut u16" }],
ret: "::nserror::nsresult",
},
/* readonly attribute PRTime lastUpdateTime; */
Method {
name: "GetLastUpdateTime",
params: &[Param { name: "aLastUpdateTime", ty: "*mut PRTime" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIServiceWorkerInfo evaluatingWorker; */
Method {
name: "GetEvaluatingWorker",
params: &[Param { name: "aEvaluatingWorker", ty: "*mut *const nsIServiceWorkerInfo" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIServiceWorkerInfo installingWorker; */
Method {
name: "GetInstallingWorker",
params: &[Param { name: "aInstallingWorker", ty: "*mut *const nsIServiceWorkerInfo" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIServiceWorkerInfo waitingWorker; */
Method {
name: "GetWaitingWorker",
params: &[Param { name: "aWaitingWorker", ty: "*mut *const nsIServiceWorkerInfo" }],
ret: "::nserror::nsresult",
},
/* readonly attribute nsIServiceWorkerInfo activeWorker; */
Method {
name: "GetActiveWorker",
params: &[Param { name: "aActiveWorker", ty: "*mut *const nsIServiceWorkerInfo" }],
ret: "::nserror::nsresult",
},
/* readonly attribute long quotaUsageCheckCount; */
Method {
name: "GetQuotaUsageCheckCount",
params: &[Param { name: "aQuotaUsageCheckCount", ty: "*mut i32" }],
ret: "::nserror::nsresult",
},
/* nsIServiceWorkerInfo getWorkerByID (in unsigned long long aID); */
Method {
name: "GetWorkerByID",
params: &[Param { name: "aID", ty: "u64" }, Param { name: "_retval", ty: "*mut *const nsIServiceWorkerInfo" }],
ret: "::nserror::nsresult",
},
/* void addListener (in nsIServiceWorkerRegistrationInfoListener listener); */
Method {
name: "AddListener",
params: &[Param { name: "listener", ty: "*const nsIServiceWorkerRegistrationInfoListener" }],
ret: "::nserror::nsresult",
},
/* void removeListener (in nsIServiceWorkerRegistrationInfoListener listener); */
Method {
name: "RemoveListener",
params: &[Param { name: "listener", ty: "*const nsIServiceWorkerRegistrationInfoListener" }],
ret: "::nserror::nsresult",
},
/* void forceShutdown (); */
Method {
name: "ForceShutdown",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIServiceWorkerManagerListener",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onRegister (in nsIServiceWorkerRegistrationInfo aInfo); */
Method {
name: "OnRegister",
params: &[Param { name: "aInfo", ty: "*const nsIServiceWorkerRegistrationInfo" }],
ret: "::nserror::nsresult",
},
/* void onUnregister (in nsIServiceWorkerRegistrationInfo aInfo); */
Method {
name: "OnUnregister",
params: &[Param { name: "aInfo", ty: "*const nsIServiceWorkerRegistrationInfo" }],
ret: "::nserror::nsresult",
},
/* void onQuotaUsageCheckFinish (in nsIServiceWorkerRegistrationInfo aInfo); */
Method {
name: "OnQuotaUsageCheckFinish",
params: &[Param { name: "aInfo", ty: "*const nsIServiceWorkerRegistrationInfo" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIServiceWorkerManager",
base: Some("nsISupports"),
sync: false,
methods: Err("jscontext is unsupported"),
},
]; D}