Struct xpcom::interfaces::nsIApplicationCacheNamespace [] [src]

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

interface nsIApplicationCacheNamespace : nsISupports

/**
 * Application caches can store a set of namespace entries that affect
 * loads from the application cache.  If a load from the cache fails
 * to match an exact cache entry, namespaces entries will be searched
 * for a substring match, and should be applied appropriately.
 */

Methods

impl nsIApplicationCacheNamespace
[src]

[src]

Cast this nsIApplicationCacheNamespace to one of its base interfaces.

impl nsIApplicationCacheNamespace
[src]

NAMESPACE_BYPASS: i64 = 1
/**
     * Items matching this namespace can be fetched from the network
     * when loading from this cache.  The "data" attribute is unused.
     */

NAMESPACE_FALLBACK: i64 = 2
/**
     * Items matching this namespace can be fetched from the network
     * when loading from this cache.  If the load fails, the cache entry
     * specified by the "data" attribute should be loaded instead.
     */

NAMESPACE_OPPORTUNISTIC: i64 = 4
/**
     * Items matching this namespace should be cached
     * opportunistically.  Successful toplevel loads of documents
     * in this namespace should be placed in the application cache.
     * Namespaces specifying NAMESPACE_OPPORTUNISTIC may also specify
     * NAMESPACE_FALLBACK to supply a fallback entry.
     */

[src]

/**
     * Initialize the namespace.
     */

void init (in unsigned long itemType, in ACString namespaceSpec, in ACString data);

[src]

/**
     * The namespace type.
     */

readonly attribute unsigned long itemType;

[src]

/**
     * The prefix of this namespace.  This should be the asciiSpec of the
     * URI prefix.
     */

readonly attribute ACString namespaceSpec;

[src]

/**
     * Data associated with this namespace, such as a fallback.  URI data should
     * use the asciiSpec of the URI.
     */

readonly attribute ACString data;

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

IID: nsIID = nsID(2531574372, 8293, 19689, [147, 187, 67, 115, 76, 98, 196, 235])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIApplicationCacheNamespace
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.