beard%netscape.com
3a40fad954
[not part of build] Added CalculateSize() to account for null termination of strings.
2001-03-02 04:54:27 +00:00
beard%netscape.com
f2eaa4cceb
[not part of build] Added FlattenMetaData()/UnflattenMetaData().
2001-03-02 04:09:01 +00:00
gordon%netscape.com
94a9fab0c0
Fix casing of SetMetaDataElement method.
2001-03-02 01:52:29 +00:00
gordon%netscape.com
b3ae735e46
[not part of build]
...
Fixed cache meta data. Implemented eviction list for memory cache device. Worked on entry deactivation, validation, and doom.
2001-03-02 01:51:41 +00:00
dougt%netscape.com
ac8a00dcc3
not part of build. we should init the cache meta data.
2001-03-01 21:27:11 +00:00
gordon%netscape.com
7e1b7ad450
[not part of build]
...
Mark cache entry meta data dirty when key/value pair added.
2001-03-01 20:06:16 +00:00
gordon%netscape.com
7438155597
[not part of build]
...
Add utility method to nsCacheEntryDescriptor to change the data size for the associated cache entry.
2001-03-01 19:52:06 +00:00
darin%netscape.com
7ca4379f0e
[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).
2001-03-01 19:33:00 +00:00
beard%netscape.com
5662ae9036
[not part of build] Forgot NS_INIT_ISUPPORTS() in DiskCacheEntry constructor.
2001-03-01 19:32:41 +00:00
beard%netscape.com
ea20c70f23
[not part of build] When OpenOutputStream() is called for a descriptor with nsICache::ACCESS_WRITE, set initial cache entry size to 0.
2001-03-01 19:24:10 +00:00
beard%netscape.com
935893d3b2
[not part of build] Use NS_IMPL_THREADSAFE_ISUPPORTS0 to avoid thread-safety asserts in DiskCacheEntry.
2001-03-01 17:48:36 +00:00
beard%netscape.com
389892c9a1
[not part of build] Added DiskCacheEntry to store internal data in nsCacheEntry. Now saving metadata when DiskCacheEntry becomes dirty.
2001-03-01 17:31:06 +00:00
beard%netscape.com
c062803646
[not part of build] Make ~nsCacheOutputStream() virtual
2001-03-01 09:51:22 +00:00
beard%netscape.com
a8e4cbdaa6
[not part of build] Fix LL bustage.
2001-03-01 08:38:50 +00:00
beard%netscape.com
87a8e2fe30
[not part of build] First cut at wrapper nsIOutputStream for tallying total bytes written to a cache entry.
2001-03-01 08:29:43 +00:00
gordon%netscape.com
31f6b6c7a1
[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.
2001-03-01 05:01:43 +00:00
beard%netscape.com
4870b313b0
[not part of build] needed to add nsITransport to QueryInterface.
2001-03-01 02:51:07 +00:00
darin%netscape.com
986ab2ead9
[not part of the build] Added code to update the entry's data size as data is streamed
...
to the memory cache.
2001-03-01 02:49:26 +00:00
gordon%netscape.com
f032da92f0
[not part of build]
...
Add finalization code to cache entry hashtables to delete remaining entries.
2001-03-01 02:46:12 +00:00
gordon%netscape.com
47a7b44c2c
[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.
2001-03-01 02:25:07 +00:00
darin%netscape.com
5f02f00fa7
[not part of the build] Cleans up ReadRequestCompleted; there was no reason
...
to be walking the list of read requests!
2001-03-01 02:20:35 +00:00
gordon%netscape.com
40f3bf76de
Added error codes for read/write access denied.
2001-03-01 01:56:29 +00:00
gordon%netscape.com
52de7aa8e6
Fix access mode for new entries. Not part of the build.
2001-02-28 22:39:07 +00:00
beard%netscape.com
10a38c5434
[not part of build] truncate files when mode = nsICache::ACCESS_WRITE.
2001-02-28 12:09:41 +00:00
beard%netscape.com
aaddf29c81
[not part of build] create up to 3 different transports for different nsCacheAccessMode values.
2001-02-28 11:30:39 +00:00
beard%netscape.com
46567d8f82
[not part of build] renamed PRUint32 parameters to nsCacheAccessMode. Set initial descriptor mode to be requested as temporary workaround.
2001-02-28 11:29:22 +00:00
beard%netscape.com
317f5fec75
[not part of build] enforce nsCacheAccessMode when creating transports.
2001-02-28 10:04:27 +00:00
gordon%netscape.com
ecb52c437c
Begin implementing enumeration of MetaData for cache devices.
2001-02-28 07:13:32 +00:00
gordon%netscape.com
aaa938e5b0
Added check in ReadRequestCompleted() in case aReader paramter is not found in the mReadRequests list.
2001-02-28 05:48:00 +00:00
beard%netscape.com
ff21b4221a
[not part of build] successfully creates writeable nsITransport for cache files!
2001-02-28 05:05:29 +00:00
darin%netscape.com
084f574d18
Made nsMemoryCacheDevice::BindEntry return NS_OK
2001-02-28 04:36:51 +00:00
darin%netscape.com
9647d227cc
Completed nsCacheService::BindEntry
2001-02-28 04:34:41 +00:00
darin%netscape.com
004b919287
Removed an extraneous QI from nsCacheEntry::Open()
2001-02-28 04:28:15 +00:00
beard%netscape.com
b6d563d650
[not part of build] must call init on hashtable in nsDiskCacheDevice::Init().
2001-02-28 04:17:56 +00:00
beard%netscape.com
b50591c434
[not part of build] really delegate GetTransport() to the cache service.
2001-02-28 04:17:24 +00:00
gordon%netscape.com
f2290a6cd4
Added GetTransportForEntry(), DoomEntry() to public methods, and BindEntry() and DoomEntry_Internal() to private methods.
2001-02-28 04:10:43 +00:00
beard%netscape.com
c7f88186cd
[not part of build] using nsIPref to find cache directory, first cut at creating nsITransport for cache entries.
2001-02-28 04:00:08 +00:00
beard%netscape.com
391a04f744
[not part of build] removed redundant NULL check in MarkValid().
2001-02-28 03:59:02 +00:00
gordon%netscape.com
510792cb80
Added MarkDoomed(), MarkStreamData(), and set StreamData in constructor.
2001-02-28 03:54:16 +00:00
gordon%netscape.com
13d79d0bf7
Added DoomEntry() to nsCacheDevice.
2001-02-28 03:42:33 +00:00
darin%netscape.com
42cfde7451
[not part of the build] Added code to the descriptor to call GetTransportForEntry()
2001-02-28 02:19:14 +00:00
darin%netscape.com
1ba483bdea
[not part of the build] Added hooks to enable streaming to the mem cache!
2001-02-28 01:41:02 +00:00
beard%netscape.com
a2cb1db911
[not part of build] allocate the nsDiskCacheDevice.
2001-02-28 00:36:07 +00:00
gordon%netscape.com
e14fa0b121
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.
2001-02-28 00:06:13 +00:00
darin%netscape.com
218da462f7
[not part of the build] Forgot to update the WIN32 makefile after adding the
...
CID for the memory cache transport.
2001-02-27 23:15:57 +00:00
darin%netscape.com
ae2d382ff8
[not part of the build] Added a debug-only CID for nsMemoryCacheTransport
...
to allow this class to be independently tested.
2001-02-27 09:06:11 +00:00
dveditz%netscape.com
17034612db
fix for topcrash bug 65798, r=neeti, sr=rpotts
2001-02-27 07:41:55 +00:00
beard%netscape.com
b38a2785a4
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.
2001-02-27 05:43:16 +00:00
gordon%netscape.com
da22074c6d
Changed GetKey() to return key as return value, rather than out parameter. Added flag predicates for storage policy.
2001-02-27 05:35:53 +00:00
gordon%netscape.com
41f6ec1758
Add virtual methods for desctructor and Init(). Changed ActivateEntryIfFound() to FindEntry().
2001-02-27 05:33:34 +00:00