beard%netscape.com
22e5a9f6da
[not part of build] stub implementation of Visit().
Changed Cache directory creation logic in nsDiskCacheDevice.cpp.
2001-03-08 21:00:02 +00:00
beard%netscape.com
bf4e360443
[not part of build] implement VisitEntries.
2001-03-08 20:58:38 +00:00
beard%netscape.com
252e11c88e
[not part of build] Added new interfaces nsICacheDeviceInfo, nsICacheEntryInfo.
2001-03-08 20:58:11 +00:00
gordon%netscape.com
b273b672ac
[not part of build]
...
Removed return codes for nsCacheEntryHashtable::RemoveEntry() and nsCacheDevice::DoomEntry().
Added doomEntriesIfExpired flag to nsCacheSession and nsCacheRequest, and check the flag in nsCacheService::ActivateEntry()
Added lastModified attribute to nsCacheEntryDescriptor and mLastModified data member to nsCacheEntry. mLastModified is updated when data or meta data is changed.
Deque requests if descriptor allocation fails. Delete requests after calling proxy in async open cache entry path.
Cleaned up the logic of doom.
2001-03-08 05:37:00 +00:00
gordon%netscape.com
dd593b9f58
[not part of build]
...
Added readonly lastModified attribute to nsICacheEntryDescriptor. Added PRBool attribute doomEntriesIfExpired to nsICacheSession.
2001-03-08 05:31:52 +00:00
gordon%netscape.com
7504fab80f
[not part of build] Fix a couple bugs to get http working. Don't deallocate requests before listener has been notified, and don't re-add entries to active entry hashtable.
2001-03-08 01:02:27 +00:00
beard%netscape.com
c01e2e45a9
[not part of build] when DEBUG is true, always put cache directory next to current process.
2001-03-08 00:35:03 +00:00
darin%netscape.com
7524781db1
[not part of the build] Fixes some bustage under GCC 2.96
2001-03-07 09:55:54 +00:00
gordon%netscape.com
acd18fda01
[not part of build]
...
Added rough cut of pref code for memory cache device to get cache size, and implemented simple eviction method.
Restructured nsCacheEntryDescriptor to add SecurityInfo attribute. Created nsTransportWrapper as nested class (and member) that addrefs the descriptor instead of itself (like nsPipe). Also rename nsCacheOutputStream to nsOutputStreamWrapper and made it a nested class as well.
2001-03-07 09:27:36 +00:00
beard%netscape.com
cfae6db9a8
[not part of build] don't overwrite a NULL pointer.
2001-03-07 04:05:36 +00:00
gordon%netscape.com
246a98a432
[not part of build] Add security info attribute to nsICacheEntryDescriptor.
2001-03-07 02:47:08 +00:00
beard%netscape.com
0fa067b527
[not part of build] Added GetFile() to implement the file attribute.
2001-03-07 01:40:41 +00:00
beard%netscape.com
d4c0c120f1
[not part of build] Added file attribute to nsICacheEntryDescriptor, added STORE_ON_DISK_AS_FILE to nsICache.
2001-03-07 01:37:42 +00:00
darin%netscape.com
17d186f8a7
[not part of the buid] Renamed onDescriptorAvailable to onCacheEntryAvailable.
2001-03-06 22:04:05 +00:00
darin%netscape.com
6d66958fda
[not part of the build] Fixes bustage resulting from bryner's nsITransport changes.
2001-03-06 07:35:54 +00:00
bryner%uiuc.edu
8b80c7c363
Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott.
2001-03-06 05:10:33 +00:00
gordon%netscape.com
7cb578dc94
[not part of build...and a good thing too] Fixed a couple of really stupid mistakes. Thanks to Patrick for finding them. Go back to your homes. Nothing to see here.
2001-03-06 04:01:00 +00:00
gordon%netscape.com
a73e430dc1
[not part of build]
...
Fix race condition in nsCacheRequest WaitForValidation().
Force !streamBased to set storagePolicy to nsICache:STORE_IN_MEMORY when creating nsCacheSessions.
Fix ProcessRequest() to refrain from creating a descriptor for ACCESS_READ requests when no entry is found (found by pavlov).
2001-03-06 03:26:13 +00:00
darin%netscape.com
1cad1d36cc
[not part of the build] Prevent crash in error case.
2001-03-06 03:12:24 +00:00
beard%netscape.com
af28bdfda7
[not part of build] create the cache directory if it doesn't exist already.
2001-03-06 02:10:18 +00:00
darin%netscape.com
ff8da66438
[not part of the build] Fixes sync OpenCacheEntry bustage.
2001-03-06 01:40:20 +00:00
darin%netscape.com
74a90e7466
[not part of the bulid] Fixes GCC 2.95 bustage.
2001-03-05 23:50:26 +00:00
gordon%netscape.com
bcb5168522
[not part of build]
...
Added conditional deletion of mLock and mCondVar to nsCacheRequest destructor.
Added nsCacheServide::NotifyListener() to called cache clients' OnDescriptorAvailable() method for AsyncOpenCacheEntry().
Added ProcessPendingRequests() to process requests on CloseDescriptor, ValidateEntry, and DoomEntry.
Rough cut of AsyncOpenCacheEntry is in place, but needs testing.
2001-03-05 10:45:33 +00:00
gordon%netscape.com
ade5e1533b
[not part of build]
...
Restructured open cache entry code in preparation for async implementation, to better share code with synchronous version.
Changed nsCacheRequest, nsCacheEntry, nsCacheEntryDescriptor to inherit from PRCList rather than include mListLink member, and removed extraneous GetListNode/GetInstance methods.
Consolidated mAccessRequested, mStreamBased, and mStoragePolicy into a single PRUint32 in nsCacheRequest. Added PRLock, PRCondVar, and a 'wait for validation' flag, used for synchronously opening cache entries. Added accessor functions for these "attributes".
Record current event queue for asychronous requests to be used with GetProxyForObject(). Removed mRequestThread.
2001-03-05 07:17:58 +00:00
pavlov%netscape.com
14f46fb876
[NOT PART OF BUILD!@#!@#] changing line ending of makefile so it works on windows r=gordon
2001-03-04 20:57:33 +00:00
beard%netscape.com
d272ef683d
[not part of build] fix bustage (LL_ZERO is not compatible with PRUint32 type).
2001-03-04 19:27:39 +00:00
gordon%netscape.com
14f776650c
[not part of build] Changed nsCacheEntry data members from PRTime to PRUint32. Changed //** comments to // XXX to make it easier to search for 'to do' items. Added dooming of expired entries.
2001-03-04 00:11:30 +00:00
gordon%netscape.com
c281374138
[not part of build] Make MarkDoomed(), MarkActive(), MarkInactive() private, and check for entry before calling MarkInitialized() in nsCacheService::ActivateEntry().
2001-03-03 04:42:21 +00:00
beard%netscape.com
6388744e26
[not part of build] dooming works during forced write, and explicitly, see TestDiskCache.js for example.
2001-03-03 03:41:38 +00:00
gordon%netscape.com
124ac630d9
[not part of build] Restructured nsCacheService:ActivateEntry() to properly handle a FORCE-WRITE. Cleaned up ownership of key between request and entry. Add deletion of request for synchronous open. Add deletion of unbound entries on deactivation.
2001-03-03 02:27:49 +00:00
darin%netscape.com
94f3bb4242
[not part of the build] updated the module file for the removal of nsMemoryCacheTransport
2001-03-03 02:27:18 +00:00
darin%netscape.com
0bbec193ce
[not part of the build] Make mem cache use nsStorageTransport.
2001-03-03 01:59:03 +00:00
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
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