From 0484dbbaf3d6675ec70dd61e2b53cf978512b53d Mon Sep 17 00:00:00 2001 From: "gordon%netscape.com" Date: Thu, 29 Mar 2001 05:51:46 +0000 Subject: [PATCH] Added evictEntries() methods to nsICacheService and nsICacheSession. Removed lastValidated attribute from nsICacheVisitor. r=beard sr=darin. git-svn-id: svn://10.0.0.236/trunk@90751 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/cache/public/nsICacheService.idl | 9 +++++++-- mozilla/netwerk/cache/public/nsICacheSession.idl | 5 +++++ mozilla/netwerk/cache/public/nsICacheVisitor.idl | 5 ----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/mozilla/netwerk/cache/public/nsICacheService.idl b/mozilla/netwerk/cache/public/nsICacheService.idl index f66dc0471fb..505a85021d3 100644 --- a/mozilla/netwerk/cache/public/nsICacheService.idl +++ b/mozilla/netwerk/cache/public/nsICacheService.idl @@ -44,7 +44,7 @@ interface nsICacheService : nsISupports */ void shutdown(); - /* + /** * Create a cache session * * A cache session represents a client's access into the cache. The cache @@ -68,8 +68,13 @@ interface nsICacheService : nsISupports in nsCacheStoragePolicy storagePolicy, in boolean streamBased); - /* + /** * Visit entries stored in the cache. Used to implement about:cache. */ void visitEntries(in nsICacheVisitor visitor); + + /** + * Evicts all entries in all devices implied by the storage policy. + */ + void evictEntries(in nsCacheStoragePolicy storagePolicy); }; diff --git a/mozilla/netwerk/cache/public/nsICacheSession.idl b/mozilla/netwerk/cache/public/nsICacheSession.idl index 285321b256f..c8b41476a44 100644 --- a/mozilla/netwerk/cache/public/nsICacheSession.idl +++ b/mozilla/netwerk/cache/public/nsICacheSession.idl @@ -63,4 +63,9 @@ interface nsICacheSession : nsISupports void asyncOpenCacheEntry(in string key, in nsCacheAccessMode accessRequested, in nsICacheListener listener); + + /** + * Evict all entries for this session's clientID according to its storagePolicy. + */ + void evictEntries(); }; diff --git a/mozilla/netwerk/cache/public/nsICacheVisitor.idl b/mozilla/netwerk/cache/public/nsICacheVisitor.idl index 1250d496763..0aa28bd006f 100644 --- a/mozilla/netwerk/cache/public/nsICacheVisitor.idl +++ b/mozilla/netwerk/cache/public/nsICacheVisitor.idl @@ -120,11 +120,6 @@ interface nsICacheEntryInfo : nsISupports */ readonly attribute PRUint32 lastModified; - /** - * Get the last time the cache entry was marked valid (in seconds since the Epoch). - */ - readonly attribute PRUint32 lastValidated; - /** * Get the expiration time of the cache entry (in seconds since the Epoch). */