mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
[not part of build]
Added readonly lastModified attribute to nsICacheEntryDescriptor. Added PRBool attribute doomEntriesIfExpired to nsICacheSession.
This commit is contained in:
parent
aef4cfd76d
commit
dd593b9f58
@ -49,6 +49,11 @@ interface nsICacheEntryDescriptor : nsISupports
|
||||
*/
|
||||
readonly attribute PRTime lastFetched;
|
||||
|
||||
/**
|
||||
* Get the last time the cache entry was modified.
|
||||
*/
|
||||
readonly attribute PRTime lastModified;
|
||||
|
||||
/**
|
||||
* Get the last time the cache entry was marked valid.
|
||||
*/
|
||||
|
14
netwerk/cache/public/nsICacheSession.idl
vendored
14
netwerk/cache/public/nsICacheSession.idl
vendored
@ -33,10 +33,16 @@ interface nsICacheListener;
|
||||
interface nsICacheSession : nsISupports
|
||||
{
|
||||
/**
|
||||
* A cache session can only give out one cache entry descriptor with
|
||||
* WRITE access at a time. Until the client calls MarkValid on its
|
||||
* descriptor, other attempts to open the same cache entry will
|
||||
* block.
|
||||
* Expired entries will be doomed or evicted if this attribute is set to true.
|
||||
* If false, expired entries will be returned (useful for offline-mode). This
|
||||
* attribute defaults to true.
|
||||
*/
|
||||
attribute PRBool doomEntriesIfExpired;
|
||||
|
||||
/**
|
||||
* A cache session can only give out one descriptor with WRITE access
|
||||
* to a given cache entry at a time. Until the client calls MarkValid on
|
||||
* its descriptor, other attempts to open the same cache entry will block.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user