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