Commit Graph

2651 Commits

Author SHA1 Message Date
beard%netscape.com
19ae2d545a [not part of build] removed dirty flag from DiskCacheEntry, added key comparision to readDiskCacheEntry(). 2001-03-03 00:35:33 +00:00
gordon%netscape.com
55421ff15e [not part of build] REALLY fix nsCacheEntryHashTable::RemoveEntry. This time for sure! 2001-03-03 00:00:29 +00:00
gordon%netscape.com
e8fffddcf2 [not part of build] Fix nsCacheEntryHashTable::RemoveEntry(). r=beard. 2001-03-02 23:50:53 +00:00
darin%netscape.com
239a60c682 [not part of the build] Added implementation of nsMemoryCacheReadRequest::Available 2001-03-02 22:28:38 +00:00
beard%netscape.com
af49e27bcf [not part of build] slight optimization, check for cache file existence before creating an entry and attempting to open a transport for it. 2001-03-02 20:14:41 +00:00
beard%netscape.com
88c1e43a65 [not part of build] need a way to transfer ownership of key from request to entry. for now just leak and dont' crash. 2001-03-02 20:04:08 +00:00
disttsc%bart.nl
277181c660 Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc 2001-03-02 09:26:57 +00:00
beard%netscape.com
e14f9a7fdc [not part of build] Added metadata test. 2001-03-02 05:00:34 +00:00
beard%netscape.com
599f805e95 [not part of build] took out unnecessary OpenTransport libraries. 2001-03-02 04:57:42 +00:00
beard%netscape.com
dfc91d59d9 Now reading/writing all metadata into disk cache. 2001-03-02 04:57:09 +00:00
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
dougt%netscape.com
f3ae3e7ba0 NOT PART BUILD BUILD YET. Checking in indexed to html converter 2001-03-01 07:22:19 +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
bryner%uiuc.edu
8c6ba024ec Don't return an async proxied object when the socket transport is asked for its ProgressEventSink. r=dougt, sr=shaver. 2001-03-01 00:55:08 +00:00
gordon%netscape.com
941c2a073f Added comments to netCore.h declaring error ranges for SocketTransport and CacheService. r=beard. 2001-03-01 00:54:29 +00:00
beard%netscape.com
0c0e0a03ca [not part of build] stores nsISupportsString in object cache. 2001-03-01 00:24:33 +00:00
dougt%netscape.com
1e0d9b7877 fixes 66873. fixes WFTPD incompatibility. r=gagan, sr=mscott 2001-03-01 00:23:36 +00:00
beard%netscape.com
e68eeb0c72 [not part of build] Now wraps nsIInputStream with an nsIScriptableInputStream. 2001-03-01 00:07:23 +00:00
beard%netscape.com
c167dd8067 [not part of build] changed linker output to cache.headers rather than necko.headers. 2001-03-01 00:05:31 +00:00
beard%netscape.com
2e059bf699 [not part of build] Now tests opening output and input streams. 2001-02-28 23:52:20 +00:00
dougt%netscape.com
0ff09eae40 Fixing 69836. Increasing data buffer sizes which improves perf on Mac. r=sfraser, sr=mscott 2001-02-28 23:37:03 +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
gordon%netscape.com
54a2ab1696 Adding test for cache service. 2001-02-28 05:28:50 +00:00
beard%netscape.com
bc439b5703 [not part of build] Tests disk cache using XPConnnect. 2001-02-28 05:06:25 +00:00