Struct xpcom::interfaces::nsIServiceWorkerManager
[−]
[src]
#[repr(C)]pub struct nsIServiceWorkerManager { /* fields omitted */ }
interface nsIServiceWorkerManager : nsISupports
Methods
impl nsIServiceWorkerManager
[src]
pub fn coerce<T: nsIServiceWorkerManagerCoerce>(&self) -> &T
[src]
Cast this nsIServiceWorkerManager
to one of its base interfaces.
impl nsIServiceWorkerManager
[src]
pub unsafe fn Register(
&self,
aWindow: *const mozIDOMWindow,
aScope: *const nsIURI,
aScriptURI: *const nsIURI,
aUpdateViaCache: uint16_t,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const mozIDOMWindow,
aScope: *const nsIURI,
aScriptURI: *const nsIURI,
aUpdateViaCache: uint16_t,
_retval: *mut *const nsISupports
) -> nsresult
/**
* Registers a ServiceWorker with script loaded from `aScriptURI` to act as
* the ServiceWorker for aScope. Requires a valid entry settings object on
* the stack. This means you must call this from content code 'within'
* a window.
*
* Returns a Promise.
*/
nsISupports register (in mozIDOMWindow aWindow, in nsIURI aScope, in nsIURI aScriptURI, in uint16_t aUpdateViaCache);
pub unsafe fn Unregister(
&self,
aPrincipal: *const nsIPrincipal,
aCallback: *const nsIServiceWorkerUnregisterCallback,
aScope: &nsAString
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aCallback: *const nsIServiceWorkerUnregisterCallback,
aScope: &nsAString
) -> nsresult
/**
* Unregister an existing ServiceWorker registration for `aScope`.
* It keeps aCallback alive until the operation is concluded.
*/
void unregister (in nsIPrincipal aPrincipal, in nsIServiceWorkerUnregisterCallback aCallback, in DOMString aScope);
pub unsafe fn GetRegistrations(
&self,
aWindow: *const mozIDOMWindow,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const mozIDOMWindow,
_retval: *mut *const nsISupports
) -> nsresult
nsISupports getRegistrations (in mozIDOMWindow aWindow);
pub unsafe fn GetRegistration(
&self,
aWindow: *const mozIDOMWindow,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const mozIDOMWindow,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
nsISupports getRegistration (in mozIDOMWindow aWindow, in DOMString aScope);
pub unsafe fn GetReadyPromise(
&self,
aWindow: *const mozIDOMWindow,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const mozIDOMWindow,
_retval: *mut *const nsISupports
) -> nsresult
nsISupports getReadyPromise (in mozIDOMWindow aWindow);
pub unsafe fn RemoveReadyPromise(
&self,
aWindow: *const mozIDOMWindow
) -> nsresult
[src]
&self,
aWindow: *const mozIDOMWindow
) -> nsresult
void removeReadyPromise (in mozIDOMWindow aWindow);
pub unsafe fn GetRegistrationByPrincipal(
&self,
aPrincipal: *const nsIPrincipal,
aScope: &nsAString,
_retval: *mut *const nsIServiceWorkerRegistrationInfo
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aScope: &nsAString,
_retval: *mut *const nsIServiceWorkerRegistrationInfo
) -> nsresult
nsIServiceWorkerRegistrationInfo getRegistrationByPrincipal (in nsIPrincipal aPrincipal, in DOMString aScope);
pub unsafe fn GetInstalling(
&self,
aWindow: *const nsPIDOMWindowInner,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const nsPIDOMWindowInner,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[noscript] nsISupports GetInstalling (in nsPIDOMWindowInner aWindow, in DOMString aScope);
pub unsafe fn GetWaiting(
&self,
aWindow: *const nsPIDOMWindowInner,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const nsPIDOMWindowInner,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[noscript] nsISupports GetWaiting (in nsPIDOMWindowInner aWindow, in DOMString aScope);
pub unsafe fn GetActive(
&self,
aWindow: *const nsPIDOMWindowInner,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const nsPIDOMWindowInner,
aScope: &nsAString,
_retval: *mut *const nsISupports
) -> nsresult
[noscript] nsISupports GetActive (in nsPIDOMWindowInner aWindow, in DOMString aScope);
pub unsafe fn GetDocumentController(
&self,
aWindow: *const nsPIDOMWindowInner,
_retval: *mut *const nsISupports
) -> nsresult
[src]
&self,
aWindow: *const nsPIDOMWindowInner,
_retval: *mut *const nsISupports
) -> nsresult
[noscript] nsISupports GetDocumentController (in nsPIDOMWindowInner aWindow);
pub unsafe fn RemoveAndPropagate(&self, aHost: &nsACString) -> nsresult
[src]
void removeAndPropagate (in AUTF8String aHost);
pub unsafe fn GetScopeForUrl(
&self,
aPrincipal: *const nsIPrincipal,
aPath: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aPath: &nsAString,
_retval: &mut nsAString
) -> nsresult
DOMString getScopeForUrl (in nsIPrincipal aPrincipal, in DOMString aPath);
pub unsafe fn GetAllRegistrations(
&self,
_retval: *mut *const nsIArray
) -> nsresult
[src]
&self,
_retval: *mut *const nsIArray
) -> nsresult
nsIArray getAllRegistrations ();
pub unsafe fn PropagateUnregister(
&self,
aPrincipal: *const nsIPrincipal,
aCallback: *const nsIServiceWorkerUnregisterCallback,
aScope: &nsAString
) -> nsresult
[src]
&self,
aPrincipal: *const nsIPrincipal,
aCallback: *const nsIServiceWorkerUnregisterCallback,
aScope: &nsAString
) -> nsresult
void propagateUnregister (in nsIPrincipal aPrincipal, in nsIServiceWorkerUnregisterCallback aCallback, in DOMString aScope);
pub unsafe fn SendNotificationClickEvent(
&self,
aOriginSuffix: &nsACString,
scope: &nsACString,
aID: &nsAString,
aTitle: &nsAString,
aDir: &nsAString,
aLang: &nsAString,
aBody: &nsAString,
aTag: &nsAString,
aIcon: &nsAString,
aData: &nsAString,
aBehavior: &nsAString
) -> nsresult
[src]
&self,
aOriginSuffix: &nsACString,
scope: &nsACString,
aID: &nsAString,
aTitle: &nsAString,
aDir: &nsAString,
aLang: &nsAString,
aBody: &nsAString,
aTag: &nsAString,
aIcon: &nsAString,
aData: &nsAString,
aBehavior: &nsAString
) -> nsresult
void sendNotificationClickEvent (in ACString aOriginSuffix, in ACString scope, in AString aID, in AString aTitle, in AString aDir, in AString aLang, in AString aBody, in AString aTag, in AString aIcon, in AString aData, in AString aBehavior);
pub unsafe fn SendNotificationCloseEvent(
&self,
aOriginSuffix: &nsACString,
scope: &nsACString,
aID: &nsAString,
aTitle: &nsAString,
aDir: &nsAString,
aLang: &nsAString,
aBody: &nsAString,
aTag: &nsAString,
aIcon: &nsAString,
aData: &nsAString,
aBehavior: &nsAString
) -> nsresult
[src]
&self,
aOriginSuffix: &nsACString,
scope: &nsACString,
aID: &nsAString,
aTitle: &nsAString,
aDir: &nsAString,
aLang: &nsAString,
aBody: &nsAString,
aTag: &nsAString,
aIcon: &nsAString,
aData: &nsAString,
aBehavior: &nsAString
) -> nsresult
void sendNotificationCloseEvent (in ACString aOriginSuffix, in ACString scope, in AString aID, in AString aTitle, in AString aDir, in AString aLang, in AString aBody, in AString aTag, in AString aIcon, in AString aData, in AString aBehavior);
pub unsafe fn SendPushSubscriptionChangeEvent(
&self,
aOriginAttributes: &nsACString,
scope: &nsACString
) -> nsresult
[src]
&self,
aOriginAttributes: &nsACString,
scope: &nsACString
) -> nsresult
void sendPushSubscriptionChangeEvent (in ACString aOriginAttributes, in ACString scope);
pub unsafe fn AddListener(
&self,
aListener: *const nsIServiceWorkerManagerListener
) -> nsresult
[src]
&self,
aListener: *const nsIServiceWorkerManagerListener
) -> nsresult
void addListener (in nsIServiceWorkerManagerListener aListener);
pub unsafe fn RemoveListener(
&self,
aListener: *const nsIServiceWorkerManagerListener
) -> nsresult
[src]
&self,
aListener: *const nsIServiceWorkerManagerListener
) -> nsresult
void removeListener (in nsIServiceWorkerManagerListener aListener);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIServiceWorkerManager
[src]
const IID: nsIID
IID: nsIID = nsID(1946470632, 19783, 17481, [142, 209, 71, 209, 38, 29, 78, 51])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIServiceWorkerManager
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIServiceWorkerManager
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.