Implemented by
[scriptable, uuid(6fd2030f-7b00-4102-a0e3-d73078821eb1)]
interface nsIOfflineCacheUpdateService : nsISupports
Constants
Constants for the offline-app permission. XXX: This isn't a great place for this, but it's really the only private offline-app-related interface Allow the domain to use offline APIs, and don't warn about excessive usage.
const
unsigned long
ALLOW_NO_WARN = 3
Attributes
Access to the list of cache updates that have been scheduled.
readonly attribute
unsigned long
numUpdates
Methods
nsIOfflineCacheUpdate
getUpdate(in unsigned long index)
Checks whether a principal should have access to the offline
cache.
@param aPrincipal
The principal to check.
@param aPrefBranch
The pref branch to use to check the
offline-apps.allow_by_default pref. If not specified,
the pref service will be used.
boolean
offlineAppAllowed(in nsIPrincipal aPrincipal, in nsIPrefBranch aPrefBranch)
Checks whether a document at the given URI should have access
to the offline cache.
@param aURI
The URI to check
@param aPrefBranch
The pref branch to use to check the
offline-apps.allow_by_default pref. If not specified,
the pref service will be used.
boolean
offlineAppAllowedForURI(in nsIURI aURI, in nsIPrefBranch aPrefBranch)
Schedule a cache update for a manifest when the document finishes loading.
void
scheduleOnDocumentStop(in nsIURI aManifestURI, in nsIURI aDocumentURI, in nsIDOMDocument aDocument)
Schedule a cache update for a given offline manifest. If an existing update is scheduled or running, that update will be returned. Otherwise a new update will be scheduled.
nsIOfflineCacheUpdate
scheduleUpdate(in nsIURI aManifestURI, in nsIURI aDocumentURI)
Compare to: