Struct xpcom::interfaces::nsIApplicationCacheService [] [src]

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

interface nsIApplicationCacheService : nsISupports

/**
 * The application cache service manages the set of application cache
 * groups.
 */

Methods

impl nsIApplicationCacheService
[src]

[src]

Cast this nsIApplicationCacheService to one of its base interfaces.

impl nsIApplicationCacheService
[src]

[src]

/**
     * Create group string identifying cache group according the manifest
     * URL and the given principal.
     */

ACString buildGroupIDForInfo (in nsIURI aManifestURL, in nsILoadContextInfo aLoadContextInfo);

[src]

ACString buildGroupIDForSuffix (in nsIURI aManifestURL, in ACString aOriginSuffix);

[src]

/**
     * Create a new, empty application cache for the given cache
     * group.
     */

nsIApplicationCache createApplicationCache (in ACString group);

[src]

/**
     * Create a new, empty application cache for the given cache
     * group residing in a custom directory with a custom quota.
     *
     * @param group
     *    URL of the manifest
     * @param directory
     *    Actually a reference to a profile directory where to
     *    create the OfflineCache sub-dir.
     * @param quota
     *    Optional override of the default quota.
     */

nsIApplicationCache createCustomApplicationCache (in ACString group, in nsIFile profileDir, in int32_t quota);

[src]

/**
     * Get an application cache object for the given client ID.
     */

nsIApplicationCache getApplicationCache (in ACString clientID);

[src]

/**
     * Get the currently active cache object for a cache group.
     */

nsIApplicationCache getActiveCache (in ACString group);

[src]

/**
     * Deactivate the currently-active cache object for a cache group.
     */

void deactivateGroup (in ACString group);

[src]

/**
     * Evict offline cache entries, either all of them or those belonging
     * to the given origin.
     */

void evict (in nsILoadContextInfo aLoadContextInfo);

[src]

/**
     * Delete caches whom origin attributes matches the given pattern.
     */

void evictMatchingOriginAttributes (in AString aPattern);

[src]

/**
     * Try to find the best application cache to serve a resource.
     */

nsIApplicationCache chooseApplicationCache (in ACString key, [optional] in nsILoadContextInfo aLoadContextInfo);

[src]

/**
     * Flags the key as being opportunistically cached.
     *
     * This method should also propagate the entry to other
     * application caches with the same opportunistic namespace, but
     * this is not currently implemented.
     *
     * @param cache
     *        The cache in which the entry is cached now.
     * @param key
     *        The cache entry key.
     */

void cacheOpportunistically (in nsIApplicationCache cache, in ACString key);

[src]

/**
     * Get the list of application cache groups.
     */

void getGroups ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs);

[src]

/**
     * Get the list of application cache groups in the order of
     * activating time.
     */

void getGroupsTimeOrdered ([optional] out unsigned long count, [array, size_is (count), retval] out string groupIDs);

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

IID: nsIID = nsID(3098956908, 27884, 19418, [130, 223, 8, 224, 6, 169, 123, 86])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIApplicationCacheService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.