Граф коммитов

609 Коммитов

Автор SHA1 Сообщение Дата
pete%alphanumerica.com f65c767018 Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst
Renamed all Delete methods to Remove.

--pete
2001-07-24 18:38:25 +00:00
bbaetz%cs.mcgill.ca 36864acfc9 This fixes two small problems that may cause pages being partially loaded. 82720. The first problem addresses new cache entries being created when access to the entry is readonly. The second fix was to a badly placed assertion.
Patch by gordon, r=bbaetz, sr=dougt.
2001-07-18 23:37:17 +00:00
dbaron%fas.harvard.edu bf82abfd11 Header include dependency cleanup. b=64023 r=jag rs=brendan 2001-07-16 02:40:48 +00:00
cls%seawood.org fb219e8973 Remove obsolete --disable-new-cache option & MOZ_NEW_CACHE/OLD_CACHE ifdefs from the tree. We are not turning back now. :)
Bug #89008 r=dougt sr=waterson
2001-07-06 08:07:43 +00:00
cls%seawood.org 654b132df3 Updating .cvsignore files.
Bug #84824 r=jag
2001-07-06 02:36:37 +00:00
timeless%mac.com e685840fe7 Bugzilla Bug 88769 'nsDiskCacheEntry' : type name first seen using 'class' now seen using 'struct'
r=jtaylor sr=shaver
2001-07-04 07:06:34 +00:00
jaggernaut%netscape.com 03ab87e4a1 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)
2001-06-30 11:02:25 +00:00
darin%netscape.com ce7573bf2e Fixes bug 85054 "Hard Drive grinds when disk cache set to zero."
patch=gordon, r=gagan, sr=darin
2001-06-28 01:30:26 +00:00
darin%netscape.com 249b989a5a Fixes bug 82418 "URL makes mozilla totally unresponsive" patch=gordon
r/sr=dougt,darin
2001-06-27 02:30:18 +00:00
darin%netscape.com c9212216da Fixes bug 87710 (part 1) "Image cache does not re-validate images before reusing them"
r=bbaetz, sr=jst
2001-06-26 07:06:52 +00:00
rpotts%netscape.com ac6bfbd8f6 bug #82458 (r=jst, sr=darin, a=blizzard). THis patch causes STATE_TRANSFERRING notifications to fire when URLs are loaded out of the disk cache or memory cache... 2001-06-25 06:22:44 +00:00
waterson%netscape.com 0877b1a573 Land STATIC_BUILD_20010612_BRANCH, which supports building mozilla with components statically linked into the executable, as well as 'meta modules' that combine components into uber-DLLs. 2001-06-20 20:21:49 +00:00
cls%seawood.org 80f526179f Replaced NO_SHARED_LIB & NO_STATIC_LIB with BUILD_SHARED_LIBS, BUILD_STATIC_LIBS, FORCE_STATIC_LIB & FORCE_SHARED_LIB. Added FORCE_USE_PIC.
Changes allow us to have a finer control over which parts of the tree are built with PIC.  Part of the static build branch landing.
Bug #46775 r=mcafee a=leaf
2001-06-18 22:10:38 +00:00
gordon%netscape.com 21911ba87a Fix bug 82009 "purify msg: Freeing mismatched memory". Changing FlattenMetaData() semantics to eliminate malloc and buffer copy. r=beard, sr=darin, a=asa. 2001-06-13 23:37:41 +00:00
danm%netscape.com b87a4d3a8f nsCacheEntry now asks nsCacheService to release its data, and therefore no longer holds a strong ref to its event queue. bugscape bug 4890, bugzilla bug 84247 code=gordon,me r=beard,sfraser a=clayton,chofmann 2001-06-06 02:30:07 +00:00
gordon%netscape.com c6ac05a901 Fix bug 82370, leak in disk cache. r=dbaron, sr=darin, a=asa. 2001-05-25 18:47:53 +00:00
scc%mozilla.org 26a57f8ad3 bug #75220: fixing stragglers, people who checked in uses of |nsLiteralC?String| after it had already been removed from the build 2001-05-23 01:21:04 +00:00
gordon%netscape.com e8e4770798 Fix bug 81799 "Infinite loop in disk cache" (handling the disk cache size=0 case), sr=hyatt. 2001-05-21 23:35:37 +00:00
gordon%netscape.com 8c99402512 Fix for smoketest blocker bug 81799 "Infinite loop in disk cache", sr=darin. 2001-05-21 22:05:10 +00:00
jst%netscape.com f72e19a2c3 scc checking in from jst's account. bug #75220: sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances. 2001-05-19 11:27:30 +00:00
gordon%netscape.com 63d349c301 Fix bug 72507, implementing level 2 disk cache. Modified disk cache to keep
metadata for all entries in a single file, rather than in separate files.
r=gagan, sr=darin.
2001-05-18 23:24:09 +00:00
darin%netscape.com b5c178a4a8 Http branch landing: changes to netwerk/ (bug 76866) r=gagan,sr=dougt,a=chofmann 2001-05-11 21:04:09 +00:00
gordon%netscape.com 1a83e890f0 Fix bug 79585 "need non-blocking OpenCacheEntry() for HTTP", r=pavlov, sr=darin. 2001-05-09 03:36:00 +00:00
gordon%netscape.com edbfaf8444 Fix for bug 78479 "frequent hang on quit after long use" and bug 79241 "Crash quiting the app in the cache". sr=darin. 2001-05-08 00:13:21 +00:00
gordon%netscape.com bc50530225 Fix for bug 74301 "New cache not properly updating object size" and bug 78849 "nsCacheEntryDescriptor needs to be threadsafe". sr=darin. 2001-05-08 00:07:44 +00:00
gordon%netscape.com 73b9dce53f fix for bug 78852 "nsDiskCacheEntry needs to be made threadsafe", sr=darin. 2001-05-08 00:05:49 +00:00
gordon%netscape.com 64e35e1551 fix for bug 75183, "separate eviction policy for chrome needed". sr=darin. 2001-05-08 00:04:50 +00:00
kandrot%netscape.com d5bd552195 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775. 2001-05-05 05:33:37 +00:00
gordon%netscape.com 7d8760612e Fix for bug 76661, "Recursive attempt to lock cache entry". r=dougt, sr=darin. 2001-05-03 02:35:26 +00:00
gordon%netscape.com de32342514 For bug 74668. Add cache device ID attribute to nsICacheEntryInfo interface,
and implementing classes.  r=beard, sr=darin.
2001-04-30 01:18:34 +00:00
cls%seawood.org c06c69763c Remove unneeded LOST_SYM_LIBS defines. 2001-04-30 01:13:22 +00:00
cls%seawood.org 25c6dc1c7e Set EXPORT_LIBRARY=1 in all pertinent Makefile.ins. Allows us to build the final link list as we traverse the tree. Bug #46775 2001-04-28 19:48:12 +00:00
bnesse%netscape.com 19dccef1bc Prefs API refactoring. Bug #46863. r=valeski, sr=alecf. 2001-04-26 18:41:11 +00:00
gordon%netscape.com 847ca8a31d checkin for bug 76293. Moves cache directory aside on startup if disk cache is unable to read or delete files. Cache service disables disk cache device if it fails to initialize, and defaults to using memory cache instead. r=beard, sr=darin. 2001-04-26 05:07:28 +00:00
gordon%netscape.com 4584f04a13 Approved checking for bug 76372, r=gagan, sr=brendan, a=brendan/chofmann. Added guards against calls to uninitialized nsCacheEntryHashtable. 2001-04-24 02:22:27 +00:00
gordon%netscape.com 6ad37cdae1 Approved checkin for bug 76125, cleanup usage of pldhashtable in nsCacheService.cpp. r=gagan, sr=brendan, a=asa. 2001-04-23 05:15:03 +00:00
bryner%uiuc.edu cbc8cea88c Backing out bnesse's fix for bug 46863 due to numerous types of runtime bustage on linux and windows. a=brendan. 2001-04-20 06:45:56 +00:00
bnesse%netscape.com 6a048b1a8f Landing PrefAPI refactoring bug 46863. r=valeski, sr=alecf, a=blizzard. 2001-04-19 22:21:39 +00:00
gordon%netscape.com a3f489435a Fix bug 75448 "Clear disk cache from prefs not working properly". Patch by
beard, r=gordon, sr=darin.
2001-04-17 23:20:06 +00:00
dveditz%netscape.com d97007e8b6 Fixing build bustage (evil trailing ^M's). 2001-04-17 12:46:17 +00:00
gordon%netscape.com b46550c82f desperate attempt to fix build bustage on win32. Don't know why it didn't like the !endif, so I'm just nuking the lines I was trying to comment out. 2001-04-17 12:01:58 +00:00
gordon%netscape.com 99a7277559 bug 72528, remove old cache from build. sr=darin. 2001-04-17 10:47:22 +00:00
gordon%netscape.com 5781ea5a43 First implementation of "flat files" for cache. 2001-04-17 03:54:48 +00:00
colin%theblakes.com b35fd04816 Use MOZ_COMPONENT_LIBS and pass via EXTRA_DSO_LDOPTS instead
of EXTRA_LIBS. r=cls b=75876.
2001-04-13 23:21:54 +00:00
darin%netscape.com 41efbc6217 Necko API changes, bug 74221. r=valeski, sr=rpotts. 2001-04-10 06:01:08 +00:00
gordon%netscape.com 525851d1cf Fix bug 73441 "New cache needs "Clear" functionality. Changed pref advanced cache panel clear buttons to clear new cache devices, and fixed bug in nsMemoryCacheDevice to avoid calling nsCRT::strlen(nsnull). sr=darin. 2001-04-09 09:52:15 +00:00
gordon%netscape.com 0b4989d75d Fix bug 75171 "implement nsCacheSession::EvictEntries", sr = darin. 2001-04-09 08:14:08 +00:00
dbaron%fas.harvard.edu 1fe6f88256 Fix OS/2 tinderbox bustage (PR_CALLBACK). r=disttsc@bart.nl 2001-04-06 00:33:19 +00:00
gordon%netscape.com 625edc15d6 Fix smoketest blocker bug 74766. DISKCACHE2_BRANCH touchdown. r=beard, sr=darin. 2001-04-05 22:28:17 +00:00
dprice%netscape.com 3e31ab9946 65845 - new order files 2001-04-05 06:02:32 +00:00
mkaply%us.ibm.com a5a2297dd2 OS/2 TB breakage 2001-04-04 08:25:32 +00:00
gordon%netscape.com fd35a7538d Landing DISKCACHE1_BRANCH (part Deux) which enables dynamic eviction and efficient cache miss detection for the disk cache (bug 72506) r=beard, sr=darin. 2001-04-04 03:30:45 +00:00
scc%mozilla.org e4fe1eec12 fix bustage 2001-04-02 23:11:04 +00:00
beard%netscape.com b5d905cf89 Fixes bug #73194, when profile switching occurs, ensure new cache directory is created. r=beard, sr=darin 2001-03-31 07:37:19 +00:00
darin%netscape.com 224e6747be Fixes bug 73917 "cache entry data size not updated" patch=beard, r=gagan, sr=darin 2001-03-29 19:58:34 +00:00
gordon%netscape.com 0052e92ff4 Fix bug 73099. Problems with updating lastModified time stamp. r=beard, sr=darin. 2001-03-29 06:50:38 +00:00
gordon%netscape.com 62a76fce9f Land DISKCACHE1_BRANCH, implementing first draft of cache map file for more efficient eviction and cache miss detection. Fixed some problems with overeager setting of lastModified time stamp. Read cache enable prefs on startup. r=beard, sr=darin. 2001-03-29 05:54:58 +00:00
gordon%netscape.com fe77b957e7 Added evictEntries() methods to nsICacheService and nsICacheSession. Removed lastValidated attribute from nsICacheVisitor. r=beard sr=darin. 2001-03-29 05:51:46 +00:00
gordon%netscape.com a61efb7b94 Bug 73491 and bug 73513. Make the disk cache fail (more) gracefully. r=mcafee, sr=waterson. 2001-03-27 23:56:18 +00:00
cls%seawood.org 703015f4d7 Change netwerk/mime to use MODULE=mimetype to remove avoid confusion with mailnews/mime . Update necessary REQUIRES.
Bug #68381 r=jag
2001-03-26 23:40:28 +00:00
mkaply%us.ibm.com e82031955a #73191
r=beard, sr=brendan
Remove CRT_CALL - change to PR_CALLBACK or JS_DLL_CALLBACK appropriately
2001-03-26 23:21:53 +00:00
disttsc%bart.nl 6e48266508 Clean up REQUIRES lines. r=cls 2001-03-25 22:59:27 +00:00
scc%mozilla.org bcc01a4bd2 remove hidden depencies, sr=shaver 2001-03-25 21:33:50 +00:00
beard%netscape.com 491440dfba [not part of build] maintains a compact directory of disk cache entries, for disk cache version 1. 2001-03-25 15:49:31 +00:00
beard%netscape.com 16a2c1c251 [not part of build] nsIInputStream/nsIOutputStream wrappers for ANSI FILE objects. 2001-03-25 15:47:36 +00:00
disttsc%bart.nl 5c4c414172 Bug 60952: nsMimeTypes.h has wrong type for APPLICATION_HTTP_INDEX, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=blake, sr=darin
Bug 68651, nsFtpConnectionThread should use NS_LITERAL_STRING, author=Bradley Baetz <bbaetz@cs.mcgill.ca>, r=jag, sr=dougt
2001-03-24 22:57:35 +00:00
pavlov%netscape.com 54b5b09f0f fix for windows crash on profile startup, initalize disk cache lazily. bug 73197. r=beard, gordon sr=sfraser 2001-03-23 21:06:39 +00:00
darin%netscape.com ee8f9cd892 nkcacheservice --> nkcache 2001-03-23 09:09:47 +00:00
darin%netscape.com 018eb2bc31 Fixes bug 73042. Make new disk cache recover well from a corrupted disk
entry.  patch=beard; sr=darin
2001-03-23 03:44:55 +00:00
darin%netscape.com c2a95bf8a5 Fixes bug 38260. Use big endian in disk cache. r=beard,pavlov; sr=dougt 2001-03-23 03:35:10 +00:00
darin%netscape.com 16b601cd31 Fixes bug 73097. No new cache in win32 builds (as in not at all). r=gagan
(These changes should have gone in yesterday when we enabled the new cache,
but were somehow forgotten.)
2001-03-23 03:08:59 +00:00
pinkerton%netscape.com 4191e37f76 fix fizzilla bustage. 2001-03-23 02:52:13 +00:00
darin%netscape.com 6e57fe6759 Remove stupid printfs. r=pavlov, sr=darin 2001-03-22 08:34:34 +00:00
mkaply%us.ibm.com 2f4c6926de OS/2 TB breakage
Need more CRT_CALL
2001-03-22 07:12:42 +00:00
mkaply%us.ibm.com 3b4e8d938c fix indentation 2001-03-22 05:27:32 +00:00
mkaply%us.ibm.com 42f49cd9f1 Stupid mistake - used CRT_CALLBACK instead of CRT_CALL 2001-03-22 05:23:37 +00:00
mkaply%us.ibm.com 1a5c44fdda #72075
r=cls
OS/2 TB breakage on new cache
2001-03-22 04:23:20 +00:00
mkaply%us.ibm.com 2262fb510d #72075
r=jag
OS/2 TB breakage on new cache
2001-03-22 04:20:20 +00:00
darin%netscape.com d7afae86e6 Fixes speedracer bustage. a=mcafee 2001-03-22 02:25:36 +00:00
gordon%netscape.com af685fb9d1 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 4147d46c3f [not part of build] Fix dumb assertion. 2001-03-14 21:16:55 +00:00
darin%netscape.com 22e2760828 [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 cf01589ab2 [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 75591269df [not part of the build] Make nsICacheEntryDescriptor inherit from nsICacheEntryInfo 2001-03-14 01:11:14 +00:00
gordon%netscape.com ac08731b0b [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 c1265abcaa [not part of build] Implements poor man's eviction policy. 2001-03-13 04:54:14 +00:00
beard%netscape.com 70853f3e63 [not part of build] Use forward references whenever possible. 2001-03-13 04:53:46 +00:00
beard%netscape.com e3dc1c730a [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 9c5d760307 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 f6d62067d5 [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 92b1d839bd [not part of build] Mark entry dirty when data size is changed. 2001-03-12 19:29:34 +00:00
darin%netscape.com 308c008299 [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 ab6a1a96e2 [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 2ad47d48b0 [not part of the build] Updated some comments. 2001-03-12 06:23:52 +00:00
beard%netscape.com 6bdf538fe8 [not part of build] Turned off some benign failure assertions. 2001-03-11 19:26:04 +00:00
beard%netscape.com 334a0a0bdd [not part of build] Update visitEntries to correctly identify metadata files. 2001-03-11 19:18:48 +00:00
beard%netscape.com 452f31ee8b [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 96e3360b3e 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 0341186cb6 [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 b36a2cdaac [not part of build] Header file for disk cache record structures. 2001-03-10 03:51:59 +00:00
beard%netscape.com daae301eb6 [not part of build] Added simple enumeration mechanism to nsCacheEntryHashtable. 2001-03-10 00:43:20 +00:00
beard%netscape.com bd3e2e26bd [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 f6e7c1df43 [not part of build] Implemented more of cache visitor support. 2001-03-09 19:01:15 +00:00
beard%netscape.com 2418cb5769 [not part of build] Fix cache directory creation logic again. 2001-03-09 17:14:02 +00:00
beard%netscape.com 6f99d5ec06 [not part of build] Initial implementation of cache visitor support. 2001-03-09 00:04:03 +00:00
beard%netscape.com 5aa779009f [not part of build] Implemented nsCacheEntryDescriptor::GetFile(). 2001-03-08 21:22:18 +00:00
beard%netscape.com 047c50bec3 [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 80bc39fade [not part of build] implement VisitEntries. 2001-03-08 20:58:38 +00:00
beard%netscape.com dd16e5eeb2 [not part of build] Added new interfaces nsICacheDeviceInfo, nsICacheEntryInfo. 2001-03-08 20:58:11 +00:00
gordon%netscape.com bba4ed7917 [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 0934b4a7a2 [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 d97a9680bb [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 66283015cc [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 01400ef311 [not part of the build] Fixes some bustage under GCC 2.96 2001-03-07 09:55:54 +00:00
gordon%netscape.com f81ce84791 [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 3b05755203 [not part of build] don't overwrite a NULL pointer. 2001-03-07 04:05:36 +00:00
gordon%netscape.com de94cdb92c [not part of build] Add security info attribute to nsICacheEntryDescriptor. 2001-03-07 02:47:08 +00:00
beard%netscape.com 19c502a1ae [not part of build] Added GetFile() to implement the file attribute. 2001-03-07 01:40:41 +00:00
beard%netscape.com a8f0adf0ff [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 9212d599bd [not part of the buid] Renamed onDescriptorAvailable to onCacheEntryAvailable. 2001-03-06 22:04:05 +00:00
darin%netscape.com a8ec6ba8d7 [not part of the build] Fixes bustage resulting from bryner's nsITransport changes. 2001-03-06 07:35:54 +00:00
bryner%uiuc.edu 3f9323934e Bug 70595 - making nsIPrompt accessible to PSM. r=darin, sr=mscott. 2001-03-06 05:10:33 +00:00
gordon%netscape.com 37ba307679 [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 98bc4c37ef [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 8b582a271a [not part of the build] Prevent crash in error case. 2001-03-06 03:12:24 +00:00
beard%netscape.com 86cd82e240 [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 a5d8f7381b [not part of the build] Fixes sync OpenCacheEntry bustage. 2001-03-06 01:40:20 +00:00
darin%netscape.com a241c9c2d5 [not part of the bulid] Fixes GCC 2.95 bustage. 2001-03-05 23:50:26 +00:00
gordon%netscape.com ad145d67a9 [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 1db11411c2 [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 317f1dc760 [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 3f57ca8c56 [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 692e5438d8 [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 41ac5b215e [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 05aac4c419 [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 5fe3fdac08 [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 8a7011a63d [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 6c82a1709c [not part of the build] Make mem cache use nsStorageTransport. 2001-03-03 01:59:03 +00:00
beard%netscape.com 1338ff6e0b [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 74679406ed [not part of build] REALLY fix nsCacheEntryHashTable::RemoveEntry. This time for sure! 2001-03-03 00:00:29 +00:00
gordon%netscape.com 6ce0ccda34 [not part of build] Fix nsCacheEntryHashTable::RemoveEntry(). r=beard. 2001-03-02 23:50:53 +00:00
darin%netscape.com 06bfa84268 [not part of the build] Added implementation of nsMemoryCacheReadRequest::Available 2001-03-02 22:28:38 +00:00
beard%netscape.com 872e35d85d [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 cb5309e789 [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 043186b34e 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 362163351d Now reading/writing all metadata into disk cache. 2001-03-02 04:57:09 +00:00
beard%netscape.com b98758d275 [not part of build] Added CalculateSize() to account for null termination of strings. 2001-03-02 04:54:27 +00:00
beard%netscape.com 78e82c5bb1 [not part of build] Added FlattenMetaData()/UnflattenMetaData(). 2001-03-02 04:09:01 +00:00
gordon%netscape.com 9edfcd7fd6 Fix casing of SetMetaDataElement method. 2001-03-02 01:52:29 +00:00
gordon%netscape.com 6c09c5a1de [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 bf69d7c0b9 not part of build. we should init the cache meta data. 2001-03-01 21:27:11 +00:00
gordon%netscape.com d7b78b8520 [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 8901ec09dd [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 e04bbbd9f1 [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 39035cb7cd [not part of build] Forgot NS_INIT_ISUPPORTS() in DiskCacheEntry constructor. 2001-03-01 19:32:41 +00:00
beard%netscape.com c6f34b986d [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 8ed9fd2751 [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 8a597b5932 [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 646885530b [not part of build] Make ~nsCacheOutputStream() virtual 2001-03-01 09:51:22 +00:00
beard%netscape.com 27d05b3058 [not part of build] Fix LL bustage. 2001-03-01 08:38:50 +00:00
beard%netscape.com e72e807a38 [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 fbf1b173c4 [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 a7c9e20908 [not part of build] needed to add nsITransport to QueryInterface. 2001-03-01 02:51:07 +00:00
darin%netscape.com 0055170d0e [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 200e2ecb04 [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 00e77d5c3b [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 f2a3038563 [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 6e1f816ac3 Added error codes for read/write access denied. 2001-03-01 01:56:29 +00:00
gordon%netscape.com a4b916bb0c Fix access mode for new entries. Not part of the build. 2001-02-28 22:39:07 +00:00
beard%netscape.com 7b158223b7 [not part of build] truncate files when mode = nsICache::ACCESS_WRITE. 2001-02-28 12:09:41 +00:00
beard%netscape.com a741825f69 [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 c3edcffec7 [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 8a9cdea782 [not part of build] enforce nsCacheAccessMode when creating transports. 2001-02-28 10:04:27 +00:00
gordon%netscape.com 933488b277 Begin implementing enumeration of MetaData for cache devices. 2001-02-28 07:13:32 +00:00
gordon%netscape.com e1fde86b4f 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 569af8d92e [not part of build] successfully creates writeable nsITransport for cache files! 2001-02-28 05:05:29 +00:00
darin%netscape.com ce2aa6ba6f Made nsMemoryCacheDevice::BindEntry return NS_OK 2001-02-28 04:36:51 +00:00
darin%netscape.com b31cd3c2ac Completed nsCacheService::BindEntry 2001-02-28 04:34:41 +00:00
darin%netscape.com 2c069b9c3e Removed an extraneous QI from nsCacheEntry::Open() 2001-02-28 04:28:15 +00:00
beard%netscape.com e58db096e1 [not part of build] must call init on hashtable in nsDiskCacheDevice::Init(). 2001-02-28 04:17:56 +00:00
beard%netscape.com 324eaee24b [not part of build] really delegate GetTransport() to the cache service. 2001-02-28 04:17:24 +00:00
gordon%netscape.com 469a57114d 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 da6be08e8f [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 4d543e736a [not part of build] removed redundant NULL check in MarkValid(). 2001-02-28 03:59:02 +00:00
gordon%netscape.com 11a84e6653 Added MarkDoomed(), MarkStreamData(), and set StreamData in constructor. 2001-02-28 03:54:16 +00:00
gordon%netscape.com bba1728ef8 Added DoomEntry() to nsCacheDevice. 2001-02-28 03:42:33 +00:00
darin%netscape.com e13b0d309b [not part of the build] Added code to the descriptor to call GetTransportForEntry() 2001-02-28 02:19:14 +00:00
darin%netscape.com 74b246f5a4 [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 e68b83c86f [not part of build] allocate the nsDiskCacheDevice. 2001-02-28 00:36:07 +00:00
gordon%netscape.com 3be042db59 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 6b47b5f8db [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 5308bba867 [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 3430310449 fix for topcrash bug 65798, r=neeti, sr=rpotts 2001-02-27 07:41:55 +00:00
beard%netscape.com 0ad8867b91 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 70e4ffa871 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 c3aabe44ae Add virtual methods for desctructor and Init(). Changed ActivateEntryIfFound() to FindEntry(). 2001-02-27 05:33:34 +00:00
gordon%netscape.com 9fc8b79304 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. 2001-02-27 05:29:25 +00:00
darin%netscape.com 7cb6aff2bd [not part of the build] Added AsyncRead support to nsMemoryCacheTransport. 2001-02-27 04:29:24 +00:00
dougt%netscape.com 29c9488e5d conditionally compiling new cache. r=dougt/a=gagan 2001-02-27 03:16:59 +00:00
dougt%netscape.com f3dbd403a3 Conditionally compiling new cache. r=dougt/a=gagan 2001-02-27 02:27:21 +00:00
dougt%netscape.com 4dd38917f8 NOT PART OF BUILD. Updating new cache windows makefile to produce a dll. Removing the empty virtual destructor in nsCacheDevice.h 2001-02-26 23:51:03 +00:00
beard%netscape.com de42517279 [not part of build] I changed all the declaration of all PRInt32 storagePolicy variables to nsCacheStoragePolicy. 2001-02-26 15:53:31 +00:00
gordon%netscape.com e0a68f083a Update Makefile.in to build cache service as separate module. 2001-02-26 14:58:58 +00:00
gordon%netscape.com 1780583b6d Begin implementing eviction of memory cache entries. 2001-02-26 14:57:40 +00:00
gordon%netscape.com 95d6fcbbf8 Updated methods for addition of nsCacheSession. 2001-02-26 14:55:58 +00:00
gordon%netscape.com ff29b0d80c Add the session's storagePolicy to nsCacheRequest, and changed type of mAccessRequested to nsCacheAccessMode. 2001-02-26 14:53:28 +00:00
gordon%netscape.com b9f45f8198 Fix HashKey method. 2001-02-26 14:46:54 +00:00
gordon%netscape.com 6b38190835 Add stub methods for getting/setting data size, and getting the transport for a cache entry descriptor. Update for change to Substring parameters. 2001-02-26 14:45:45 +00:00
gordon%netscape.com 6620702aed Add code for removing requests and descriptors from cache entries. 2001-02-26 14:42:50 +00:00
gordon%netscape.com 068b8526d4 Adding files for nsCacheSession implementation. 2001-02-26 14:40:22 +00:00
gordon%netscape.com c9992e5bab Add constants to indicate whether a cache session is streamBased or not. This interface file is not part of the build yet. 2001-02-26 14:27:16 +00:00
darin%netscape.com 852de67670 Initial memory cache nsITransport implementation (not part of the build). 2001-02-26 07:40:34 +00:00
blakeross%telocity.com b97006280f Backing out doug to fix win bustage. 2001-02-26 00:55:18 +00:00
dougt%netscape.com ae0660d4ca Adding New Cache interfaces to build 2001-02-26 00:02:44 +00:00
pavlov%netscape.com 7952181024 fixing unix makefile 2001-02-25 23:13:51 +00:00
dougt%netscape.com 1d6aa9809c Fixing return type: 2001-02-25 07:31:13 +00:00
dougt%netscape.com 74fefc4c9c NOT PART OF BUILD!!
This is the windows makefile for the new cache.
2001-02-25 07:18:36 +00:00
beard%netscape.com e3954dddbd [not part of build] changes to build correctly on Mac, and link correctly on all platforms. 2001-02-24 04:22:19 +00:00
gordon%netscape.com d75f56b14e Include nsNetCID.h for cache service contract id. 2001-02-24 02:47:37 +00:00
darin%netscape.com a7f5e770bf Made accessGranted be of type nsCacheAccessMode. This is not part of the mozilla build. 2001-02-24 01:36:11 +00:00
darin%netscape.com 77c0aa2d9d Updating cache IDL documentation. This is not part of the mozilla build. 2001-02-24 01:27:49 +00:00
gordon%netscape.com 04beb97fd8 Updated new cache source to build with recent changes to interface files. These files are not part of the build. r=beard, darin. 2001-02-24 01:02:37 +00:00
beard%netscape.com ca4097ba59 [not part of build] stand-alone cache module. 2001-02-24 00:19:43 +00:00
gordon%netscape.com 438b40d2ee Remove inheritance from interface, and provide transport as an attribute. This change is not part of the build. 2001-02-23 23:55:42 +00:00
gordon%netscape.com 414b0ff434 Add nsICache.idl for common typedefs and constants. These changes are not part of the build. r = beard, darin. 2001-02-23 23:20:15 +00:00
gordon%netscape.com 0bcfd56974 New interfaces for cache service. These are not part of the build. r=beard, darin, gagan. 2001-02-23 22:23:55 +00:00
gordon%netscape.com 6bc9415a83 Adding Makefile.in for new cache service. 2001-02-23 21:05:32 +00:00
gordon%netscape.com 4658c07097 Rough first cut of cache service and memory object cache. It currently builds on linux. 2001-02-23 13:18:01 +00:00
gordon%netscape.com e47ae228f9 Adding interface files for new cache service. 2001-02-23 00:11:10 +00:00
disttsc%bart.nl 744785129a Mass REQUIRES update to synch up with string lib and xul changes in an attempt to fix senna bustage. r=jst, sr=cls 2001-02-22 09:35:51 +00:00
dougt%netscape.com eab041f43f Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-21 20:38:08 +00:00
pinkerton%netscape.com 105d3c555e carbon changes. r=pink/sdagley/beard. a=sfraser. 2001-02-13 21:48:26 +00:00
disttsc%bart.nl 76fbedadc5 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dougt%netscape.com 69415757ab Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-10 00:16:26 +00:00
colin%theblakes.com d7e453cf37 VMS specific fix; tagFile name needs a case blind compare. b=55950 r=rpotts 2001-02-06 15:28:11 +00:00
darin%netscape.com 6bfaf3912c Bug 62566. nsIChannel::AsyncWrite interface revision and related cleanup.
r=dougt@netcape.com, sr=mscott@netscape.com.
2001-01-23 22:10:34 +00:00
ccarlen%netscape.com dff975b718 Fix for #56127 - Was not handling pref changed callback when dir changed. r=gagan, sr=mscott 2001-01-08 15:45:18 +00:00
rpotts%netscape.com 29590cb129 Fix for assert when loading content from the memory cache (ie. hitting Back). r=jst 2000-12-13 23:11:32 +00:00
vidur%netscape.com 1f40cba7d1 Implementation of ReadSegments to support less copying in the parser. r=rpotts, sr=jst 2000-12-12 21:57:47 +00:00
cls%seawood.org fc9c54cb3d Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454 2000-11-21 00:18:46 +00:00
cls%seawood.org 8bd122b3d5 Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org 2000-11-20 07:16:06 +00:00
alecf%netscape.com ec958920a7 #45797 - fix consumers of NS_IMPL_ISUPPORTS
r=dveditz a=self
2000-11-17 03:45:13 +00:00
darin%netscape.com a4b1f04c3b Fixes bug 59661. Occurances of uninitialized variables... r=gagan, sr=mscott. 2000-11-15 22:21:46 +00:00
dougt%netscape.com d8eab54dd4 Fixes uninitililzed variable. b58510. r=rpotts@netscape.com sr=waterson@netscape.com 2000-10-31 01:05:28 +00:00
dbaron%fas.harvard.edu 2610b33dfd Fix refcount logging for nsCachedNetData objects so they don't appear to leak by indicating a refcount of 0 (for deletion) when the RECYCLED flag is set or when the arena is destroyed. r=rpotts@netscape.com sr=scc@mozilla.org b=31367 2000-10-29 21:24:39 +00:00
warren%netscape.com 4189314fdb Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com 6e35f97e31 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
neeti%netscape.com 2f34c7bef4 fix for rtm++ bug 57746 crashes [@ nsDBAccessor::EnumEntry],r=gagan, sr=buster 2000-10-26 19:41:07 +00:00
neeti%netscape.com abc25deed0 fix for rtm++ bug 57326, Crash trying to use the save link as context menu, r=gagan, sr=mscott. 2000-10-25 13:28:39 +00:00
neeti%netscape.com 54a4ef139a Fix for rtm++ bug 55405 SetSizeEntry(..) called during shutdown could lead to corrupted cache, r=dp,sr=rpotts 2000-10-18 03:59:34 +00:00