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