dougt%netscape.com
8db9510204
not part of build. we should init the cache meta data.
...
git-svn-id: svn://10.0.0.236/trunk@88315 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 21:27:11 +00:00
gordon%netscape.com
a3710877c5
[not part of build]
...
Mark cache entry meta data dirty when key/value pair added.
git-svn-id: svn://10.0.0.236/trunk@88310 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 20:06:16 +00:00
gordon%netscape.com
5105be9508
[not part of build]
...
Add utility method to nsCacheEntryDescriptor to change the data size for the associated cache entry.
git-svn-id: svn://10.0.0.236/trunk@88309 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 19:52:06 +00:00
darin%netscape.com
5e3138cd0b
[not part of the build] Removed knowledge of nsCacheEntry from nsMemoryCacheTransport,
...
and fixed a bug in the blocking output stream (it claimed to be non blocking).
git-svn-id: svn://10.0.0.236/trunk@88306 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 19:33:00 +00:00
beard%netscape.com
78e0e5edf9
[not part of build] Forgot NS_INIT_ISUPPORTS() in DiskCacheEntry constructor.
...
git-svn-id: svn://10.0.0.236/trunk@88305 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 19:32:41 +00:00
beard%netscape.com
b77ee33765
[not part of build] When OpenOutputStream() is called for a descriptor with nsICache::ACCESS_WRITE, set initial cache entry size to 0.
...
git-svn-id: svn://10.0.0.236/trunk@88303 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 19:24:10 +00:00
beard%netscape.com
8751f25fe1
[not part of build] Use NS_IMPL_THREADSAFE_ISUPPORTS0 to avoid thread-safety asserts in DiskCacheEntry.
...
git-svn-id: svn://10.0.0.236/trunk@88300 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 17:48:36 +00:00
beard%netscape.com
cfd2ba927c
[not part of build] Added DiskCacheEntry to store internal data in nsCacheEntry. Now saving metadata when DiskCacheEntry becomes dirty.
...
git-svn-id: svn://10.0.0.236/trunk@88299 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 17:31:06 +00:00
beard%netscape.com
27f7e2d911
[not part of build] Make ~nsCacheOutputStream() virtual
...
git-svn-id: svn://10.0.0.236/trunk@88292 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 09:51:22 +00:00
beard%netscape.com
4bdd006d95
[not part of build] Fix LL bustage.
...
git-svn-id: svn://10.0.0.236/trunk@88291 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 08:38:50 +00:00
beard%netscape.com
8c8ca7ce95
[not part of build] First cut at wrapper nsIOutputStream for tallying total bytes written to a cache entry.
...
git-svn-id: svn://10.0.0.236/trunk@88290 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 08:29:43 +00:00
gordon%netscape.com
9bbc213f93
[not part of build]
...
Changed OnDataSizeChanged() to OnDataSizeChange() and added a deltaSize parameter. Added OnDataSizeChange() method on nsCacheService so we can grab the service lock and bind the entry if necessary.
Commented out the implementation of nsCacheEntryDescriptor::AsyncWrite(), since we are not planning to provide it.
git-svn-id: svn://10.0.0.236/trunk@88275 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 05:01:43 +00:00
beard%netscape.com
7ca128866f
[not part of build] needed to add nsITransport to QueryInterface.
...
git-svn-id: svn://10.0.0.236/trunk@88266 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:51:07 +00:00
darin%netscape.com
a31f0fcaf2
[not part of the build] Added code to update the entry's data size as data is streamed
...
to the memory cache.
git-svn-id: svn://10.0.0.236/trunk@88265 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:49:26 +00:00
gordon%netscape.com
2169cc19f4
[not part of build]
...
Add finalization code to cache entry hashtables to delete remaining entries.
git-svn-id: svn://10.0.0.236/trunk@88264 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:46:12 +00:00
gordon%netscape.com
e925522cc0
[not part of build]
...
Changed nsCacheEntryDescriptor to implement nsITransport as a wrapper that checks access priviledges for the underlying transport provided by the device.
Added code to lazily allocate the underlying transport for the cache descriptor.
Added NS_ENSURE_ARG_POINTER() to all necessary interface methods. r=beard.
git-svn-id: svn://10.0.0.236/trunk@88261 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:25:07 +00:00
darin%netscape.com
8318852b21
[not part of the build] Cleans up ReadRequestCompleted; there was no reason
...
to be walking the list of read requests!
git-svn-id: svn://10.0.0.236/trunk@88259 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 02:20:35 +00:00
gordon%netscape.com
60782a007c
Added error codes for read/write access denied.
...
git-svn-id: svn://10.0.0.236/trunk@88257 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-01 01:56:29 +00:00
gordon%netscape.com
c08d7ab02c
Fix access mode for new entries. Not part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@88201 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 22:39:07 +00:00
beard%netscape.com
f02cafb056
[not part of build] truncate files when mode = nsICache::ACCESS_WRITE.
...
git-svn-id: svn://10.0.0.236/trunk@88186 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 12:09:41 +00:00
beard%netscape.com
6a9fa46232
[not part of build] create up to 3 different transports for different nsCacheAccessMode values.
...
git-svn-id: svn://10.0.0.236/trunk@88185 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 11:30:39 +00:00
beard%netscape.com
287f2bca71
[not part of build] renamed PRUint32 parameters to nsCacheAccessMode. Set initial descriptor mode to be requested as temporary workaround.
...
git-svn-id: svn://10.0.0.236/trunk@88184 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 11:29:22 +00:00
beard%netscape.com
ff1dfa18a0
[not part of build] enforce nsCacheAccessMode when creating transports.
...
git-svn-id: svn://10.0.0.236/trunk@88183 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 10:04:27 +00:00
gordon%netscape.com
5454a1d722
Begin implementing enumeration of MetaData for cache devices.
...
git-svn-id: svn://10.0.0.236/trunk@88181 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 07:13:32 +00:00
gordon%netscape.com
9a415d634d
Added check in ReadRequestCompleted() in case aReader paramter is not found in the mReadRequests list.
...
git-svn-id: svn://10.0.0.236/trunk@88178 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 05:48:00 +00:00
beard%netscape.com
3ed3c24937
[not part of build] successfully creates writeable nsITransport for cache files!
...
git-svn-id: svn://10.0.0.236/trunk@88175 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 05:05:29 +00:00
darin%netscape.com
caa5ad9408
Made nsMemoryCacheDevice::BindEntry return NS_OK
...
git-svn-id: svn://10.0.0.236/trunk@88173 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:36:51 +00:00
darin%netscape.com
5609d90e44
Completed nsCacheService::BindEntry
...
git-svn-id: svn://10.0.0.236/trunk@88172 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:34:41 +00:00
darin%netscape.com
a96a6eabef
Removed an extraneous QI from nsCacheEntry::Open()
...
git-svn-id: svn://10.0.0.236/trunk@88171 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:28:15 +00:00
beard%netscape.com
30cfa8e6e2
[not part of build] must call init on hashtable in nsDiskCacheDevice::Init().
...
git-svn-id: svn://10.0.0.236/trunk@88169 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:17:56 +00:00
beard%netscape.com
8e20116d8b
[not part of build] really delegate GetTransport() to the cache service.
...
git-svn-id: svn://10.0.0.236/trunk@88168 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:17:24 +00:00
gordon%netscape.com
19a0033de2
Added GetTransportForEntry(), DoomEntry() to public methods, and BindEntry() and DoomEntry_Internal() to private methods.
...
git-svn-id: svn://10.0.0.236/trunk@88167 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:10:43 +00:00
beard%netscape.com
a10e2443b8
[not part of build] using nsIPref to find cache directory, first cut at creating nsITransport for cache entries.
...
git-svn-id: svn://10.0.0.236/trunk@88165 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 04:00:08 +00:00
beard%netscape.com
6a7b1a85f9
[not part of build] removed redundant NULL check in MarkValid().
...
git-svn-id: svn://10.0.0.236/trunk@88164 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 03:59:02 +00:00
gordon%netscape.com
d55b83e12f
Added MarkDoomed(), MarkStreamData(), and set StreamData in constructor.
...
git-svn-id: svn://10.0.0.236/trunk@88163 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 03:54:16 +00:00
gordon%netscape.com
4fe759cae0
Added DoomEntry() to nsCacheDevice.
...
git-svn-id: svn://10.0.0.236/trunk@88162 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 03:42:33 +00:00
darin%netscape.com
b51b0ef672
[not part of the build] Added code to the descriptor to call GetTransportForEntry()
...
git-svn-id: svn://10.0.0.236/trunk@88157 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 02:19:14 +00:00
darin%netscape.com
f0ac194aeb
[not part of the build] Added hooks to enable streaming to the mem cache!
...
git-svn-id: svn://10.0.0.236/trunk@88149 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 01:41:02 +00:00
beard%netscape.com
c269fc2228
[not part of build] allocate the nsDiskCacheDevice.
...
git-svn-id: svn://10.0.0.236/trunk@88139 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 00:36:07 +00:00
gordon%netscape.com
b99a60e359
Changed 'getters' on nsCacheEntry to simply return values, rather than require out parameters.
...
Added a PRCList member and accessors for linking entries on eviction and doom lists.
Moved check for IsStreamBased() from nsCacheEntry::GetData() to nsCacheEntryDescriptor::GetData(), to allow cache devices to set the mData member.
Added checks to nsCacheEntryDescriptor methods to return NS_ERROR_NOT_AVAILABLE if the descriptor is already closed.
git-svn-id: svn://10.0.0.236/trunk@88133 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-28 00:06:13 +00:00
darin%netscape.com
5c09a8d4b4
[not part of the build] Forgot to update the WIN32 makefile after adding the
...
CID for the memory cache transport.
git-svn-id: svn://10.0.0.236/trunk@88115 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 23:15:57 +00:00
darin%netscape.com
d846f7a5bc
[not part of the build] Added a debug-only CID for nsMemoryCacheTransport
...
to allow this class to be independently tested.
git-svn-id: svn://10.0.0.236/trunk@88072 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 09:06:11 +00:00
dveditz%netscape.com
43d3a31b45
fix for topcrash bug 65798, r=neeti, sr=rpotts
...
git-svn-id: svn://10.0.0.236/trunk@88071 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 07:41:55 +00:00
beard%netscape.com
932c8a19cf
Gordon has much more to say about the last few checkins... But we forgot to wire up nsCacheEntryDescriptor::MarkValid() to nsCacheEntry::MarkValid(). Enjoy the ride.
...
git-svn-id: svn://10.0.0.236/trunk@88064 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:43:16 +00:00
gordon%netscape.com
8b61a442bc
Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy.
...
git-svn-id: svn://10.0.0.236/trunk@88063 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:35:53 +00:00
gordon%netscape.com
cee3eac4fa
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
2001-02-27 05:33:34 +00:00
gordon%netscape.com
74143c8568
Add explicit close() method to decouple descriptor state from cache entry. Close() is an idempotent operation, and will be called by default from the descriptor's destructor. This allows Javascript to release the cache entry earlier than the descriptor may be garbage collected.
...
git-svn-id: svn://10.0.0.236/trunk@88061 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 05:29:25 +00:00
darin%netscape.com
da5420843a
[not part of the build] Added AsyncRead support to nsMemoryCacheTransport.
...
git-svn-id: svn://10.0.0.236/trunk@88056 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 04:29:24 +00:00
dougt%netscape.com
e596ad7b22
conditionally compiling new cache. r=dougt/a=gagan
...
git-svn-id: svn://10.0.0.236/trunk@88051 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 03:16:59 +00:00
dougt%netscape.com
da9719c954
Conditionally compiling new cache. r=dougt/a=gagan
...
git-svn-id: svn://10.0.0.236/trunk@88046 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-27 02:27:21 +00:00