Commit Graph

334 Commits

Author SHA1 Message Date
mkaply%us.ibm.com
49e7bd880e Stupid mistake - used CRT_CALLBACK instead of CRT_CALL 2001-03-22 05:23:37 +00:00
mkaply%us.ibm.com
abefc37b49 #72075
r=cls
OS/2 TB breakage on new cache
2001-03-22 04:23:20 +00:00
mkaply%us.ibm.com
c4e875553c #72075
r=jag
OS/2 TB breakage on new cache
2001-03-22 04:20:20 +00:00
darin%netscape.com
45914de200 Fixes speedracer bustage. a=mcafee 2001-03-22 02:25:36 +00:00
gordon%netscape.com
3361e48529 Landing MOZ_NEW_CACHE_20010314_BRANCH, incorporating feedback from recent test builds. New cache is still disabled by default. 2001-03-20 22:42:03 +00:00
beard%netscape.com
dea865c7e3 [not part of build] Fix dumb assertion. 2001-03-14 21:16:55 +00:00
darin%netscape.com
763397309e [not part of the build] Changes to make the new cache use PRUint32's for
time instead of PRTime's.  r=gordon
2001-03-14 03:54:05 +00:00
beard%netscape.com
b9c6dbc105 [not part of build] Using nsIPref::AddObserver() instead of krufty old callbacks. Using directory service to obtain profile directory and using a "profile-do-change" observer to regenerate the cache directory. 2001-03-14 03:35:09 +00:00
darin%netscape.com
3f44553e13 [not part of the build] Make nsICacheEntryDescriptor inherit from nsICacheEntryInfo 2001-03-14 01:11:14 +00:00
gordon%netscape.com
a4e0ca3017 [not part of build]
Implement simple LRU eviction mechanism for nsMemoryCacheDevice.
Add cleanup code to nsCacheService to fix intermittent crashes on shutdown.
Calculate MetaData size, and update field in nsCacheEntry.
Begin implmentation of nsICacheDeviceInfo in nsMemoryCacheDevice for about:cache.
Added various statistics to nsCacheService and nsMemoryCacheDevice.
2001-03-13 15:43:17 +00:00
beard%netscape.com
f1394c0f02 [not part of build] Implements poor man's eviction policy. 2001-03-13 04:54:14 +00:00
beard%netscape.com
f1e2d5cd18 [not part of build] Use forward references whenever possible. 2001-03-13 04:53:46 +00:00
beard%netscape.com
2c47dd3f64 [not part of build] Use nsIObserverService to shut down cache before XPCOM is shut down. r=gordon 2001-03-13 01:59:43 +00:00
dougt%netscape.com
c74c36c85e Minor build changes per API review. Now nsIFileURL and nsIFileChannel have their own IDL file which means that if you were using either of these two interfaces, you need to include a new include file. r=valeski@netscape.com 2001-03-12 22:41:28 +00:00
beard%netscape.com
c9ee65f8a7 [not part of build] scan disk cache directory during initialization, to total cache usage, and implement poor man's eviction policy (once at startup/shutdown). 2001-03-12 19:31:21 +00:00
beard%netscape.com
b10810ae1a [not part of build] Mark entry dirty when data size is changed. 2001-03-12 19:29:34 +00:00
darin%netscape.com
af3ac12f49 [not part of the build] Replaced instances of cache manager with cache service
in comments.
2001-03-12 07:09:24 +00:00
darin%netscape.com
33e7b8edf6 [not part of the build] Replaced -1's in calls to Open{In,Out}putStream with ULONG_MAX. 2001-03-12 06:25:26 +00:00
darin%netscape.com
6a70220c37 [not part of the build] Updated some comments. 2001-03-12 06:23:52 +00:00
beard%netscape.com
666ef60528 [not part of build] Turned off some benign failure assertions. 2001-03-11 19:26:04 +00:00
beard%netscape.com
d89a843595 [not part of build] Update visitEntries to correctly identify metadata files. 2001-03-11 19:18:48 +00:00
beard%netscape.com
a90be5e37b [not part of build] Fix incorrect usage of PR_APPEND_LINK() to keep from corrupting the list of doomed DiskCacheEntry object. (thanks gordon) 2001-03-11 06:51:53 +00:00
dbaron%fas.harvard.edu
79b1bcdc60 Allow new cache to be built with MOZ_TRACK_MODULE_DEPS. r=cls@seawood.org 2001-03-11 02:02:25 +00:00
beard%netscape.com
ff4a87ed33 [not part of build] Stopped reusing nsITransports, seems to improve stability. Implemented collision detection of cache entries, using generations and renaming upon entry deactivation. 2001-03-11 00:19:09 +00:00
gordon%netscape.com
05f414aec2 [not part of build] Header file for disk cache record structures. 2001-03-10 03:51:59 +00:00
beard%netscape.com
644891e9a1 [not part of build] Added simple enumeration mechanism to nsCacheEntryHashtable. 2001-03-10 00:43:20 +00:00
beard%netscape.com
2a7451c0d3 [not part of build] renamed DoomEntry_Internal to DoomEntry_Locked, made public for use by cache devices. 2001-03-10 00:42:19 +00:00
beard%netscape.com
472c0da33e [not part of build] Implemented more of cache visitor support. 2001-03-09 19:01:15 +00:00
beard%netscape.com
1ec94db8a7 [not part of build] Fix cache directory creation logic again. 2001-03-09 17:14:02 +00:00
beard%netscape.com
5b0cff36d7 [not part of build] Initial implementation of cache visitor support. 2001-03-09 00:04:03 +00:00
beard%netscape.com
1f859d742c [not part of build] Implemented nsCacheEntryDescriptor::GetFile(). 2001-03-08 21:22:18 +00:00
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