2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-06-24 06:55:19 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
[scriptable, uuid (299d69b4-ee86-4541-802d-7642671ebf97)]
|
|
|
|
interface nsICacheInfoChannel : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get expiration time from cache token. This attribute is equivalent to
|
|
|
|
* nsICachingChannel.cacheToken.expirationTime.
|
|
|
|
*/
|
2012-08-22 15:56:38 +00:00
|
|
|
readonly attribute uint32_t cacheTokenExpirationTime;
|
2010-06-24 06:55:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set/get charset of cache entry. Accessing this attribute is equivalent to
|
|
|
|
* calling nsICachingChannel.cacheToken.getMetaDataElement("charset") and
|
|
|
|
* nsICachingChannel.cacheToken.setMetaDataElement("charset").
|
|
|
|
*/
|
|
|
|
attribute ACString cacheTokenCachedCharset;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TRUE if this channel's data is being loaded from the cache. This value
|
|
|
|
* is undefined before the channel fires its OnStartRequest notification
|
|
|
|
* and after the channel fires its OnStopRequest notification.
|
|
|
|
*/
|
|
|
|
boolean isFromCache();
|
|
|
|
};
|