Struct xpcom::interfaces::nsIApplicationCacheChannel [] [src]

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

interface nsIApplicationCacheChannel : nsIApplicationCacheContainer

/**
 * Interface implemented by channels that support application caches.
 */

Methods

impl nsIApplicationCacheChannel
[src]

[src]

Cast this nsIApplicationCacheChannel to one of its base interfaces.

impl nsIApplicationCacheChannel
[src]

[src]

/**
     * TRUE when the resource came from the application cache. This
     * might be false even there is assigned an application cache
     * e.g. in case of fallback of load of an entry matching bypass
     * namespace.
     */

readonly attribute boolean loadedFromApplicationCache;

[src]

/**
     * When true, the channel will ask its notification callbacks for
     * an application cache if one is not explicitly provided.  Default
     * value is true.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */

attribute boolean inheritApplicationCache;

[src]

/**
     * When true, the channel will ask its notification callbacks for
     * an application cache if one is not explicitly provided.  Default
     * value is true.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */

attribute boolean inheritApplicationCache;

[src]

/**
     * When true, the channel will choose an application cache if one
     * was not explicitly provided and none is available from the
     * notification callbacks.  Default value is false.
     *
     * This attribute will not be transferred through a redirect.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */

attribute boolean chooseApplicationCache;

[src]

/**
     * When true, the channel will choose an application cache if one
     * was not explicitly provided and none is available from the
     * notification callbacks.  Default value is false.
     *
     * This attribute will not be transferred through a redirect.
     *
     * NS_ERROR_ALREADY_OPENED will be thrown if set after AsyncOpen()
     * is called.
     */

attribute boolean chooseApplicationCache;

[src]

/**
     * A shortcut method to mark the cache item of this channel as 'foreign'.
     * See the 'cache selection algorithm' and CACHE_SELECTION_RELOAD
     * action handling in nsContentSink.
     */

void markOfflineCacheEntryAsForeign ();

[src]

/**
     * Set offline application cache object to instruct the channel
     * to cache for offline use using this application cache.
     */

attribute nsIApplicationCache applicationCacheForWrite;

[src]

/**
     * Set offline application cache object to instruct the channel
     * to cache for offline use using this application cache.
     */

attribute nsIApplicationCache applicationCacheForWrite;

Methods from Deref<Target = nsIApplicationCacheContainer>

[src]

Cast this nsIApplicationCacheContainer to one of its base interfaces.

[src]

attribute nsIApplicationCache applicationCache;

[src]

attribute nsIApplicationCache applicationCache;

Trait Implementations

impl XpCom for nsIApplicationCacheChannel
[src]

IID: nsIID = nsID(1873286833, 27999, 17280, [151, 4, 5, 77, 9, 8, 207, 163])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIApplicationCacheChannel
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.