Copy as Markdown

Other Tools

//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/extensions/mozIExtensionAPIRequestHandling.idl
//
{static D: &[Interface] = &[
Interface {
name: "mozIExtensionServiceWorkerInfo",
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 AString scriptURL; */
Method {
name: "GetScriptURL",
params: &[Param { name: "aScriptURL", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute AString clientInfoId; */
Method {
name: "GetClientInfoId",
params: &[Param { name: "aClientInfoId", ty: "*mut ::nsstring::nsAString" }],
ret: "::nserror::nsresult",
},
/* readonly attribute unsigned long long descriptorId; */
Method {
name: "GetDescriptorId",
params: &[Param { name: "aDescriptorId", ty: "*mut u64" }],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "mozIExtensionListenerCallOptions",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "mozIExtensionEventListener",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "mozIExtensionAPIRequest",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "mozIExtensionAPIRequestResult",
base: Some("nsISupports"),
sync: false,
methods: Err("special type jsval unsupported"),
},
Interface {
name: "mozIExtensionAPIRequestHandler",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void handleAPIRequest (in nsISupports extension, in mozIExtensionAPIRequest apiRequest, [retval, optional] out mozIExtensionAPIRequestResult apiRequestResult); */
Method {
name: "HandleAPIRequest",
params: &[Param { name: "extension", ty: "*const nsISupports" }, Param { name: "apiRequest", ty: "*const mozIExtensionAPIRequest" }, Param { name: "apiRequestResult", ty: "*mut *const mozIExtensionAPIRequestResult" }],
ret: "::nserror::nsresult",
},
/* void initExtensionWorker (in nsISupports extension, in mozIExtensionServiceWorkerInfo serviceWorkerInfo); */
Method {
name: "InitExtensionWorker",
params: &[Param { name: "extension", ty: "*const nsISupports" }, Param { name: "serviceWorkerInfo", ty: "*const mozIExtensionServiceWorkerInfo" }],
ret: "::nserror::nsresult",
},
/* void onExtensionWorkerLoaded (in nsISupports extension, in unsigned long long serviceWorkerDescriptorId); */
Method {
name: "OnExtensionWorkerLoaded",
params: &[Param { name: "extension", ty: "*const nsISupports" }, Param { name: "serviceWorkerDescriptorId", ty: "u64" }],
ret: "::nserror::nsresult",
},
/* void onExtensionWorkerDestroyed (in nsISupports extension, in unsigned long long serviceWorkerDescriptorId); */
Method {
name: "OnExtensionWorkerDestroyed",
params: &[Param { name: "extension", ty: "*const nsISupports" }, Param { name: "serviceWorkerDescriptorId", ty: "u64" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}