From cee3eac4fa2fdb94ee7064aeacbf2c90c0db8798 Mon Sep 17 00:00:00 2001 From: "gordon%netscape.com" Date: Tue, 27 Feb 2001 05:33:34 +0000 Subject: [PATCH] Add virtual methods for desctructor and Init(). Changed ActivateEntryIfFound() to FindEntry(). git-svn-id: svn://10.0.0.236/trunk@88062 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/cache/src/nsCacheDevice.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/netwerk/cache/src/nsCacheDevice.h b/mozilla/netwerk/cache/src/nsCacheDevice.h index 60bc88f1928..9f434dbe4ee 100644 --- a/mozilla/netwerk/cache/src/nsCacheDevice.h +++ b/mozilla/netwerk/cache/src/nsCacheDevice.h @@ -35,9 +35,13 @@ class nsCacheEntry; class nsCacheDevice { public: - virtual const char * GetDeviceID(void) = 0; + virtual ~nsCacheDevice() {} + + virtual nsresult Init() = 0; + + virtual const char * GetDeviceID(void) = 0; + virtual nsCacheEntry * FindEntry( nsCString * key ) = 0; - virtual nsresult ActivateEntryIfFound( nsCacheEntry * entry ) = 0; virtual nsresult DeactivateEntry( nsCacheEntry * entry ) = 0; virtual nsresult BindEntry( nsCacheEntry * entry ) = 0;