Struct xpcom::interfaces::nsIServiceWorkerManager [] [src]

#[repr(C)]
pub struct nsIServiceWorkerManager { /* fields omitted */ }

interface nsIServiceWorkerManager : nsISupports

Methods

impl nsIServiceWorkerManager
[src]

[src]

Cast this nsIServiceWorkerManager to one of its base interfaces.

impl nsIServiceWorkerManager
[src]

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

nsISupports getRegistrations (in mozIDOMWindow aWindow);

[src]

nsISupports getRegistration (in mozIDOMWindow aWindow, in DOMString aScope);

[src]

nsISupports getReadyPromise (in mozIDOMWindow aWindow);

[src]

void removeReadyPromise (in mozIDOMWindow aWindow);

[src]

nsIServiceWorkerRegistrationInfo getRegistrationByPrincipal (in nsIPrincipal aPrincipal, in DOMString aScope);

[src]

[noscript] nsISupports GetInstalling (in nsPIDOMWindowInner aWindow, in DOMString aScope);

[src]

[noscript] nsISupports GetWaiting (in nsPIDOMWindowInner aWindow, in DOMString aScope);

[src]

[noscript] nsISupports GetActive (in nsPIDOMWindowInner aWindow, in DOMString aScope);

[src]

[noscript] nsISupports GetDocumentController (in nsPIDOMWindowInner aWindow);

[src]

void removeAndPropagate (in AUTF8String aHost);

[src]

DOMString getScopeForUrl (in nsIPrincipal aPrincipal, in DOMString aPath);

[src]

nsIArray getAllRegistrations ();

[src]

void propagateUnregister (in nsIPrincipal aPrincipal, in nsIServiceWorkerUnregisterCallback aCallback, in DOMString aScope);

[src]

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);

[src]

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);

[src]

void sendPushSubscriptionChangeEvent (in ACString aOriginAttributes, in ACString scope);

[src]

void addListener (in nsIServiceWorkerManagerListener aListener);

[src]

void removeListener (in nsIServiceWorkerManagerListener aListener);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIServiceWorkerManager
[src]

IID: nsIID = nsID(1946470632, 19783, 17481, [142, 209, 71, 209, 38, 29, 78, 51])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIServiceWorkerManager
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.